• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous method generation

 
Mujahed Syed
Ranch Hand
Posts: 34
IntelliJ IDE Java Mac
  • 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
IntelliJ IDE Java Mac
  • 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

 
Radoslaw Olejarski
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