cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From matteo <matteo.ru...@gmail.com>
Subject Re: Problem on the way back to the client - CXF WS dispatch
Date Thu, 13 Dec 2012 14:54:25 GMT
Ok, I got a little bit more understanding of what is going on here.
Basically, my dispatcher D gets the following envelope:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><Action
xmlns="http://www.w3.org/2005/08/addressing">http://dbproxyservice/IPersistence/GetUserByUsernameAndPswResponse</Action><MessageID
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:2ec24b8b-d806-45ce-8aad-ce6a87bd2bb3</MessageID><To
xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</To><RelatesTo
xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:d26fe6a1-5e20-4073-8abd-69647c109f0e</RelatesTo></soap:Header><soap:Body><ns2:GetUserByUsernameAndPswResponse
xmlns:ns2="http://dbproxyservice/"
xmlns:ns3="http://config.....com/"><return>.. the return stuff here is not
null..</return></ns2:GetUserByUsernameAndPswResponse></soap:Body></soap:Envelope>

And the outgoing CXF interceptor chain at dispatcher side turns this
envelope into the following one that I can see through wireshark on its way
to the client (for debugging I disabled body encryption):

<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><wsse:Security
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"
soap:mustUnderstand="true"><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="X509-A5924E959618F02F2D13554097604841">MIICRz...sVn9zw=</wsse:BinarySecurityToken><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
Id="SIG-8"><ds:SignedInfo><ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="soap"/></ds:CanonicalizationMethod><ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference
URI="#TS-2"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse
soap"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>AHdwia1lxL1y3F/W13MY9Bc08Dc=</ds:DigestValue></ds:Reference><ds:Reference
URI="#id-3"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList=""/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>5jpG2siQ7CRFL3nlpYPH5fuWxC8=</ds:DigestValue></ds:Reference><ds:Reference
URI="#id-4"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="soap"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>Xbe5qB49zJbT+tiTej8baLM2BGU=</ds:DigestValue></ds:Reference><ds:Reference
URI="#id-5"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="soap"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>4Y1MqiswaNZUm15Y4mi7HHACXNk=</ds:DigestValue></ds:Reference><ds:Reference
URI="#id-6"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="soap"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>T3HUonSxnHL+68ucDmJYuBOkLh4=</ds:DigestValue></ds:Reference><ds:Reference
URI="#id-7"><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"><ec:InclusiveNamespaces
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList="soap"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>gtBR9G9uSAiaDTIqvdjNl53DOxE=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>UzSfTx0vYVZvlUdAMDVJE6eXjRhWkm1LWi37jgiN6hdlfO/qo38F6xJclyOHlMYVU4aut5YUEK0e
dGEwjcOL+OCfkKguXx2V7I/BnmCINPrSQRV2qrFn/y/tWTdDjfsNKf+QfLkyiRuLCy+dsDiTqhqd
0A6CG9tNKKe5C7xzx+U=</ds:SignatureValue><ds:KeyInfo
Id="KI-A5924E959618F02F2D13554097604842"><wsse:SecurityTokenReference
wsu:Id="STR-A5924E959618F02F2D13554097604843"><wsse:Reference
URI="#X509-A5924E959618F02F2D13554097604841"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature><wsu:Timestamp
wsu:Id="TS-2"><wsu:Created>2012-12-13T14:42:40.475Z</wsu:Created><wsu:Expires>2012-12-13T14:47:40.475Z</wsu:Expires></wsu:Timestamp></wsse:Security><Action
xmlns="http://www.w3.org/2005/08/addressing"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-4">http://dbproxyservice/IPersistence/GetUserByUsernameAndPswResponse</Action><MessageID
xmlns="http://www.w3.org/2005/08/addressing"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-5">urn:uuid:91e643c4-1a21-4a91-bb9e-549f6954f04f</MessageID><To
xmlns="http://www.w3.org/2005/08/addressing"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-6">http://www.w3.org/2005/08/addressing/anonymous</To><RelatesTo
xmlns="http://www.w3.org/2005/08/addressing"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-7">urn:uuid:2652122a-1da2-48cf-8b6e-a31d47b7a17a</RelatesTo></soap:Header><soap:Body
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
wsu:Id="id-3"/></soap:Envelope>

As you can see the Body is empty! How is that possible??? Where the original
body has gone?

Thank you,
matteo






-----
matteo
--
View this message in context: http://cxf.547215.n5.nabble.com/Problem-on-the-way-back-to-the-client-CXF-WS-dispatch-tp5719999p5720219.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message