CustomerService. return Couldn't parse stream.

744 views
Skip to first unread message

Kenny Chang

unread,
Oct 4, 2016, 9:29:27 AM10/4/16
to AdWords API Forum

I got some problem using CustomerService.
When I send the following Post body, the server returned the error message.


Error msg:
"<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Couldn't parse stream.</faultstring></soap:Fault></soap:Body></soap:Envelope>" 



Post body:
<?xml version="1.0"?>
  <soapenv:Header>
    <ns1:RequestHeader xmlns="https://adwords.google.com/api/adwords/mcm/v201609" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0">
      <ns1:userAgent>name</ns1:userAgent>
      <ns1:developerToken>token</ns1:developerToken>
      <ns1:validateOnly>false</ns1:validateOnly>
      <ns1:partialFailure>false</ns1:partialFailure>
    </ns1:RequestHeader>
  </soapenv:Header>
  <soapenv:Body>
    </getCustomers>
  </soapenv:Body>
</soapenv:Envelope>


How could I do?
Is the xml format wrong?

Kenny

Vishal Vinayak (Adwords API Team)

unread,
Oct 4, 2016, 3:34:03 PM10/4/16
to AdWords API Forum
Hi Kenny,

This looks like a XML namespace issue in your SOAP request. Are you using one of our client libraries to perform this action? Client libraries tend to normalize namespaces in your request so that such issues are eliminated. 

Regards,
Vishal, AdWords API Team
Reply all
Reply to author
Forward
0 new messages