This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
Howdy y'all. I am learning SOAP through a good book "Building Web Services with Java..." . It is one of the few that actually covers Axis as such. However the book is rather dated (mid 2002), and its examples are from a non-official version of Axis. Some of them I succefuly updated, but a few of them still give me problems. The first thing I noticed is that in the simple XML-RPC example the authors use org.apache.axis.ServiceClient class to invoke a remote method. That class doesn't exist and I can't find any mention of it anywhere whatsoever. I worked around the problem easily by instancing a Service and creating a Call instance with which I could invoke the remote method. But than I met THE obstacle. The authors' remote call in the client class looks like this:
And the remote method in the jws file:
Now, as I said, I rewrote the client class so it uses Service and Call instead of the weird ServiceClient. But as you can see, the client sends TWO parameters, and the method in the jws takes THREE, with the first being a MessageContext (?)! To make things more confusing. the book says that this parameter is implicitly understood by Axis (?) and that it could be used for getting some resources from the context (in the example it is used by a BookUtil class for getting a location of a product "database" (an xml file). However I cannot find any mention of this MessageContext parameter anywhere else, and, need I mention at all that the example doesn't work! Can anybody enlighten me on what this all is about? [ February 07, 2004: Message edited by: Baba Bizlowsky ] [ February 07, 2004: Message edited by: Baba Bizlowsky ]