Lets say I have a service with ONLY one method: int generateRandomNumbers()
.
Is is possible to use wsdl2java to generate a stub with proper async support?
For example, the generated class should has the following methods/messages:
int generateRandomNumbers()
int generateRandomNumbers_Async(callback)
I know how to use wsdl2java to generate stubs with the async messages. However, this only works if the service understands the async messages.
What I mean by proper async support is that
generateRandomNumbers_Async
is not a new message, since the service only understandsgenerateRandomNumbers
, notgenerateRandomNumbers_Async
generateRandomNumbers_Async
= invokesgenerateRandomNumbers
in a different thread, and invokes the callback whengenerateRandomNumbers
is finished behind the scenes.
Any idea?
How about other web service frameworks?