Hi
all, I have a small problem in adding headers
to a SOAP response. I tried out the following code Message mess = mc.getCurrentMessage(); SOAPEnvelope
se = mess.getSOAPEnvelope(); se.addHeader(new SOAPHeaderElement("MyNS","RETURNCODE","1")); mc.setResponseMessage(mess); This
code adds a header to the response message, but the integer value i am returning from the service is printed as null.I checked the SOAP response using tcpmon.
The integer value is there returned correctly, but the problem is only when i am printing it. anybody
knows a solution for this(or any other way of adding custom headers to a SOAP
response)? I
am using Apache axis(1.1beta) with Tomcat(4.1.18).. thanx
in advance.. regards, -Khaja |
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com