Hi
I already saw the MessageService, but unfortunately it is quite far from being useful.
I want to put some application xml info into the header section of the SOAPEnvelope and some other application xml info into the body section of the SOAPEnvelope.
I made a Message and I put some xml attachments into it, and it's ok.
I cannot understand how to build a SOAPHeader and a SOAPBody to the response envelope.
 
any clue?
Cheers
Marcello
 


Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 17 novembre 2004 12.20
A: [EMAIL PROTECTED]
Oggetto: Re: Newbie info on messaging


Marcello,

I don't know about attachments, but you don't need to use the MessageContext to add headers and body elements to the response. The second parameter has the SOAP envelope that will be passed back to the client and it already has a SOAP body. So you only need to add body element to the SOAP body and add headers to the response SOAP envelope (though headers are usually added in an Axis handler, not in the web service itself).

Axis comes with sample services, so you may be able to find something in there.

Tony



Hi all
I am quite new on axis. I have to implement a request/response service (i.e.
my service contains method(SOAPEnvelope req, SOAPEnvelope resp) ).
I managed to build the client, send a SOAPEnvelope correctly, receive the
envelope on the server.
I wasn't able to create a response message using setHeader, setBody and
addAttachment.
I understand I have to use the MessageContext.

Where can I find examples about this kind of issues?
Cheers
Marcello




Reply via email to