Hi Diwakar, The SOAP 1.1 specification lists SOAPAction as a required field: http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383528. The AdWords API servers don't validate the value of the header, but it must have a value. The common convention is to set the value to a pair of double quotes:
SOAPAction: "" Your code is currently setting the value to an empty string, which will result in: SOAPAction: As a general aside, rather than handling SOAP messages directly I would recommend using a SOAP toolkit, like that provided by Visual Studio. We also provide a .NET client library that has many other features built in: http://code.google.com/p/google-api-adwords-dotnet/. Best, - Eric Koleda, AdWords API Team On Sep 17, 7:05 pm, Diwakar <diwakar.raj...@gmail.com> wrote: > I just started working on AdWords API. > > I am using the following SOAP request to retrieve all campaigns in > sand box environment. > > <?xml version="1.0"?> > <env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <env:Header> > <applicationToken>XXXXXXXXXXXXXXXX</applicationToken> > <password>XXXXXXXXX</password> > <email>xxxxxxxxxx...@gmail.com</email> > <clientEmail>client_1+xxxx...@gmail.com</clientEmail> > <useragent>XXXXX</useragent> > <developerToken>xxxxxx...@gmail.com++usd</developerToken> > </env:Header> > <env:Body> > <getAllAdWordsCampaigns> > <dummy>0</dummy> > </getAllAdWordsCampaigns> > </env:Body> > </env:Envelope> > > The following are the headers that are being set before sending the > request in Visual Basic using XMLHttp object: > > objHTTP.Open "POST", "https://sandbox.google.com/api/adwords/v13/ > CampaignService", False > > objHTTP.setRequestHeader "Content-Type", "text/xml" > objHTTP.setRequestHeader "Connection", "open" > objHTTP.setRequestHeader "SOAPAction", "" > > objHTTP.send soap_request > > I am getting the following response: > > <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:Body> > <soapenv:Fault> > <faultcode xmlns:ns1="http://xml.apache.org/ > axis/">ns1:Client.NoSOAPAction</faultcode> > <faultstring>no SOAPAction header!</faultstring> > <detail/> > </soapenv:Fault> > </soapenv:Body> > </soapenv:Envelope> > > I did not find much help on groups regarding this error. I would > appreciate your help in figuring out what the problem is? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---