Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis problems  RSS feed

Baba Bizlowsky
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!