|
Dear Peter Ledbrook,
I have implemented the first option that you
suggested.
The code below is a snippet of my axis server object.It essentially ignores
the mustUnderstand header element by calling the extractHeaderElements()
method.After that, no more soap faults are thrown.Would Axis developers explain
what's going on?
private void processSoapHeaders() throws AxisFault,
SOAPException
{ System.out.println("processSoapHeaders()"); MessageContext msgContext = MessageContext.getCurrentContext(); Message message = msgContext.getRequestMessage(); SOAPEnvelope envelope = message.getSOAPEnvelope(); javax.xml.soap.SOAPHeader header =
envelope.getHeader();
Iterator it = header.extractHeaderElements("http://schemas.xmlsoap.org/soap/actor/next") ; } Certainly I will try your colleague's method, but i agree with
you that such "hack" should better be done at server side.
And does he have any ideas why Axis fail to recognize the mustUnderstand
element?
Thanks.
Albert
|
- Sending attachments between Axis and .Net albert kwan
- RE: Sending attachments between Axis and .Net Peter Ledbrook
- albert kwan
