Suppose that I have a service is only one method: int generateRandomNumbers().
Can wsdl2java be used to create stubs with proper async support?
For example, the generated class should have the following methods / messages:
int generateRandomNumbers()
int generateRandomNumbers_Async(callback)
I know how to use wsdl2java to create stubs with asynchronous messages. However, this only works if the service understands asynchronous messages.
What I mean by async native support is that
generateRandomNumbers_Asyncis not a new message because the service only understands generateRandomNumbers, notgenerateRandomNumbers_AsyncgenerateRandomNumbers_Async= calls generateRandomNumbersin another thread and invokes a callback when generateRandomNumbersterminated behind the scenes.
Any idea?
What about other web services?