aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes SOAP 1.1 to SOAP 1.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "SOAP 1.1 to SOAP 1.2" Watch "SOAP 1.1 to SOAP 1.2" New topic
Author

SOAP 1.1 to SOAP 1.2

Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 80


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?

Thanks and Regards, Souvik
SCJP, SCWCD, OCEJWSD
Abhay Agarwal
Ranch Hand

Joined: Feb 29, 2008
Posts: 1162
    
    1

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


Oracle Java Web Service Developer (1z0-897), Oracle certified Java 7 Programmer, SCJA 1.0, SCJP 5.0, SCWCD 5.0, Oracle SQL Fundamentals I
Souvik Dasgupta
Ranch Hand

Joined: Sep 24, 2009
Posts: 80

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

Joined: Feb 29, 2008
Posts: 1162
    
    1

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

Joined: Feb 29, 2008
Posts: 1162
    
    1

Apologises.. forgot to add one more switch here (-extension)

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


try this now
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SOAP 1.1 to SOAP 1.2