File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Asynchronous method generation

Mujahed Syed
Ranch Hand

Joined: May 18, 2010
Posts: 32

Hi All,

I am referring to section, 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

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

Joined: Jun 25, 2013
Posts: 2
In according to namespace xmlns="" it is a jaxws customization file.
You can also pass jaxb customization file using -b.
I agree. Here's the link:
subject: Asynchronous method generation
It's not a secret anymore!