没有正确分离标头和文档XML错误

时间:2012-02-13 04:03:43

标签: xml dynamics-crm crm nusoap

我收到以下错误:

Error: wsdl error: Getting 
https://XXXXXXX.crm5.dynamics.com/MSCrmServices/2007/CrmServiceWsdl.aspx?uniquename=XXXXXXX
- HTTP ERROR: no proper separation of headers and document 
# # # # # # # Request # # # # # # # string(0) "" # # # # # # Response # # # # # # # string(0) ""

我正在使用NuSOAP执行以下请求:

<?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:Header><CrmAuthenticationToken xmlns="http://schemas.microsoft.com/crm/2007/WebServices"><AuthenticationType xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">2</AuthenticationType><OrganizationName xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">XXXXXXX</OrganizationName><CallerId xmlns="http://schemas.microsoft.com/crm/2007/CoreTypes">00000000-0000-0000-0000-000000000000</CallerId></CrmAuthenticationToken></soap:Header><soap:Body><Create xmlns="http://schemas.microsoft.com/crm/2007/WebServices"><entity xsi:type="contact"><address1_city>Fortitude Valley</address1_city><address1_line1>PO BOX 1042</address1_line1><address1_postalcode>4006</address1_postalcode><address1_stateorprovince>QLD</address1_stateorprovince><firstname>Dallas</firstname><lastname>Clark - 1329105592</lastname></entity></Create></soap:Body></soap:Envelope>

接头

array(3) {
  ["SOAPAction"]=>
  string(56) "http://schemas.microsoft.com/crm/2007/WebServices/Create"
  ["Content-Type"]=>
  string(26) "text/xml; charset="utf-8"""
  ["Content-Length"]=>
  int(1064)
}

0 个答案:

没有答案