I've spotted something strange in the logs. The Body decrypts as:

<Fault 
xmlns="http://www.w3.org/2003/05/soap-envelope";><Code><Value>Sender</Value></Code><Reason><Text
xml:lang="en-US">The entity with a name = 'accsount' was not found in
the MetadataCache.</Text></Reason><Detail><OrganizationServiceFault
xmlns="http://schemas.microsoft.com/xrm/2011/Contracts";
xmlns:i="http://www.w3.org/2001/XMLSchema-instance";><ErrorCode>-2147217150</ErrorCode><ErrorDetails
xmlns:a="http://schemas.datacontract.org/2004/07/System.Collections.Generic"/><Message>The
entity with a name = 'accsount' was not found in the
MetadataCache.</Message><Timestamp>2012-05-23T07:21:10.32225Z</Timestamp><InnerFault
i:nil="true"/><TraceText
i:nil="true"/></OrganizationServiceFault></Detail></Fault>

However, the SOAP Body is being canonicalized as:

<s:Body xmlns:s="http://www.w3.org/2003/05/soap-envelope";
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
u:Id="_2"><env:Fault><Code
xmlns="http://www.w3.org/2003/05/soap-envelope";><Value>Sender</Value></Code><Reason
xmlns="http://www.w3.org/2003/05/soap-envelope";><Text
xml:lang="en-US">The entity with a name = 'accsount' was not found in
the MetadataCache.</Text></Reason><env:Detail><OrganizationServiceFault
xmlns="http://schemas.microsoft.com/xrm/2011/Contracts";><ErrorCode>-2147217150</ErrorCode><ErrorDetails></ErrorDetails><Message>The
entity with a name = 'accsount' was not found in the
MetadataCache.</Message><Timestamp>2012-05-23T07:21:10.32225Z</Timestamp><InnerFault
xmlns:i="http://www.w3.org/2001/XMLSchema-instance";
i:nil="true"></InnerFault><TraceText
xmlns:i="http://www.w3.org/2001/XMLSchema-instance";
i:nil="true"></TraceText></OrganizationServiceFault></env:Detail></env:Fault></s:Body>

Note "Fault xmlns="http://www.w3.org/2003/05/soap-envelope""; is now
"env:Fault", and "env" is not defined anywhere in the SOAP Envelope.

What JDK are you using? Also, what SAAJ implementation is being used?
Could you try adding Xalan as a dependency and see if it makes a
difference?

Colm.

On Wed, May 23, 2012 at 5:21 PM, Yuriy Flyud <[email protected]> wrote:
> Here is a log for a valid request processing:
> http://cxf.547215.n5.nabble.com/file/n5708395/log.log log.log
>
> I'l try to get any logs from service provider side (MS CRM 2011) if it is
> possible.
>
> All the security policy configuration is taken from wsdl. I can try to
> download it, change the fragments you requested and use a local copy of it
> in application.
> Here is a wsdl:
> http://cxf.547215.n5.nabble.com/file/n5708395/wsdl.xml wsdl.xml
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/Error-message-from-server-cannot-be-decrypted-tp5708282p5708395.html
> Sent from the cxf-user mailing list archive at Nabble.com.



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Reply via email to