You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Brett McLean <br...@e-fill.com.au> on 2001/12/18 22:19:54 UTC

How to Write Message Clients?

 Hi,

 I'm trying to experiment with sending and receiving messages with SOAP.  In
the absence of a tutorial I  intended  to make some modifications to
'samples.messaging'.

 From what I can see the messaging sample 'cheats' a bit by having the Soap
Envelope etc already existing in the xml message file to be sent (ie
msg1.xml)

 I wish to modify the "SendMessage" class so that it takes an XML payload
file and wraps the SOAP envelope and body around it  (ie I want the
SendMessage class to do the work of preparing the SOAP compatible message,
and not having it already existing in the msg1.xml file.)

  The general instructions to write a message client are given in the
documentation  http://xml.apache.org/soap/docs/guide/msgclient.html However
I am not familiar enough with the usage of the various Envelope and Body
classes and associated types to figure out how to write this code.

 Does anybody know of other documentation somewhere (or even better, example
code) that can help me make a start on understanding how to code this?

Brett


RE: How to Write Message Clients?

Posted by cm...@pixelzoom.com.
An example can be found here: 
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch13.zip

-Chris

-- Original Message --

> Hi,
>
> I'm trying to experiment with sending and receiving messages with SOAP.
> In
>the absence of a tutorial I  intended  to make some modifications to
>'samples.messaging'.
>
> From what I can see the messaging sample 'cheats' a bit by having the
Soap
>Envelope etc already existing in the xml message file to be sent (ie
>msg1.xml)
>
> I wish to modify the "SendMessage" class so that it takes an XML payload
>file and wraps the SOAP envelope and body around it  (ie I want the
>SendMessage class to do the work of preparing the SOAP compatible message,
>and not having it already existing in the msg1.xml file.)
>
>  The general instructions to write a message client are given in the
>documentation  http://xml.apache.org/soap/docs/guide/msgclient.html However
>I am not familiar enough with the usage of the various Envelope and Body
>classes and associated types to figure out how to write this code.
>
> Does anybody know of other documentation somewhere (or even better, example
>code) that can help me make a start on understanding how to code this?
>
>Brett
>
>




RE: How to Write Message Clients?

Posted by cm...@pixelzoom.com.
An example can be found here: 
http://newinstance.com/writing/javaxml2/javaxml2_examples/javaxml2_ch13.zip

-Chris

-- Original Message --

> Hi,
>
> I'm trying to experiment with sending and receiving messages with SOAP.
> In
>the absence of a tutorial I  intended  to make some modifications to
>'samples.messaging'.
>
> From what I can see the messaging sample 'cheats' a bit by having the
Soap
>Envelope etc already existing in the xml message file to be sent (ie
>msg1.xml)
>
> I wish to modify the "SendMessage" class so that it takes an XML payload
>file and wraps the SOAP envelope and body around it  (ie I want the
>SendMessage class to do the work of preparing the SOAP compatible message,
>and not having it already existing in the msg1.xml file.)
>
>  The general instructions to write a message client are given in the
>documentation  http://xml.apache.org/soap/docs/guide/msgclient.html However
>I am not familiar enough with the usage of the various Envelope and Body
>classes and associated types to figure out how to write this code.
>
> Does anybody know of other documentation somewhere (or even better, example
>code) that can help me make a start on understanding how to code this?
>
>Brett
>
>