Hi All,
Another questions ^_^v.
Now I'm trying to create an Axis service (simple calculator service)
with WS-Sec enabled (policy taken from Rampart sample.02).
I have tested this service (sync & async) from an Axis client, and it
works great. I can see the message signed & validation is ok.
Again, I want to test its interoperability with WCF client, but the
service rejects the request with message :
"org.apache.axis2.AxisFault: Must Understand check failed s : MustUnderstand"
I tried to compare SOAP request headers both from Axis2 client & WCF client.
But I have no idea why I get this errors. (headers just looks similar,
only the namespace naming is different)
I attached 2 files, 1 is WCF request message and 1 is Axis response fault.
Thanks in advance.
Sukma
!just learning ws!
HTTP/1.1 100 Continue
HTTP/1.1 500 Internal server error
Date: Wed, 16 May 2007 04:43:32 GMT
Server: Simple-Server/1.1
Content-Length: 1447
Content-Type: application/soap+xml; charset=utf-8
Connection: Close
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header />
<soapenv:Body>
<soapenv:Fault>
<soapenv:Code>
<soapenv:Value>soapenv:Sender</soapenv:Value>
</soapenv:Code>
<soapenv:Reason>
<soapenv:Text xml:lang="en-US">Must Understand check failed s :
MustUnderstand</soapenv:Text>
</soapenv:Reason>
<soapenv:Detail>
<Exception>org.apache.axis2.AxisFault: Must Understand check
failed s : MustUnderstand at
org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:112) at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493) at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
at
org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230) at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:189)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123)
at
org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:261)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:613)</Exception>
</soapenv:Detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>POST /axis2/services/CalculatorService?wsdl HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Host: 127.0.0.1:8888
Content-Length: 4267
Expect: 100-continue
Connection: Keep-Alive
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1" u:Id="_2">urn:Add</a:Action>
<a:MessageID
u:Id="_3">urn:uuid:2b7dbbfa-079b-4981-bb17-d8e8cca9a4da</a:MessageID>
<a:ReplyTo u:Id="_4">
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1"
u:Id="_5">http://service:8888/axis2/services/CalculatorService?wsdl</a:To>
<o:Security s:mustUnderstand="1"
xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="uuid-60ac28cf-d956-4597-812a-d70f9eb72388-1">
<u:Created>2007-05-16T04:44:11.937Z</u:Created>
<u:Expires>2007-05-16T04:49:11.937Z</u:Expires>
</u:Timestamp>
<o:BinarySecurityToken
u:Id="uuid-c500b2ef-a78e-4aab-a79e-e8fd90354d13-2"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">MIICjzCCAfigAwIBAgIBATANBgkqhkiG9w0BAQUFADBcMQswCQYDVQQGEwJJRDEKMAgGA1UECBMBLTEKMAgGA1UEBxMBLTEKMAgGA1UEChMBLTEKMAgGA1UECxMBLTEdMBsGA1UEAxMUQ2VydGlmaWNhdGVBdXRob3JpdHkwHhcNMDcwNDI2MDk0NTMyWhcNMTIwNDI0MDk0NTMyWjBCMQswCQYDVQQGEwJJRDEKMAgGA1UECBMBLTEKMAgGA1UEChMBLTEKMAgGA1UECxMBLTEPMA0GA1UEAxMGY2xpZW50MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDeNbhilkHvdGp5Wwlp/7/bfZBwp43ldYpTK3r4sGEy+BbReG0ZS4HeAv0neQCUrabO7LJTNmDFzNQYZV2OE+o9neW4+G7BP6/OX12bC41UcJn4ISAZ3fQ9wlOlWXmTQ1nW+NOL61Ugti84p1C1CB9OEStI6lkHKRJw4YudN87j0wIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG+EIBDQQfFh1PcGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUtuYUOTX/YayIMx6R6Y2kfrp5TTUwHwYDVR0jBBgwFoAUoyT04ntA6d7EG8ZpFncNrleymewwDQYJKoZIhvcNAQEFBQADgYEAg2B4qGMrD6RH+DCHe5ta6K5JLv99furoIlrqFyCtq9GY0LMByZ9Uc3WaZBsBuVExsQAvHC51UKnJWwVtkT2YnN7gds+lOr/XHQo/M7klvc0si9LKH/QFjdHmRazNdHC9S0CT7WOFG5Hrj49pL1IHErwUJwpFOxqLaD+rKaEdpSk=</o:BinarySecurityToken>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="#_1">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>LovfxM58Tk9cYzwZgLSw8YbucgY=</DigestValue>
</Reference>
<Reference URI="#_2">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>Z1NkyCXyFn0Lpo8FHk0s/9tcgiE=</DigestValue>
</Reference>
<Reference URI="#_3">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>qIBWL2Qx535s+1Fy6mZo3hp3OEc=</DigestValue>
</Reference>
<Reference URI="#_4">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>l6mMmQ2LE9VFtjaA6Qc4GKBXURw=</DigestValue>
</Reference>
<Reference URI="#_5">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>PQ8dRr2hnrgS6Z+ldP1TV/GmTmg=</DigestValue>
</Reference>
<Reference URI="#uuid-60ac28cf-d956-4597-812a-d70f9eb72388-1">
<Transforms>
<Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</Transforms>
<DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue>50EMyV4To34uAGt+tFUCqJHeNPY=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue>EcFKlH4q2+1/fq3kg98DcjoF2wVh8FwuRm7mlH55WnnLdah4u7W52TX1V5+lvqIEgGo2uuvRArnPxiCxCy8DagfpkIzPqGrEgI7iSmg2MYMSXXkcLedOInCD/gEQ1l57L6e58zUp3gPO/T6NYqCsqrJAO9CGs4Yn3QiLlwQf8Zk=</SignatureValue>
<KeyInfo>
<o:SecurityTokenReference>
<o:Reference
URI="#uuid-c500b2ef-a78e-4aab-a79e-e8fd90354d13-2"/>
</o:SecurityTokenReference>
</KeyInfo>
</Signature>
</o:Security>
</s:Header>
<s:Body u:Id="_1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Add xmlns="http://calculator.jawasoft.com/xsd">
<param0>100</param0>
<param1>19</param1>
</Add>
</s:Body></s:Envelope>---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]