Hi Dennis: please see my comment in line. > I'm working on documentation for > org.apache.axis2.client.ServiceClient, and ran into a few questions. > First off, the constants ANON_OUT_ONLY_OP, ANON_ROBUST_OUT_ONLY_OP, > and ANON_OUT_IN_OP; if I'm understanding these correctly they > represent exactly the opposite of what you'd expect from looking at > the WSDL definition for an operation. So ANON_OUT_ONLY is an IN_ONLY > WSDL operation.
Yes , you are correct. The reason is in the client side sending a request is equivalent to server sending the response (both the cases invoke the outFlow). That is why we introduced opposite operation for the client side. I agree with you that name are confusing , but at this point I dont think we can change that , and best solution is (as you have mentioned) to document them properly. > This seems very confusing to me, since users are likely to be thinking > in terms of WSDL. It's probably too late to change the names, but I > wanted to check if I'm misinterpreting something here. There really > doesn't even appear to be any reason why these should be exposed as > part of the public API. > > My second question is on the finalizeInvoke() method. Should this be > called by the user after every operation using the client? That would > seem to be implied by the name, but I'm wondering if it isn't instead > something that should be done only when you're finished using the client. Yes , once you are done with the client you need to call this method and it will close all the transport listener if any. But think abt the scenario where you create multiple service client using the same configurationContext , in that case you should not call this method until you finish all the client jobs. As you can see if you call that method it will shutdown the transport , but some one else might be using them so we should not call that method until we finish with all the client. > In that case it would seem better to merge it with the cleanup() method. cleanup is just to remove objects created inside the service client and calling that when you are done with your service will remove unnecessary AxisService from AxisConfiguration. > > Thanks for any insights, > > - Dennis > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
