simbor / google-api-adwords-php

Automatically exported from code.google.com/p/google-api-adwords-php
Apache License 2.0
0 stars 0 forks source link

When instantiated objects are declared in classmap, Soap client stops or a DOMException is raised #24

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

When instantiated objects exist and are present in the classmap array,
there is a bug when AdsSoapClient->__soapCall() is called (soapCall at line
177, in AdsSoapClient.php). The error is not the same when I use parameters
in the soap request (like in the AddCampaign.php example) than when I just
ask informations from API (like in the GetAllCampaigns.php example).

If I just ask some informations, when an object is present in the answer
and is declared in the classmap array (in ******Service.php), the script is
just stopping. No bug, no warning, nothing. If I comment the classmap
declaration for the object in the answer, the script continues. (but, for
sure, the needed object is not generated...).

If I send parameters during the request, a DOMException is raised : 

DOMException Object ( [message:protected] => DOMDocument::loadXML()
[function.DOMDocument-loadXML]: Failed to parse QName 'ns1:' in Entity, line: 2
Common/Util/XmlUtils.php : line 81 (function: HandleXmlError)
Common/Util/XmlUtils.php : line 44 (function : loadXML)
Common/Util/SoapRequestXmlFixer.php : line 71 (function : GetDomFromXml)
Common/Lib/AdsSoapClient.php : line 374 (function : FixXml)
Common/Lib/AdsSoapClient.php : line 181 (function : PrepareRequest)
Common/Lib/AdsSoapClient.php : line 212 (function : __soapCall)
AdWords/v200909/cm/CampaignService.php : line 4327 (function : __soapCall)
examples/v200909/AddCampaign.php : line 75 (function : mutate)

My PHP version is 5.2.1

Original issue reported on code.google.com by imageads...@gmail.com on 21 Apr 2010 at 10:37

GoogleCodeExporter commented 8 years ago
Is the SOAP XML request or response logged in this case?  If so, can you post 
those?

Original comment by api.ekol...@gmail.com on 14 May 2010 at 7:43

GoogleCodeExporter commented 8 years ago

Original comment by api.ekol...@gmail.com on 14 May 2010 at 7:43

GoogleCodeExporter commented 8 years ago
Closing since there have been no updated.

Original comment by api.ekol...@gmail.com on 15 Sep 2010 at 9:23