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.
posted 6 years ago
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!