SOAP Parsing

180 views
Skip to first unread message

Joni Salmi

unread,
Aug 29, 2012, 2:21:34 AM8/29/12
to adwor...@googlegroups.com
This morning I started getting errors, last night everything worked fine. What could be the problem, 
I'm using MCC account and running example codes with a little modification.

[29-Aug-2012 09:07:03] PHP Fatal error:  SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201109_1/AdGroupCriterionService?wsdl' : Start tag expected, '<' not found
 in /Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 163
[29-Aug-2012 09:07:03] PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201109_1/AdGroupCriterionService?wsdl' : Start tag expected, '<' not found
 in /Google/Api/Ads/Common/Lib/AdsSoapClient.php:163
Stack trace:
#0 /Google/Api/Ads/Common/Lib/AdsSoapClient.php(163): SoapClient->SoapClient('https://adwords...', Array)
#1 /Google/Api/Ads/AdWords/Lib/AdWordsSoapClient.php(53): AdsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'AdGroupCriterio...', 'https://adwords...')
#2 /Google/Api/Ads/AdWords/v201109_1/AdGroupCriterionService.php(5801): AdWordsSoapClient->__construct('https://adwords...', Array, Object(AdWordsUser), 'AdGroupCriterio...', 'https://adwords...')
#3 /Google/Api/Ads/C in /Google/Api/Ads/Common/Lib/AdsSoapClient.php on line 163


Evgeniy Bogdanov

unread,
Aug 29, 2012, 4:58:38 AM8/29/12
to adwor...@googlegroups.com
Hi.
Try to fetch this WSDL without SOAP extension.
Based on your configuration where is 3 ways to do this. Simplest is:

$wsdl = file_get_contents(URL of WSDL goes here);

Echo $wsdl;

If file wrappers are disabled on your hosting you need to create cURL code to do the same.

So you'll get page which you're loading and this will help to understand why parsing WSDL is failed.

Regards,
Evgeniy.

Reply all
Reply to author
Forward
0 new messages