Error reading XMLStreamReader

6,567 views
Skip to first unread message

David Spencer

unread,
Nov 28, 2013, 12:31:58 PM11/28/13
to google-doubleclick...@googlegroups.com
Hi there,

I'm getting a XMLStreamReader error, and i've tried
changing the SOAPAction='' and as below, any idea why i'm getting this error?


Accept: */* Accept-Encoding: gzip, deflate Connection: Keep-Alive Content-Type: text/xml SOAPAction: getAdUnitsByStatement Content-Length: 1357 Accept-Language: en-us

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ns1:RequestHeader
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" xsi:type="ns1:SoapRequestHeader"
xmlns:ns1="https://www.google.com/apis/ads/publisher/v201311"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<ns1:authentication xsi:type="ns1:ClientLogin" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<ns1:token>xxxxxxxxxxxxxxxx</ns1:token>
</ns1:authentication>
<ns1:networkCode xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
7674
</ns1:networkCode>
<ns1:applicationName xsi:type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
DSMDFPApp
</ns1:applicationName>
</ns1:RequestHeader>
</soapenv:Header>
<soapenv:Body>
<ns1:getAdUnitsByStatement>
<ns1:filterStatement>
<ns1:query>WHERE status='ACTIVE' LIMIT 3</ns1:query>
</ns1:filterStatement>
</ns1:getAdUnitsByStatement>
</soapenv:Body>
</soapenv:Envelope>

David Spencer

unread,
Nov 28, 2013, 12:59:09 PM11/28/13
to google-doubleclick...@googlegroups.com
<soap:Envelope 
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>Error reading XMLStreamReader.</faultstring>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

Vincent Tsao (DFP API Team)

unread,
Dec 2, 2013, 2:51:32 PM12/2/13
to google-doubleclick...@googlegroups.com
Hi David:

You're generating this SOAP yourself right and not using one of our client libraries? What language are you using to send this SOAP request? I think you're not sending the request properly. The request itself looks fine at first glance. Can you look up some examples on how to send SOAP requests in the language you're using as reference?

Thanks,
Vincent Tsao, DFP API Team
Reply all
Reply to author
Forward
0 new messages