Eran Chinthaka wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Samisa Abeysinghe wrote:
OK, I really do not want to criticize the client API here, specially
given that it has been around for more than two years.

However, I have a problem when deciding whether to use the service
client or operation client API for my implementation.
As an example, in operation client, I do not have an API to engage a
module but with service client I can. However if I want to access the
SOAP envelope or play around with SOAP level stuff, I have to use
operation client.

See you are not getting the point here. ServiceClient is for users who
just want to send and receive some XML chunks. In ServiceClient there
are quite a number of convenient methods to do things, which are not
available. So are you suggesting to have all the methods that are in
ServiceClient to be available in OperationClient. No.
ServiceClient is for simple users and OperationClient is for more
adventurous users who wanna get some more control.
Well the problem here is my non-Java mindset. :(
I am too much dependent on the ServiceClient API, and you guys are too much accustomed to this API to understand my mindset ;)
Anyway, thanks to the explanation, I get the point at last :)

Now I am confused as to what I should be using. How
should I go about making my decision? If you can point me to some docs
that would be great.

As you know we are still improving Axis2/java docs and I agree that it
is not complete. Perhaps we can learn a lot about documentation from
Axis2/C project ;)
Well I do not think Axis2/C is there yet either :)

If you are curious about engaging a module, this is how you do it.

AxisModule module = axisConfig.getModule(moduleName);
           if (module != null) {
               axisService.engageModule(module);
           } else {
               throw new AxisFault("Unable to engage module : " +
moduleName);
           }

Don't think I am smart to write this code. Just copied and pasted from
ServiceClient.engageModule method. So in Axis2/Java we follow the
concept of "on-demand" documentation :D
Again, my problem was, I was only looking at the API.
Well, code is the best form of documentation, next time I should also have a look into the code :)

Thanks,
Samisa...

Chinthaka
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGUS5njON2uBzUhh8RAuzmAJ9MQBTKU/99tTKnxRixX67KOMNQiACdG3VR
b5sEmIRAz8/M+wue/ZxZzcg=
=ogQj
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to