*
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 Android Security Essentials Live Lessons this week in the Android 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: 77


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: 1076
    
    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: 77

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: 1076
    
    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: 1076
    
    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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: SOAP 1.1 to SOAP 1.2
 
Similar Threads
which Java Specification (JSR ) to study for the SCDJWS 5 exam (CX-310-230) ?
planning to write SCDJWS 1.4
Passed SCDJWS 5 with 98.4%
SOAP 1.2 Fault children qualified
planning to write SCDJWS 1.4