This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP 1.1 to SOAP 1.2

 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

If I am starting from SIB(Service Implementation Bean) and do not have WSDL in my hand at start, how can I convert SOAP 1.1 to SOAP 1.2?
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not quite understood your question. But will try to answer it.

For having SOAP 1.2 binding, you can use BindingType annotation on SIB.
@BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING)
Then you can generate WSDL file using wsgen tool.

Hope this explanation helps
 
Souvik Dasgupta
Ranch Hand
Posts: 95
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abhay,

I tried the same. But getting the below error while trying to execute 'wsgen':

wsgen can not generate WSDL for SOAP 1.2 binding: http://www.w3.org/2003/05/soap/bindings/HTTP/ on class: com.ws.capitalize.CapitalizationServiceImpl.

SEI:

----------------------------------------------------------------------------
SIB:


I tried the below command:
wsgen -verbose -keep -wsdl -cp . com.ws.capitalize.CapitalizationServiceImpl
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got from this source - https://jax-ws.java.net/nonav/2.1.2/docs/wsgen.html

Use -wsdl:Xsoap1.2 switch with wsgen command and let me know your result

wsgen -wsdl:Xsoap1.2 -verbose -keep -cp . com.ws.capitalize.CapitalizationServiceImpl
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apologises.. forgot to add one more switch here (-extension)

wsgen -extension -wsdl:Xsoap1.2 -verbose -keep -cp . com.ws.capitalize.CapitalizationServiceImpl


try this now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic