OK, I see it. I looked at Google's client libraries' source code to see how to set the header properly. It would help if instead of hardcoding the request header type definition inside client libraries you'd actually defined it in WSDL. MSN did just that: <s:element name="ApiUserAuthHeader" type="tns:ApiUserAuthHeader"/> <s:complexType name="ApiUserAuthHeader"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="UserName" type="s:string"/ > <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/ > <s:element minOccurs="0" maxOccurs="1" name="UserAccessKey" type="s:string"/> </s:sequence> <s:anyAttribute/> </s:complexType>
You could do something like that too. Then the type would be generated for us by Axis. On Jan 29, 2:02 pm, AdWords API Advisor <adwordsapiadvi...@google.com> wrote: > Hi Maxim, > > You are correct, the applicationToken header is no longer required. > However, you still haven't built your header correctly. There should > be one RequestHeader element with an element inside of it for each > header value. Please look at my example again. > > Best, > - Eric > > On Jan 29, 4:23 pm, Maxim <mse...@gmail.com> wrote: > > > Still no luck... Same response. clientEmail header does not apply in > > this case. > > > POST /api/adwords/cm/v200909/CampaignService HTTP/1.0 > > Content-Type: text/xml; charset=utf-8 > > Accept: application/soap+xml, application/dime, multipart/related, > > text/* > > User-Agent: Axis/1.4 > > Host: adwords.google.com > > Cache-Control: no-cache > > Pragma: no-cache > > SOAPAction: "" > > Content-Length: 1389 > > > <?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:authToken > > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > > soapenv:mustUnderstand="0" xmlns:ns1="https://adwords.google.com/api/ > > adwords/cm/v200909">aaa</ns1:authToken><ns2:userAgent > > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > > soapenv:mustUnderstand="0" xmlns:ns2="https://adwords.google.com/api/ > > adwords/cm/v200909">bbb</ns2:userAgent><ns3:developerToken > > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > > soapenv:mustUnderstand="0" xmlns:ns3="https://adwords.google.com/api/ > > adwords/cm/v200909">ccc</ns3:developerToken><ns4:applicationToken > > soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" > > soapenv:mustUnderstand="0" xmlns:ns4="https://adwords.google.com/api/ > > adwords/cm/v200909">ddd</ns4:applicationToken></ > > soapenv:Header><soapenv:Body><get xmlns="https://adwords.google.com/ > > api/adwords/cm/v200909"><selector/></get></soapenv:Body></ > > soapenv:Envelope> -- 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-...@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.