-
Notifications
You must be signed in to change notification settings - Fork 766
Uncaught SoapFault exception: [WSDL] SOAP-ERROR #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @angular013 Do you face with this issue for all services and reporting? Or does it happen intermittently? Best, |
@fiboknacky, i posted the above issue using the latest version installed using composer command. I only tried to run GetCampaigns.php for now and always getting the above error |
@fiboknacky , i installed using the command on composer page. instead of the steps written below , which said to clone the repo: will this be causing the issue ? maybe installing using "composer require googleads/googleads-php-lib" command did not install the latest version ? |
Hello @angular013, To install and run examples, an alternative way is to download a compressed tarball and follow the README.md file in the tarball. In the latest commit, if there are local WSDLs, they will be used instead of the live ones. By the way, if you can't even open https://adwords.google.com/api/adwords/cm/v201705/CampaignService?wsdl in your browser, this may be because of some network connection issues. Changing some environments (e.g., using other computers, OSes, XAMPP versions) may help us confirm this. Best, |
@fiboknacky , the resources directory seems to be present and the link ( https://adwords.google.com/api/adwords/cm/v201705/CampaignService?wsdl ) is giving this page in the browser , and you said "Could you confirm if the WSDLs in https://github.com/googleads/googleads-php-lib/tree/master/resources/wsdls are used in AdsSoapClient.php"....in which line of 'AdsSoapClient.php' should i look to check if the local WSDLs are being used or not ? |
I've added a line number in my previous reply already. Let me put it again here: https://github.com/googleads/googleads-php-lib/blob/master/src/Google/AdsApi/Common/AdsSoapClient.php?utf8=%E2%9C%93#L73 In particular, could you please if |
@fiboknacky , so i ran a test , and the local Wsdl path does not exist , i added a little code for testing in 'AdSoapClient.php' and this is the output it gave: |
I see. So it looks like the implementation isn't customized to Windows yet (there are some slashes mixed with backslashes). I'll work on this. Meanwhile, we can instead focus on why your environment cannot access the live WSDLs. |
@fiboknacky , so i tried to run; there are some SSL issues which i encountered on XAMPP before also when i used CURL , so to fix it , i used to switch off the CURL SSL check. how should i switch off the SSL check in your library for this live WSDL ? |
We don't recommend to switch off SSL check but if you really need it, please have a look at There are some troubleshooting methods that you may be interested in trying first, e.g., what we describe in README. More info about certificates when using XAMPP and Windows can be found here. Best, |
Looks like you have extra "?" at the end?
It seems your request has hit the servers! At least, the issue with the library seems to be resolved. Best, |
@fiboknacky , ok thanks i will look into that forum... just a quick question , there are alot of files when i installed through composer, around 9669 files , it caused my laptop to get stuck when i tried to extract So can you confirm that if that is the actual file numbers for this library + dependencies , or i did something wrong when installing ? |
That is correct. There are many stub files generated from WSDLs in the |
the library is working now . The USER_PERMISSION_DENIED error was coming, because i created the OAuth credentials for my production manager Adwords account , but provided the test client account's clientCustomerId in the configuration file ''adsapi_php.ini". So i created the credentials again for my 'test manager account' , and used those credentials and it worked. |
I have just installed using Composer , was able to get the refresh token successfully , then i tried to run GetCampaigns.php , and it gave this error. This error came both on command prompt as well as on browser. I am using Xampp on windows.
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://adwords.google.com/api/adwords/cm/v201705/CampaignService?wsdl' : failed to load external entity "https://adwords.google.com/api/adwords/cm/v201705/CampaignService?wsdl" in E:\xampp\htdocs\new_job\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php:76 Stack trace: #0 E:\xampp\htdocs\new_job\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php(76): SoapClient->SoapClient('https://adwords...', Array) #1 E:\xampp\htdocs\new_job\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\AdWords\v201705\cm\CampaignService.php(145): Google\AdsApi\Common\AdsSoapClient->__construct('https://adwords...', Array) #2 [internal function]: Google\AdsApi\AdWords\v201705\cm\CampaignService->__construct(Array) #3 E:\xampp\htdocs\new_job\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\Util\Reflection.php(39): ReflectionCl in E:\xampp\htdocs\new_job\google_adwords\vendor\googleads\googleads-php-lib\src\Google\AdsApi\Common\AdsSoapClient.php on line 76
The text was updated successfully, but these errors were encountered: