• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

SOAP 1.1 to SOAP 1.2

 
Ranch Hand
Posts: 113
Eclipse IDE Spring Java
  • 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?
 
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: 113
Eclipse IDE Spring Java
  • 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
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic