Dynamics crm 2011 无法通过SOAP请求为数据类型“插入Dynamics CRM记录”;“金钱”;
我正在尝试向我的Microsoft Dynamics crm发送一个XML SOAP请求(如下所示)。然而,这是一个错误。我意识到,如果我逃避Dynamics crm 2011 无法通过SOAP请求为数据类型“插入Dynamics CRM记录”;“金钱”;,dynamics-crm-2011,dynamics-crm,dynamics-crm-4,Dynamics Crm 2011,Dynamics Crm,Dynamics Crm 4,我正在尝试向我的Microsoft Dynamics crm发送一个XML SOAP请求(如下所示)。然而,这是一个错误。我意识到,如果我逃避 新赠款项目总成本 1234 需要新的\u赠款项目资金 123 属于数据类型Money。 完整的请求如下所示 <s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/0
新赠款项目总成本
1234
需要新的\u赠款项目资金
123
属于数据类型Money。完整的请求如下所示
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<a:Action s:mustUnderstand="1">
http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Create</a:Action>
<a:MessageID>
urn:uuid:6511f419-3d6d-446f-852e-ffd1169d1d14</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">
uIDPozJEz+P/wJdOhoN2XNauvYcAAAAAK0Y6fOjvMEqbgs9ivCmFPaZlxcAnCJ1GiX+Rpi09nSYACQAA</VsDebuggerCausalityData>
<a:To s:mustUnderstand="1">
https://scy.crm4.dynamics.com/XRMServices/2011/Organization.svc</a:To>
<o:Security s:mustUnderstand="1"
xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2013-09-19T05:27:01.35Z</u:Created>
<u:Expires>2013-09-19T05:32:01.35Z</u:Expires>
</u:Timestamp>
<EncryptedData Id="Assertion0"
Type="http://www.w3.org/2001/04/xmlenc#Element"
xmlns="http://www.w3.org/2001/04/xmlenc#">
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc">
</EncryptionMethod>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<EncryptedKey>
<EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
</EncryptionMethod>
<ds:KeyInfo Id="keyinfo">
<wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:KeyIdentifier 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#X509SubjectKeyIdentifier">
</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
<CipherData>
<CipherValue>
</CipherValue>
</CipherData>
</EncryptedKey>
</ds:KeyInfo>
<CipherData>
<CipherValue>
</CipherValue>
</CipherData>
</EncryptedData>
</o:Security>
</s:Header>
<s:Body>
<Create xmlns='http://schemas.microsoft.com/xrm/2011/Contracts/Services'>
<entity xmlns:b='http://schemas.microsoft.com/xrm/2011/Contracts' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
<b:Attributes xmlns:c='http://schemas.datacontract.org/2004/07/System.Collections.Generic'><b:KeyValuePairOfstringanyType>
<c:key>scy_name</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Business Grant Programme Application</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_fullname</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Aboo Tafadar4</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_jobtitle</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Iquara</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_accountname</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Iquara</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_emailaddress</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>soyeed2004@gmail.com</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_contactphone</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>913642225808</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_addressline1</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Bivar Road</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_addressline2</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>aaaa</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_addressline3</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Iquara Ltd, Catalyst</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_city</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>York</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_postcode</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>yo103jy</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_registeredaddress1</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Iquara Ltd, Catalyst</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_registeredaddress2</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>University of York</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_registeredaddress3</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>Iquara Ltd, Catalyst</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_registeredcity</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>York</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_registeredpostcode</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>yo103jy</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_websiteurl</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>iquara</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_companynumber</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>1787686</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_yearstartedtrading</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>1980</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_description</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>hghghjg</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_grantprojectdescription</c:key>
<c:value i:type='d:string' xmlns:d='http://www.w3.org/2001/XMLSchema'>khkkjh</c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_grantprojecttotalcost</c:key>
<c:value i:type='a:Money'><b:Value>1234.00</b:Value></c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_grantprojectfundingrequired</c:key>
<c:value i:type='a:Money'><b:Value>123.00</b:Value></c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>scy_leadsource</c:key>
<c:value i:type='b:OptionSetValue'><b:Value>798110007</b:Value></c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_sendmarketinginfo</c:key>
<c:value i:type='b:OptionSetValue'><b:Value>100000001</b:Value></c:value>
</b:KeyValuePairOfstringanyType><b:KeyValuePairOfstringanyType>
<c:key>new_grantprojecteligibility</c:key>
<c:value i:type='b:OptionSetValue'><b:Value>100000000</b:Value></c:value>
</b:KeyValuePairOfstringanyType></b:Attributes>
<b:EntityState i:nil='true'/>
<b:FormattedValues xmlns:c='http://schemas.datacontract.org/2004/07/System.Collections.Generic'/>
<b:Id>00000000-0000-0000-0000-000000000000</b:Id>
<b:LogicalName>scy_webformrecord</b:LogicalName>
<b:RelatedEntities xmlns:c='http://schemas.datacontract.org/2004/07/System.Collections.Generic'/>
</entity>
</Create>
</s:Body>
</s:Envelope>
http://schemas.microsoft.com/xrm/2011/Contracts/Services/IOrganizationService/Create
urn:uuid:6511f419-3d6d-446f-852e-FFD1169D14
http://www.w3.org/2005/08/addressing/anonymous
uIDPozJEz+P/WJDOHON2xNAUVYCAAAAK0Y6FOJVMEBGS9IVCMFPAZLXLXCANCJ1GIX+Rpi09nSYACQAA
https://scy.crm4.dynamics.com/XRMServices/2011/Organization.svc
2013-09-19T05:27:01.35Z
2013-09-19T05:32:01.35Z
scy_名称
商业资助计划申请
新全名
Aboo Tafadar4
新职位
伊瓜拉
scy_帐户名
伊瓜拉
scy_电子邮件地址
soyeed2004@gmail.com
scy_联络电话
913642225808
scy_地址行1
比瓦尔路
scy_地址行2
aaaa
scy_地址行3
伊卡拉催化剂有限公司
锡尤市
约克
scy_邮政编码
yo103jy
新注册数据1
伊卡拉催化剂有限公司
新注册数据表2
约克大学
新注册数据表3
伊卡拉催化剂有限公司
新注册城市
约克
新注册的邮政编码
yo103jy
scy_网站URL
伊瓜拉
scy_公司编号
1787686
新一年开始交易
1980
scy_描述
HGHJG
新项目说明
khkkjh
新赠款项目总成本
1234
需要新的\u赠款项目资金
123
scy_铅源
798110007
新的市场信息
100000001
新_赠款项目资格
100000000
00000000-0000-0000-0000-000000000000
scy_webformrecord
查看您的查询,您的命名空间似乎是错误的
试着把它们改成“b:钱”而不是“a:钱”
新赠款项目总成本
1234
需要新的\u赠款项目资金
123
您是否能够将错误添加到此问题??您使用过Dynamics CRM SOAP记录器吗?乍一看,您的SOAP调用看起来是正确的。如何使用dynamics SOAP Logger下载“dynamics CRM SDK”,并在“samplecode\cs\client\soaplogger\soaplogger”文件夹中找到SOAP Logger应用程序。然后,您应该能够使用C#代码重新创建上述问题,并且您将能够在“output.txt”文件中获得工作的SOAP调用。非常感谢。。这是我的整数位(整数)`scy_numberofemployees 23`对于整数,它应该是int而不是整数。例如:
<b:KeyValuePairOfstringanyType>
<c:key>new_grantprojecttotalcost</c:key>
<c:value i:type="a:Money">
<b:Value>1234.00</b:Value>
</c:value>
</b:KeyValuePairOfstringanyType>
<b:KeyValuePairOfstringanyType>
<c:key>new_grantprojectfundingrequired</c:key>
<c:value i:type="a:Money">
<b:Value>123.00</b:Value>
</c:value>
</b:KeyValuePairOfstringanyType>