I am currently doing some preliminary testing using SOAPUI and have hit the first stumbling block with retrieving data from the system, I have generated my CipherValues and KeyIdentifier but am unsure of how to implement these in a security header for the retrieve message.
I am struggling to find any information regarding SOAP connections to Dynamics CRM Online, so I have extracted what I assume to be the security header from the SDK example project and have attempted the below message structure with no success.
Does anyoune have any examples with the security header? or know where i can find some more infomation on testing with SOAP
Endpoint URL: https://[SITE ADDRESS].api.crm.dynamics.com/XRMServices/2011/Organization.svc/web
<soap:Envelope xmlns:soap="www.w3.org/.../soap-envelope" xmlns:ser="schemas.microsoft.com/.../Services" xmlns:con="schemas.microsoft.com/.../Contracts" xmlns:arr="schemas.microsoft.com/.../Arrays"> <soap:Header> <EncryptedData xmlns="www.w3.org/.../xmlenc" Id="Assertion0" Type="www.w3.org/.../xmlenc"> <EncryptionMethod Algorithm="www.w3.org/.../xmlenc"/> <ds:KeyInfo xmlns:ds="www.w3.org/.../xmldsig"> <EncryptedKey> <EncryptionMethod Algorithm="www.w3.org/.../xmlenc"/> <ds:KeyInfo Id="keyinfo"> <wsse:SecurityTokenReference xmlns:wsse="docs.oasis-open.org/.../oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:KeyIdentifier EncodingType="docs.oasis-open.org/.../oasis-200401-wss-soap-message-security-1.0" ValueType="docs.oasis-open.org/.../oasis-200401-wss-x509-token-profile-1.0">[IDENTIFIER]</wsse:KeyIdentifier> </wsse:SecurityTokenReference> </ds:KeyInfo> <CipherData> <CipherValue>[FIRST VALUE]</CipherValue> </CipherData> </EncryptedKey> </ds:KeyInfo> <CipherData> <CipherValue>[SECOND VALUE]</CipherValue> </CipherData> </EncryptedData> </soap:Header> <soap:Body> <ser:Retrieve> <!--Optional:--> <ser:entityName>contact</ser:entityName> <!--Optional:--> <ser:id>5CDAA018-1803-E611-811F-C4346BAC0910</ser:id> <!--Optional:--> <ser:columnSet> <!--Optional:--> <con:AllColumns>false</con:AllColumns> <!--Optional:--> <con:Columns> <!--Zero or more repetitions:--> <arr:string>fullname</arr:string> </con:Columns> </ser:columnSet> </ser:Retrieve> </soap:Body> </soap:Envelope>
- Additional SOAP Header Paramaters -
Content-Type: text/xml; charset=utf-8
SOAPAction: schemas.microsoft.com/.../Retrieve
*This post is locked for comments