web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

WebService Question:

(0) ShareShare
ReportReport
Posted on by 165

Hello,

I have a question - maybe someone can help me.

If I want to query via webService to a specific contactid, then I have to send the ID parameter. Although the field is in the XML output always called contactid.

Example: Excerpt from a Contact XML return

    <q1:company_ldap_id> fb541d5c-4A91-1032-8094-ab86f4303bbb </ q1: company_ldap_id>

   <q1:address1_city> Oslo</ q1: address1_city>

   <q1:contactid> {7C19A28B-9EDF-E111 9433-001999678457} </ q1: contactid>

The request looks like this:

<web:entityName> contact </ web: entityName>

<web:id> {7C19A28B-9EDF-E111 9433-001999678457} </ web: id>

It works this way.

But my problem is - I will use the company_ldap_id field as the identifier.

The company_ldap_id field has been defined by ourselves. A request of this nature does not work.

<web:entityName> contact </ web: entityName>

<web:company_ldap_id> fb541d5c-4A91-1032-8094-ab86f4303bbb </ web: company_ldap_id>

Any idea?

Thanks in advance.

Mirko

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    ScottDurow Profile Picture
    21 on at

    Hi Mirko,

    If you want to query by any identifier other than the primary key you'll need to use one of:

    1. FetchXml (good for use from Javascript) - msdn.microsoft.com/.../gg328117.aspx

    2. QueryExpression - msdn.microsoft.com/.../gg328300.aspx

    3. QueryByAttribtue - msdn.microsoft.com/.../gg334708.aspx

    hth,

    Scott

  • Suggested answer
    MJFPalmer Profile Picture
    115 on at

    Hi Mirko,

    You are presumably using a Retrieve request to retrieve the contact from the CRM web service. The Retrieve request will always use the CRM primary key as its identifier and there is no way to override this.

    What you should be able to do is change to use a RetrieveMultiple (msdn.microsoft.com/.../bb929002.aspx) request with a condition expression on your custom company_ldap_id field.

  • Mirko Profile Picture
    165 on at

    Hello

    Thanks for your help - I modified the request to an RetrieveMultiple:

    <?xml version="1.0" encoding="UTF-8" ?>

     <?DynamicParameter wsURL="xxxxx/MSCrmServices/2007/CrmService.asmx"?>

     <?DynamicParameter login="xxxx"?>

     <?DynamicParameter pwd="xxxx"?>

     <?DynamicParameter nTLMDomain="xxxx"?>

     <?DynamicParameter useNTLM="true"?>

     <?DynamicParameter soapAction="schemas.microsoft.com/.../RetrieveMultiple"

     <?DynamicParameter soapAction="schemas.microsoft.com/.../Retrieve"

    - <soapenv:Envelope xmlns:soapenv="schemas.xmlsoap.org/.../" xmlns:web="schemas.microsoft.com/.../WebServices" xmlns:cor="schemas.microsoft.com/.../CoreTypes" xmlns:xsi="www.w3.org/.../XMLSchema-instance" xmlns:quer="schemas.microsoft.com/.../Query">

    - <soapenv:Header>

    - <web:CrmAuthenticationToken>

     <cor:AuthenticationType>0</cor:AuthenticationType>

     <cor:OrganizationName>XXXXXXX</cor:OrganizationName>

     <cor:CallerId>00000000-0000-0000-0000-000000000000</cor:CallerId>

     </web:CrmAuthenticationToken>

     </soapenv:Header>

    - <soapenv:Body>

    - <web:RetrieveMultiple>

    - <web:query xsi:type="quer:QueryExpression">

     <quer:EntityName>contact</quer:EntityName>

     <quer:ColumnSet xsi:type="quer:AllColumns" />

     <quer:Distinct>false</quer:Distinct>

    - <quer:Criteria>

     <quer:FilterOperator>And</quer:FilterOperator>

    - <quer:Conditions>

    - <quer:Condition>

     <quer:AttributeName>company_ldap_id</quer:AttributeName>

     <quer:Operator>Equal</quer:Operator>

    - <quer:Values>

     <quer:Value>fb54e4321bbb</quer:Value>

     </quer:Values>

     </quer:Condition>

     </quer:Conditions>

     </quer:Criteria>

     </web:query>

     </web:RetrieveMultiple>

     </soapenv:Body>

     </soapenv:Envelope>

    But I get the fallowing error message

    <soap:Body>

    - <soap:Fault>

     <faultcode>soap:Server</faultcode>

     <faultstring>Server was unable to process request.</faultstring>

    - <detail>

    - <error>

     <code>0x80040203</code>

     <description>entityName</description>

     <type>Platform</type>

     </error>

     </detail>

     </soap:Fault>

     </soap:Body>

    Can anyone see my mistake?

  • ScottDurow Profile Picture
    21 on at

    Hi,

    I see you are using the CRM 4 2007 endpoint - are you using CRM 4 or CRM 2011?

    Also - the soap request doesn't look as I'd expect it - what SOAP client are you using?

    On first glance though, the CrmAuthenticationToken is not populated.

    hth,

    Scott

  • MJFPalmer Profile Picture
    115 on at

    Hi Mirko,

    I don't see anything at a quick glance. Try logging your request using the CRM SOAP Logger (www.powerobjects.com/.../microsoft-dynamics-crm-soap-logger-a-tool-that-can-greatly-simplify-writing-http-requests) and copy the format into your code.

  • Mirko Profile Picture
    165 on at

    Hi,

    We use CRM 4 and the Softproject X4 ESB as the "client". (softproject.de/.../x4-esb.html)

  • Mirko Profile Picture
    165 on at

    Hi Michael,

    sorry but we don't have CRM 2011 and I don't have VisualStudio - as I understand I need these for the Microsoft CRM SOAP Logger.

  • ScottDurow Profile Picture
    21 on at

    HI Mirko,

    Right, that explains it!

    Could you post the actual SOAP request that is presented 'on the wire' please - using an HTTP trace. This will remove all the Softproject markup from the request.

    hth,

    Scott

  • Mirko Profile Picture
    165 on at

    Mmmm HTTP trace is not so easy: I have a JBOSS debug log:

    2013-08-28 15:47:34,603 DEBUG [org.jboss.ejb.StatefulSessionContainer] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Created new session ID: hkwlm1qj-8xy
    2013-08-28 15:47:34,603 DEBUG [org.jboss.ejb.StatefulSessionContainer] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Using create method for session: public void de.softproject.integration.engine.bean.iXengineEJB.ejbCreate()
    2013-08-28 15:47:34,603 DEBUG [org.jboss.proxy.ejb.ProxyFactory] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) seting invoker proxy binding for stateful session: stateful-unified-invoker
    2013-08-28 15:47:34,618 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Started process "BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf".
    2013-08-28 15:47:34,618 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "xml_1.xml" in 0 ms.
    2013-08-28 15:47:34,618 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Started subprocess "BueEShop/CRM/GetContact1.0/Processes/Subprocesses/SubprocessBeforeCRM.wrf".
    2013-08-28 15:47:34,618 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "Put input" in 0 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "GetBody.xsl" in 0 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "base64.fa" in 0 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "Put input_xml" in 0 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Finished subprocess "BueEShop/CRM/GetContact1.0/Processes/Subprocesses/SubprocessBeforeCRM.wrf" in 16 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "SubprocessBeforeCRM.wrf" in 16 ms.
    2013-08-28 15:47:34,634 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Started subprocess "BueEShop/CRM/GetContact1.0/Processes/Subprocesses/CallCRM.wrf".
    2013-08-28 15:47:34,649 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "CallCRM.xsl" in 0 ms.
    2013-08-28 15:47:34,649 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Started subprocess "BueCommon/CommonCRM1.0/Processes/CallCRM2.wrf".
    2013-08-28 15:47:34,665 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "ForwardParameterContent.xsl" in 16 ms.
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "POST /MSCrmServices/2007/CrmService.asmx HTTP/1.1[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "SOAPAction: http://schemas.microsoft.com/crm/2007/WebServices/Retrieve[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Host: buecrmqas.local.burkert.com:5555[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Length: 1646[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "[\r][\n]"
    2013-08-28 15:47:34,665 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "<?xml version="1.0" encoding="UTF-8"?><?DynamicParameter wsURL="http://buecrmqas.local.burkert.com:5555/MSCrmServices/2007/CrmService.asmx"?><?DynamicParameter login="crm_user18"?><?DynamicParameter pwd="Test2008"?><?DynamicParameter nTLMDomain="BURKERT"?><?DynamicParameter useNTLM="true"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/Retrieve"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:cor="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quer="http://schemas.microsoft.com/crm/2006/Query"><soapenv:Header><web:CrmAuthenticationToken><cor:AuthenticationType>0</cor:AuthenticationType><cor:OrganizationName>BUERKERT</cor:OrganizationName><cor:CallerId>00000000-0000-0000-0000-000000000000</cor:CallerId></web:CrmAuthenticationToken></soapenv:Header><soapenv:Body><web:RetrieveMultiple><web:query xsi:type="quer:QueryExpression"><quer:EntityName>contact</quer:EntityName><quer:ColumnSet xsi:type="quer:AllColumns"/><quer:Distinct>false</quer:Distinct><quer:Criteria><quer:FilterOperator>And</quer:FilterOperator><quer:Conditions><quer:Condition><quer:AttributeName>buerkert_ldap_id</quer:AttributeName><quer:Operator>Equal</quer:Operator><quer:Values><quer:Value>fb541d5c-4a91-1032-8094-ab86f4303bbb</quer:Value></quer:Values></quer:Condition></quer:Conditions></quer:Criteria></web:query></web:RetrieveMultiple></soapenv:Body></soapenv:Envelope>"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "HTTP/1.1 401 Unauthorized[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Length: 51[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Type: text/plain[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Server: Microsoft-IIS/6.0[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "WWW-Authenticate: Negotiate[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "WWW-Authenticate: NTLM[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "X-Powered-By: ASP.NET[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Date: Wed, 28 Aug 2013 13:47:34 GMT[\r][\n]"
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Set-Cookie: BIGipServerBUE-CRM-QAS-pool=2466805770.45845.0000; path=/[\r][\n]"
    2013-08-28 15:47:34,681 INFO [org.apache.commons.httpclient.auth.AuthChallengeProcessor] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) ntlm authentication scheme selected
    2013-08-28 15:47:34,681 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "HTTP Error 401.2 - Unauthorized: Access is denied[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "POST /MSCrmServices/2007/CrmService.asmx HTTP/1.1[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "SOAPAction: http://schemas.microsoft.com/crm/2007/WebServices/Retrieve[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Length: 1646[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Authorization: NTLM TlRMTVNTUAABAAAABlIAAAcABwAgAAAAAAAAACAAAABCVVJLRVJU[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Host: buecrmqas.local.burkert.com:5555[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Cookie: $Version=0; BIGipServerBUE-CRM-QAS-pool=2466805770.45845.0000; $Path=/[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "<?xml version="1.0" encoding="UTF-8"?><?DynamicParameter wsURL="http://buecrmqas.local.burkert.com:5555/MSCrmServices/2007/CrmService.asmx"?><?DynamicParameter login="crm_user18"?><?DynamicParameter pwd="Test2008"?><?DynamicParameter nTLMDomain="BURKERT"?><?DynamicParameter useNTLM="true"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/Retrieve"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:cor="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quer="http://schemas.microsoft.com/crm/2006/Query"><soapenv:Header><web:CrmAuthenticationToken><cor:AuthenticationType>0</cor:AuthenticationType><cor:OrganizationName>BUERKERT</cor:OrganizationName><cor:CallerId>00000000-0000-0000-0000-000000000000</cor:CallerId></web:CrmAuthenticationToken></soapenv:Header><soapenv:Body><web:RetrieveMultiple><web:query xsi:type="quer:QueryExpression"><quer:EntityName>contact</quer:EntityName><quer:ColumnSet xsi:type="quer:AllColumns"/><quer:Distinct>false</quer:Distinct><quer:Criteria><quer:FilterOperator>And</quer:FilterOperator><quer:Conditions><quer:Condition><quer:AttributeName>buerkert_ldap_id</quer:AttributeName><quer:Operator>Equal</quer:Operator><quer:Values><quer:Value>fb541d5c-4a91-1032-8094-ab86f4303bbb</quer:Value></quer:Values></quer:Condition></quer:Conditions></quer:Criteria></web:query></web:RetrieveMultiple></soapenv:Body></soapenv:Envelope>"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "HTTP/1.1 401 Unauthorized[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Length: 51[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Type: text/plain[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Server: Microsoft-IIS/6.0[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "WWW-Authenticate: NTLM TlRMTVNTUAACAAAACQAJADgAAAAGAoECJ9uCIyCFtf4AAAAAAAAAAKYApgBBAAAABQLODgAAAA9URFNCVUVDUk0CABIAVABEAFMAQgBVAEUAQwBSAE0AAQAWAEIAVQBFAEMAUgBNAEEAUABQADEAVAAEABoAdABkAHMAYgB1AGUAYwByAG0ALgBpAG4AdAADADIAYgB1AGUAYwByAG0AYQBwAHAAMQB0AC4AdABkAHMAYgB1AGUAYwByAG0ALgBpAG4AdAAFABoAdABkAHMAYgB1AGUAYwByAG0ALgBpAG4AdAAAAAAA[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "X-Powered-By: ASP.NET[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Date: Wed, 28 Aug 2013 13:47:34 GMT[\r][\n]"
    2013-08-28 15:47:34,696 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "HTTP Error 401.1 - Unauthorized: Access is denied[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "POST /MSCrmServices/2007/CrmService.asmx HTTP/1.1[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Type: text/xml; charset=UTF-8[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "SOAPAction: http://schemas.microsoft.com/crm/2007/WebServices/Retrieve[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "User-Agent: Jakarta Commons-HttpClient/3.0.1[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Content-Length: 1646[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Authorization: NTLM TlRMTVNTUAADAAAAGAAYAFEAAAAAAAAAaQAAAAcABwBAAAAACgAKAEcAAAAAAAAAUQAAAAAAAABpAAAABlIAAEJVUktFUlRDUk1fVVNFUjE4n/Whz7Ky/x05kTFiNK4gvhxDNThb7sfL[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Host: buecrmqas.local.burkert.com:5555[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "Cookie: $Version=0; BIGipServerBUE-CRM-QAS-pool=2466805770.45845.0000; $Path=/[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "[\r][\n]"
    2013-08-28 15:47:34,712 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) >> "<?xml version="1.0" encoding="UTF-8"?><?DynamicParameter wsURL="http://buecrmqas.local.burkert.com:5555/MSCrmServices/2007/CrmService.asmx"?><?DynamicParameter login="crm_user18"?><?DynamicParameter pwd="Test2008"?><?DynamicParameter nTLMDomain="BURKERT"?><?DynamicParameter useNTLM="true"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/RetrieveMultiple"?><?DynamicParameter soapAction="http://schemas.microsoft.com/crm/2007/WebServices/Retrieve"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:cor="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:quer="http://schemas.microsoft.com/crm/2006/Query"><soapenv:Header><web:CrmAuthenticationToken><cor:AuthenticationType>0</cor:AuthenticationType><cor:OrganizationName>BUERKERT</cor:OrganizationName><cor:CallerId>00000000-0000-0000-0000-000000000000</cor:CallerId></web:CrmAuthenticationToken></soapenv:Header><soapenv:Body><web:RetrieveMultiple><web:query xsi:type="quer:QueryExpression"><quer:EntityName>contact</quer:EntityName><quer:ColumnSet xsi:type="quer:AllColumns"/><quer:Distinct>false</quer:Distinct><quer:Criteria><quer:FilterOperator>And</quer:FilterOperator><quer:Conditions><quer:Condition><quer:AttributeName>buerkert_ldap_id</quer:AttributeName><quer:Operator>Equal</quer:Operator><quer:Values><quer:Value>fb541d5c-4a91-1032-8094-ab86f4303bbb</quer:Value></quer:Values></quer:Condition></quer:Conditions></quer:Criteria></web:query></web:RetrieveMultiple></soapenv:Body></soapenv:Envelope>"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "HTTP/1.1 500 Internal Server Error[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Date: Wed, 28 Aug 2013 13:47:34 GMT[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Server: Microsoft-IIS/6.0[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "X-Powered-By: ASP.NET[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "X-AspNet-Version: 2.0.50727[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Cache-Control: private[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Type: text/xml; charset=utf-8[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.header] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "Content-Length: 499[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "[0xef][0xbb][0xbf]<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request.</faultstring><detail><error>[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << " <code>0x80040203</code>[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << " <description>entityName</description>[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << " <type>Platform</type>[\r][\n]"
    2013-08-28 15:47:34,805 DEBUG [httpclient.wire.content] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) << "</error></detail></soap:Fault></soap:Body></soap:Envelope>"
    2013-08-28 15:47:34,805 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "SOAP.fa" in 140 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "CreateCRMResponse.xsl" in 0 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "Put crm_resp" in 0 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Finished subprocess "BueCommon/CommonCRM1.0/Processes/CallCRM2.wrf" in 172 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "CallCRM2.wrf" in 172 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Finished subprocess "BueEShop/CRM/GetContact1.0/Processes/Subprocesses/CallCRM.wrf" in 172 ms.
    2013-08-28 15:47:34,821 INFO [de.softproject.integration.engine.X4ModuleImpl] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Executed action "CallCRM.wrf" in 187 ms.
    2013-08-28 15:47:34,837 INFO [de.softproject.integration.engine.X4engine] (X4_Process_Sync_1:/BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf) Finished process "BueEShop/CRM/GetContact1.0/Processes/REST_MainProcess.wrf" in 219 ms.

    Can these help? Otherwise I will try to ask for an trace tool on the server.

    Thanks in advance.

    Mirko

  • Verified answer
    ScottDurow Profile Picture
    21 on at

    Hi,

    This isn't the HTTP trace because it's still got the '<?DynamicParameter' parts in.

    It looks like your problem could be that you still have a SoapAction of Retrieve, when it should be RetrieveMultiple.

    hth,

    Scott

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans