GeeCON Prague 2014*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Asynchronous method generation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Asynchronous method generation" Watch "Asynchronous method generation" New topic
Author

Asynchronous method generation

Mujahed Syed
Ranch Hand

Joined: May 18, 2010
Posts: 32

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.


SCJP, OCWCD
Mujahed Syed
Ranch Hand

Joined: May 18, 2010
Posts: 32

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

Joined: Jun 25, 2013
Posts: 2
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.
 
GeeCON Prague 2014
 
subject: Asynchronous method generation