If you add a header to your SOAP message, you must provide a handler to
process it. If you don't and the mustUnderstand attribute is set to "1",
then the SOAP runtime is required to return a MustUnderstand fault. 

Here's an article about configuring a handler chain. You must configure a
handler chain for each SOAP node that will process the message containing
the header for both input and output processing.

http://www.findarticles.com/p/articles/mi_m0MLV/is_4_3/ai_102165100/pg_2

Anne

-----Original Message-----
From: egemen kalyoncu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 04, 2004 2:05 AM
To: [EMAIL PROTECTED]
Subject: RE: mustUnderstand error


Hi Anne,

Can you explain your suggestion? i couldn't understand it.Do you mean that i

must write a handler on client and server side? And Can you give me a little

example that handles Soap Header?
Thanks for your help.

>From: "Anne Thomas Manes" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: mustUnderstand error
>Date: Tue, 3 Aug 2004 11:17:11 -0400
>
>I think the mustUnderstand error is occurring on your client. Have you
>configured a handler to processes this header on return messages in your
>client?
>
>Anne
>
>-----Original Message-----
>From: egemen kalyoncu [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, August 03, 2004 4:06 AM
>To: [EMAIL PROTECTED]
>Subject: mustUnderstand error
>
>hi,
>
>i can do sending and receiving soap messages correctly  but when i want to
>set "mustUnderstand=true" attribute of SoapHeader axis engine throws an
>exceptipon.
>
>This exception is at the server side but soap response from server is
>correct and there is no soap fault in the message.
>
>
>client SoapHeader
>
><soapenv:Header>
>       <mm7:TransactionID
>soapenv:actor="http://localhost:8080/axis/services/MM7SubmitSOAPPort";
>soapenv:mustUnderstand="1"
>xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE
L
>-5-MM7-1-2">vas-Deneme</mm7:TransactionID>
>    </soapenv:Header>
>
>server SoapHeader
>
><soapenv:Header>
>       <mm7:TransactionID
>soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next";
>soapenv:mustUnderstand="1"
>xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/RE
L
>-5-MM7-1-2">vas-Deneme</mm7:TransactionID>
>    </soapenv:Header>
>
>
>                                _____EXCEPTION_____
>
>AxisFault
>faultCode: {http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand
>faultSubcode:
>faultString: Did not understand &quot;MustUnderstand&quot; header(s):
>faultActor:
>faultNode:
>faultDetail:
>       {http://xml.apache.org/axis/}stackTrace:
>       at
>org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandCh
e
>cker.java:96)
>       at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
>       at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
>       at org.apache.axis.client.Call.invoke(Call.java:2718)
>       at org.apache.axis.client.Call.invoke(Call.java:2394)
>       at org.apache.axis.client.Call.invoke(Call.java:2317)
>       at org.apache.axis.client.Call.invoke(Call.java:1774)
>       at
>o2.mm7.MM7SubmitRspSOAPBindingStub.mm7_response(MM7SubmitRspSOAPBindingStub
.
>java:447)
>       at o2.mm7.Test.main(Test.java:109)
>
>       {http://xml.apache.org/axis/}hostname:clinet166
>
>_________________________________________________________________
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.click-url.com/go/onm00200636ave/direct/01/
>

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus

Reply via email to