Typically, to use the AdWords API Web Services, you would download a toolkit that knows how to
interpret WSDL files and how to encode and decode XML request and response messages. When
an AdWords API Web Service receives a request, it sends back the response as an XML message.
The web service toolkits know how to parse the response and return a data structure or
object back to the caller, as appropriate for the language.
The exact toolkit you would use depends on the language you are using. Some toolkits do more for
you or work better than others. Some take care of all the XML for you; others require you to write
some XML yourself. The commonly used toolkits include:
Note: The AdWords API uses document/literal style SOAP, not rpc/encoded style. Some toolkits work
differently for document-style web services than for rpc-style. If you use a SOAP toolkit, you
should rarely have to write XML code to use the AdWords API Web Services, since the toolkits handle
the XML generation. Some toolkits, however, may require you to hand-code some of the XML yourself.
For example, nusoap.php, requires you to write the XML code for input parameters. It can sometimes
be helpful to capture the XML request and response messages for debugging purposes. See the FAQ
on the AdWords API Developer web site for details of how to capture XML for a variety of toollkits.
To learn more about SOAP, see the SOAP Tutorial at W3Schools: http://www.w3schools.com/soap/default.asp
|