• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Asynchronous web service client

 
Subha Murthy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We already coded a java client that makes synchronous calls. What are
the ways and easiest way to make it asynchronous?
Any help is highly appreciated.
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
You can enable generation of portable artifacts that allow for asynchronous client invocation by using a binding file.
Example of a binding file that enables asynchronous invocation of the operation "addNumbers" in the portType "Calculator":


When you invoke wsimport, add the -b option and specify the location of the above binding file.
In my example, the endpoint interface will look like this:


Note the two versions of the addNumbersAsync method!
Best wishes!
 
Subha Murthy
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot for your response.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic