views:

24

answers:

2

I am talking about synchronous on the client side. That means, the service requester is blocking after sending a message to the service.

my question is: is it related to the -a -s parameter of wsdl2java tool, Since -a generate async style code and -s generate sync style code.

Or the client side blocking or not is totally controlled by the client logic?

Thanks

A: 

You use the wsdl2java tool to generate either a synchronous (blocking) or an asynchronous (non-blocking) client stub.

For more details I'd recommend reading the low level APIs documentation. This would describe the operation of the code you'll find in your generated java files.

Mark O'Connor
A: 

-a Generate async style code only (Default: off)
-s Generate sync style code only (Default: off). Takes precedence over -a

These options will define how your client will behave for request/response, when you use WSDL2Java most of the times you generally write the business logic to make the appropriate operation calls with appropriate parameters.

You can still over ride the client invocation style, but its really not going to be easy to read that auto generated code of AXIS 2. :)

shivaspk