I'm trying to make a SOAP call using this WSDL file: https://adwords.google.com/api/adwords/v4/ReportService?WSDL
Through the WSDL, I'm trying to do a "getAllJobs" function calll, which takes no arguments. My code goes something like this...
...
private function Init():void
{
var qname:QName = new QName("https://adwords.google.com/api/adwords/v4");
header_email = new SOAPHeader(qname, {String:"email", String:"myemailhere"});
header_password = new SOAPHeader(qname, {String:"password", String:"mypasswordhere"});
header_useragent = new SOAPHeader(qname, {String:"useragent", String:"Test call from with AS3"});
header_token = new SOAPHeader(qname, {String:"token", String:"mytokenhere"});
api_call.addHeader(header_email);
api_call.addHeader(header_password);
api_call.addHeader(header_useragent);
api_call.addHeader(header_token);
} // AddHeaders
<mx:WebService id="api_call" wsdl="https://adwords.google.com/api/adwords/v4/ReportService?WSDL" service="ReportService" port="ReportService">
<mx:operation name="getAllJobs" result="ResultHandler(event)" fault="FaultHandler(event)">
<mx:request/>
</mx:operation>
</mx:WebService>
...
I can connect to the webservice, but only to get an error returned; "The request XML was invalid"
If anyone has any insight as to what I'm doing wrong, please let me know.
Thanks in advance!
Charles
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___

