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
- Newbie info on messaging Marcello Marangio
- R: Newbie info on messaging tony . q . weddle
- R: Newbie info on messaging Marcello Marangio
- Re: R: Newbie info on messaging tony . q . weddle
- R: R: Newbie info on messaging Marcello Marangio
- Re: R: R: Newbie info on messaging tony . q . weddle
- How can I get the full path of the... Dacheng
- Re: How can I get the full pat... tony . q . weddle
- Re: How can I get the full... Dacheng