axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hudson <m...@slac.com>
Subject Message service examples w/ documents?
Date Wed, 09 Oct 2002 15:37:04 GMT

There are no good examples in the Axis documentation for using the
messaging mechanism (as opposed to RPC) in SOAP for sending just a single
XML document and getting an XML document back.  The docs show you the
method signature for the web service, but no examples for calling it.

The Message class takes an Object in its constructor that could be an
InputStream representing an XML document for the SOAP Body... however,
this doesn't seem to work anymore in RC2 (though it worked in RC1).

Now it seems that the only way to get the Document to Document thing to
work is to create a SOAPBodyElement with the document's root element and
pass that as a parameter to Call's invoke.  Though it seems to work, using
the setRequestMessage method seems so much cleaner... or even some way of
directly telling the SOAPBody object what it's XML should be would be
cleaner.

Any suggestions?


==============================================================================
Michael J. Hudson    |                               |        mike@slac.com

                "Search for the perfect church, if you will;
 		       when you find it, join it, and
       realize that on that day it becomes something less than perfect."
 -Rev. Andrew Greeley responding to the moral crisis in the Catholic church.

                     |                               |
==============================================================================


Mime
View raw message