XML_STREAM_EXC faultstring

455 views
Skip to first unread message

rofelpcrush

unread,
Mar 9, 2010, 2:12:26 AM3/9/10
to AdWords API Forum
Hi,

I'm new with Google AdWords API integration and stucked with Classic
ASP. I was just wondering if someone can shed light to the
XML_STREAM_EXC faultstring. Since there's no client library for
Classic ASP, I had to resort to the old-fashioned way of sending XML
over HTTPS. Here's the request sent to

https://adwords.google.com/api/adwords/cm/v200909/CampaignService


<?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>
<RequestHeader xmlns='https://adwords.google.com/api/adwords/cm/
v200909'>
<applicationToken>xxxx</applicationToken>
<authToken>xxxx</authToken>
<clientEmail>em...@work.com</clientEmail>
<developerToken>999999</developerToken>
<userAgent>rofel</developerToken>
</RequestHeader>
</soap:Header>
<soap:Body>
<get xmlns='https://adwords.google.com/api/adwords/cm/v200909'>
<selector />
</get>
</soap:Body>
</soap:Envelope>

...and the response is HTTP Error Code 500

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/
envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</
faultcode><faultstring>XML_STREAM_EXC</faultstring></soap:Fault></
soap:Body></soap:Envelope>

This is just one of the first request that I'm trying to send to the
CampaignService and can't move past this problem. Please help.

Rofel

AdWords API Advisor

unread,
Mar 10, 2010, 10:25:28 AM3/10/10
to AdWords API Forum
Hi Rofel,

You are getting this error because your XML is invalid. You can check
your XML for validity using this online tool:

http://validator.w3.org/#validate_by_input

In this case, your <userAgent> header field is being clodes with a </
developerToken> tag, which is invalid.

Best,
- Eric Koleda, AdWords API Team

rofelpcrush

unread,
Mar 10, 2010, 7:43:01 PM3/10/10
to AdWords API Forum
Hi Eric,

Thanks for the response. I figured out the error right before I got
your response.

Is there something wrong with Sandbox today? I've been getting the
following errors all day (March 10, 2010):

FAILED_TO_AUTHENTICATE_GOOGLE_ACCOUNT
Unmarshalling Error: cvc-datatype-valid.1.2.1: '' is not a valid value
for 'integer'.

The code was working until early this morning at 10AM PST.

Thanks.

Rofel

On Mar 10, 7:25 am, AdWords API Advisor <adwordsapiadvi...@google.com>
wrote:

AdWords API Advisor

unread,
Mar 11, 2010, 10:48:45 AM3/11/10
to AdWords API Forum
Hi Rofel,

Please see the following thread for more information on the sandbox:

http://groups.google.com/group/adwords-api/browse_thread/thread/f5057acf438bc702

Best,
- Eric

Reply all
Reply to author
Forward
0 new messages