You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wss4j-dev@ws.apache.org by Rama Chennupati <ra...@yahoo.com> on 2006/04/26 17:19:47 UTC

Did not understand "MustUnderstand" header(s): error after receiving the response from the server

I am talking to the JBOSS webservice from a client using the WSS4J.    Verification is successfull at the server side and got a response from the server.
  Even i see  "- Verification successful for URI "#id-11544872" meesage at the client side and after that i am getting the following error at the client side.
   
  C:\wsdltest>java -Daxis.ClientConfigFile=client_deploy.wsdd -classpath %CLASSPAT
H% Hello.Tester
- Using Crypto Engine [org.apache.ws.security.components.crypto.Merlin]
- Verification successful for URI "#id-11544872"
Exception in thread "main" 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(MustUnders
tandChecker.java:96)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at Hello.HelloWorldServiceSoapBindingStub.getWish(HelloWorldServiceSoapB
indingStub.java:103)
        at Hello.Tester.main(Tester.java:17)
          {http://xml.apache.org/axis/}hostname:hqltprchenupatt
  Did not understand "MustUnderstand" header(s):
        at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnders
tandChecker.java:96)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
        at org.apache.axis.client.Call.invoke(Call.java:2767)
        at org.apache.axis.client.Call.invoke(Call.java:2443)
        at org.apache.axis.client.Call.invoke(Call.java:2366)
        at org.apache.axis.client.Call.invoke(Call.java:1812)
        at Hello.HelloWorldServiceSoapBindingStub.getWish(HelloWorldServiceSoapB
indingStub.java:103)
        at Hello.Tester.main(Tester.java:17)
   
  Here is my client_deploy.wsdd 
  <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
 <transport name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
  <globalConfiguration >
   <requestFlow >
   <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
    <parameter name="action" value="Signature"/>
    <!-- Use the Client's cert/key to sign the request -->
    <parameter name="user" value="alice"/>
    <parameter name="passwordCallbackClass" 
      value="Hello.PWCallback1"/>
    <parameter name="signatureKeyIdentifier" value="DirectReference" />
    <parameter name="signaturePropFile" value="wsstest.properties" />
   </handler> 
   <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
    <parameter name="action" value="Signature"/>
 <parameter name="signatureKeyIdentifier" value="DirectReference" />
 <parameter name="signaturePropFile" value="wsstest.properties"/>
   </handler>
     </requestFlow >
  </globalConfiguration >
</deployment> 
   
   
  Here is my Response
  HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500)/Tomcat-5.5
Content-Type: text/xml
Date: Tue, 25 Apr 2006 20:57:05 GMT
Connection: close
  <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header><wsse:Security env:mustUnderstand='1' xmlns:wsse='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'><wsu:Timestamp wsu:Id='timestamp'><wsu:Created>2006-04-25T20:57:04.984Z</wsu:Created></wsu:Timestamp><wsse:BinarySecurityToken EncodingType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3' wsu:Id='token-5-1145998625078-24255014'>MIIDfjCCAmagAwIBAgIERE6AGzANBgkqhkiG9w0BAQQFADCBgDEdMBsGCSqGSIb3DQEJARYOdGVz
dEB5YWhvby5jb20xCzAJBgNVBAYTAlVTMREwDwYDVQQIEwh2aXJnaW5pYTEPMA0GA1UEBxMGcmVz
dG9uMQ0wCwYDVQQKEwR0ZXN0MQswCQYDVQQLEwJJVDESMBAGA1UEAxMJbG9jYWxob3N0MB4XDTA2
MDQyNTIwMDEzMVoXDTA5MDQyNDIwMDEzMVowgYAxHTAbBgkqhkiG9w0BCQEWDnRlc3RAeWFob28u
Y29tMQswCQYDVQQGEwJVUzERMA8GA1UECBMIdmlyZ2luaWExDzANBgNVBAcTBnJlc3RvbjENMAsG
A1UEChMEdGVzdDELMAkGA1UECxMCSVQxEjAQBgNVBAMTCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcN
AQEBBQADggEPADCCAQoCggEBAJbXwf5y+m85mvcDclF38X+Ijll7fUDsYSlnh0d27N9v8ysSfsL+
sm9SXpdqVxR+/P6wpGMumNAg90QdKYnZxYZIARozkY15G4kIlmQvVkETaScYH9ekuoykUCsJVPUX
m0z9cuQRhAPZblmlp+343coIFLJvhMSx9FEFKxwV7eNytFJbHmCoJOQ0iU7ho2hjgUGWsOZc/4Bv
Honso/38J74hknYenXt0NUYqOvIHiRX+A46v/JOAoLPLu54dzwkNg52z6WN/pEJdQmacJ35B4W5Q
4TG5ERWXqd+XA2xrb6EX6QSAhRCP08UTh4wfvO6A9l9WwXow32r/DXFvmB7smVUCAwEAATANBgkq
hkiG9w0BAQQFAAOCAQEAUksV+e4ybTSns2W65oRw57R+ic/JyesIy8hVwwnk8yfe 8uK92W2U8I1I
OKeE+LzgzLIH2PH2w2hq57xHitQA465T1jEFGfFqQbXahdbh8isD8Rz98QG0iSvZhX8hVN6VGb7F
+W0NfqeSImnJutyVmqBocqQOCX23E+bFDOUkDU+evrzjki8x5L9XS9B1d9vOoauulh6+7HVu49u3
MkF7wEsG5z+hDss6t588HReBNYPgeule183AV5ugv80grjbuiHEsPjO/9FP0VAKRl2G7TguKDIQw
lvJZoJq4qCjXc0LOEgH/xEoBsXCSXqh9zw0L1s0C9XaIRJ3mi8dKnOqqcw==</wsse:BinarySecurityToken><ds:Signature xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:SignedInfo xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:CanonicalizationMethod Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
<ds:SignatureMethod Algorithm='http://www.w3.org/2000/09/xmldsig#rsa-sha1' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
<ds:Reference URI='#element-4-1145998624984-14804327' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:Transforms xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:Transform Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
</ds:Transforms>
<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
<ds:DigestValue xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>JsH7Uqe2zir8Iut1uJePtyAQa9I=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI='#timestamp' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:Transforms xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<ds:Transform Algorithm='http://www.w3.org/2001/10/xml-exc-c14n#' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
</ds:Transforms>
<ds:DigestMethod Algorithm='http://www.w3.org/2000/09/xmldsig#sha1' xmlns:ds='http://www.w3.org/2000/09/xmldsig#'/>
<ds:DigestValue xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>MWLAWMpQuOh1ddKrV1qeTtRBEfw=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
hy8WjNIB4R+4ROv+L8wm1DneN5TKEG25aK1+AMDFtrm1AiDJG+nkPJyxbZ7CBCv4pGyhIt0T5UK3
0jVQHTO84bKZPTp7VydDOarKHZ8vmn8dFLbQwkrEWJFPm4Kw60lM/ExR46QnGn+WTQy1TTGzluSu
dUevVUslq3W/KQhsmpWtpf24gTiVW9bAq4WoO4tpszHYcnZWWun6LgMCNdGCZdV+RsTq/gOaJ97Q
Qxq0xR5QZyqMToS1ePRfva6wyL/SMb44ToU1Ic9fXPNq/ATvktKnqk2W65bB9eYhaJL06xhGuNAT
wL6lRoIfFrcbbmbyAWh/lMjWWCoLYOElOFfR+w==
</ds:SignatureValue>
<ds:KeyInfo xmlns:ds='http://www.w3.org/2000/09/xmldsig#'>
<wsse:SecurityTokenReference wsu:Id='reference-6-1145998625078-1235836'><wsse:Reference URI='#token-5-1145998625078-24255014' ValueType='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3'/></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature></wsse:Security></env:Header><env:Body wsu:Id='element-4-1145998624984-14804327' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd'><ns1:getWishResponse xmlns:ns1='urn:Hello'><getWishReturn>HelloRama Chennupati How are you Doing?</getWishReturn></ns1:getWishResponse></env:Body></env:Envelope>


			
---------------------------------
Celebrate Earth Day everyday!  Discover 10 things you can do to help slow climate change. Yahoo! Earth Day