• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Asynchronous method generation

 
Ranch Hand
Posts: 34
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am referring to http://java.boot.by/ocewsd6-guide/ch06.html section 6.1.2.1, paragraph "Asynchronous clients" and the line:

"Example below shows the HelloMessenger client-side endpoint interface that is generated when asynchronous method generation is activated by the JAX-WS tool: "

Can someone please let me know how can we activate asynchronous method generation, wsimport have any option for this? i am unable to find, let me know please. Thanks.
 
Mujahed Syed
Ranch Hand
Posts: 34
Mac IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got the answer actually, seems we need JAXB customization file along with it which has an entry like:



save this in a file and called it async.xml

And then use below command on command prompt:
CMD>wsimport -keep -p com.mujahed http://XXMYMACHINE:9090/example/hello?wsdl -b async.xml

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In according to namespace xmlns="http://java.sun.com/xml/ns/jaxws" it is a jaxws customization file.
You can also pass jaxb customization file using -b.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!