Hi Eric,

Thanks for the reply. I'm still unbale to get this working correctly
by changing the RequestHeader namespace.

My updated is:
<?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/
v201109'>
      <authToken>xxxx</authToken>
      <applicationToken>yyyy</applicationToken>
      <developerToken>zzzz</developerToken>
    </RequestHeader>
  </soap:Header>
  <soap:Body>
    <get xmlns='https://adwords.google.com/api/adwords/mcm/v201109'>
      <selector />
    </get>
  </soap:Body>
</soap:Envelope>

(Most of this is taken from the Make a raw API call NoClientLibrary
guide for .net (http://code.google.com/p/google-api-adwords-dotnet/
wiki/NoClientLibrary#Option_1:_Make_a_raw_API_call) so should be
correct?

The response is now:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 <soap:Body>
  <soap:Fault>
   <faultcode>soap:Server</faultcode>
   <faultstring>Unmarshalling Error: unexpected element (uri:"https://
adwords.google.com/api/adwords/cm/v201109", local:"RequestHeader").
Expected elements are <{https://adwords.google.com/api/adwords/mcm/
v201109}ApiExceptionFault>,<{https://adwords.google.com/api/adwords/
mcm/v201109}RequestHeader>,<{https://adwords.google.com/api/adwords/
mcm/v201109}ResponseHeader>,<{https://adwords.google.com/api/adwords/
mcm/v201109}get>,<{https://adwords.google.com/api/adwords/mcm/v201109}
getResponse> </faultstring>
  </soap:Fault>
 </soap:Body>
</soap:Envelope>

I'm sure there is something stupid I've missed here, but I'm not sure
what that is!

Thanks again.
Simon

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to