none
CRM 2011 SOAP RRS feed

  • 问题

  • 大家好!我在CRM2011里已经截获啦WCF的SOAP消息,可用javascript发送时就报无法验证谁有办法解决,截获消息如下:

    var xml = "" + 
    "<s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\">" + 
    " <s:Header>" + 
    "  <a:Action s:mustUnderstand=\"1\">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/RetrieveMultiple</a:Action>" + 
    "  <a:MessageID>urn:uuid:109c2c71-d5f7-46ad-beb8-c146161f2afb</a:MessageID>" + 
    "  <a:ReplyTo>" + 
    "   <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>" + 
    "  </a:ReplyTo>" + 
    "  <VsDebuggerCausalityData xmlns=\"http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink\">uIDPo/sIKerHhUVNombdUYBfvUYAAAAAMz4M4mzU8UevD1lGdGxciw4T9wf1v6dDpdcuRaYkrpsACQAA</VsDebuggerCausalityData>" + 
    " </s:Header>" + 
    " <s:Body>" + 
    "  <RetrieveMultiple xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\">" + 
    "   <query xmlns:d4p1=\"http://schemas.microsoft.com/xrm/2011/Contracts\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" i:type=\"d4p1:QueryByAttribute\">" + 
    "    <d4p1:Attributes xmlns:d5p1=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\">" + 
    "     <d5p1:string>name</d5p1:string>" + 
    "    </d4p1:Attributes>" + 
    "    <d4p1:ColumnSet i:nil=\"true\" />" + 
    "    <d4p1:EntityName>account</d4p1:EntityName>" + 
    "    <d4p1:Orders i:nil=\"true\" />" + 
    "    <d4p1:PageInfo i:nil=\"true\" />" + 
    "    <d4p1:Values xmlns:d5p1=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\">" + 
    "     <d5p1:anyType xmlns:d6p1=\"http://www.w3.org/2001/XMLSchema\" i:type=\"d6p1:string\">iws</d5p1:anyType>" + 
    "    </d4p1:Values>" + 
    "   </query>" + 
    "  </RetrieveMultiple>" + 
    " </s:Body>" + 
    "</s:Envelope>" + 
    "";
    
    2011年1月11日 9:32

全部回复

  • 大家好!我在CRM2011里已经截获啦WCF的SOAP消息,可用javascript发送时就报无法验证谁有办法解决,截获消息如下:

    var xml = "" + 
    "<s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s=\"http://www.w3.org/2003/05/soap-envelope\">" + 
    " <s:Header>" + 
    "  <a:Action s:mustUnderstand=\"1\">http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/RetrieveMultiple</a:Action>" + 
    "  <a:MessageID>urn:uuid:109c2c71-d5f7-46ad-beb8-c146161f2afb</a:MessageID>" + 
    "  <a:ReplyTo>" + 
    "   <a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>" + 
    "  </a:ReplyTo>" + 
    "  <VsDebuggerCausalityData xmlns=\"http://schemas.microsoft.com/vstudio/diagnostics/servicemodelsink\">uIDPo/sIKerHhUVNombdUYBfvUYAAAAAMz4M4mzU8UevD1lGdGxciw4T9wf1v6dDpdcuRaYkrpsACQAA</VsDebuggerCausalityData>" + 
    " </s:Header>" + 
    " <s:Body>" + 
    "  <RetrieveMultiple xmlns=\"http://schemas.microsoft.com/xrm/2011/Contracts/Services\">" + 
    "   <query xmlns:d4p1=\"http://schemas.microsoft.com/xrm/2011/Contracts\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\" i:type=\"d4p1:QueryByAttribute\">" + 
    "    <d4p1:Attributes xmlns:d5p1=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\">" + 
    "     <d5p1:string>name</d5p1:string>" + 
    "    </d4p1:Attributes>" + 
    "    <d4p1:ColumnSet i:nil=\"true\" />" + 
    "    <d4p1:EntityName>account</d4p1:EntityName>" + 
    "    <d4p1:Orders i:nil=\"true\" />" + 
    "    <d4p1:PageInfo i:nil=\"true\" />" + 
    "    <d4p1:Values xmlns:d5p1=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\">" + 
    "     <d5p1:anyType xmlns:d6p1=\"http://www.w3.org/2001/XMLSchema\" i:type=\"d6p1:string\">iws</d5p1:anyType>" + 
    "    </d4p1:Values>" + 
    "   </query>" + 
    "  </RetrieveMultiple>" + 
    " </s:Body>" + 
    "</s:Envelope>" + 
    "";
    

    2012年10月5日 2:00
  • js调用wcf不用这么麻烦,用REST Endpoint 吧

    可以参考:

    Sample: Create, Retrieve, Update and Delete Using the REST Endpoint with JavaScript


    微软CRM

    2012年10月16日 7:31
    版主