madhabkirank / google-api-adwords-php

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

Cannot resolve 'ns1:CampaignSelector' as a QName: the prefix 'ns1' is not declared. #28

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of the library are you using?
we are using 2.1.0(aw_api_php_lib_2.1.0.tar.gz       AdWords API PHP Client
Library 2.1.0    Featured        Apr 26  was used)

Which version of PHP are you using?
5.2.5

What steps will reproduce the problem?
1)install version.
2)set details for sandbox (DEFAULT_SERVER =
"https://adwords-sandbox.google.com" in setting.ini).
and
email = "*********"
password = "*********"
userAgent = "*********"
applicationToken = "ignored"
developerToken = "*********++USD"

; Uncomment to make requests against a client account.
clientId = "client_1+*********"

in auth.ini 

What is the expected output? What do you see instead?

This is what we get.

SoapFault Object ( [message:protected] => Unmarshalling Error:
UndeclaredPrefix: Cannot resolve 'ns1:CampaignSelector' as a QName: the
prefix 'ns1' is not declared. [string:private] => [code:protected] => 0
[file:protected] =>
/home/content/s/a/t/satishmantri/html/client/awapiphplib2_1_0/src/Google/Api/Ads
/Common/Lib/AdsSoapClient.php
[line:protected] => 179 [trace:private] => Array ( [0] => Array ( [file] =>
/home/content/s/a/t/satishmantri/html/client/awapiphplib2_1_0/src/Google/Api/Ads
/Common/Lib/AdsSoapClient.php
[line] => 179 [function] => __soapCall [class] => SoapClient [type] => -> 
[args] => Array ( [0] => get [1] => Array ( [0] => CampaignServiceGet
Object ( [selector] => CampaignSelector Object ( [ids] =>
[campaignStatuses] => [statsSelector] => [paging] => ) ) ) [2] => [3] =>
Array ( [0] => SoapHeader Object ( [namespace] =>
https://adwords.google.com/api/adwords/cm/v200909 [name] => RequestHeader
[data] => SoapVar Object ( [enc_type] => 301 [enc_value] =>
SoapRequestHeader Object ( [applicationToken] => ignoreD [authToken] =>
DQAAAJwAAADLQQnmhkl9ZCHC6OGN1gZdPy4Bq6nDRV3PUFcHc_YmlR_Dfs9l2sefIeDLiwVaAeFN4KUX
SEDc1DUlyxjOM1WEuTwjPB317_kBvunmmaUw5vnGGBL0fCf8_z1SEA0IcxRDdQyK9UDPC43mae6HMryn
_TGLYph1ucUpcf75BV3MlWbEUCCjG5U8CQw6xZr2uhy6_X4e4Z6tYJnl2E_zcY26
[clientCustomerId] => [clientEmail] => client_1+oscprofessionals@gmail.com
[developerToken] => oscprofessionals@gmail.com++USD [userAgent] =>
AwApi-PHP-2.1.0-ensys [validateOnly] => ) [enc_stype] => RequestHeader
[enc_ns] => https://adwords.google.com/api/adwords/cm/v200909 )
[mustUnderstand] => ) ) [4] => Array ( ) ) ) [1] => Array ( [file] =>
/home/content/s/a/t/satishmantri/html/client/awapiphplib2_1_0/src/Google/Api/Ads
/AdWords/v200909/cm/CampaignService.php
[line] => 4303 [function] => __soapCall [class] => AdsSoapClient [type] =>
->  [args] => Array ( [0] => get [1] => Array ( [0] => CampaignServiceGet
Object ( [selector] => CampaignSelector Object ( [ids] =>
[campaignStatuses] => [statsSelector] => [paging] => ) ) ) ) ) [2] => Array
( [file] =>
/home/content/s/a/t/satishmantri/html/client/awapiphplib2_1_0/examples/v200909/G
etAllCampaigns.php
[line] => 56 [function] => get [class] => CampaignService [type] => -> 
[args] => Array ( [0] => CampaignSelector Object ( [ids] =>
[campaignStatuses] => [statsSelector] => [paging] => ) ) ) ) [faultstring]
=> Unmarshalling Error: UndeclaredPrefix: Cannot resolve
'ns1:CampaignSelector' as a QName: the prefix 'ns1' is not declared.
[faultcode] => soap:Server ) 
is what we see when we examples/v200909/GetAllCampaigns.php or any other
example files(excluding Getrelatedkeywords.php,GetrelatedPlacements.php,)

Please provide any additional information below.

We are using Sandbox for testing.
SOAP support exists.

Original issue reported on code.google.com by mantri.s...@gmail.com on 6 May 2010 at 6:58

GoogleCodeExporter commented 8 years ago
Forgot to define short description of the Bug.

The description is :
Cannot resolve 'ns1:CampaignSelector' as a QName: the
prefix 'ns1' is not declared. 

A request to please edit the short description in List.

Original comment by mantri.s...@gmail.com on 6 May 2010 at 6:59

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Do you have the SOAP XML request and response that was generated for this call?

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

GoogleCodeExporter commented 8 years ago

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

GoogleCodeExporter commented 8 years ago
Please find the log file attached.It has the request and response log as 
requested.

Original comment by oscprofe...@gmail.com on 15 May 2010 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago
It looks like SoapRequestXmlFixer->RedeclareXsiTypeNamespaceDefinition() isn't 
being 
called in your environment, even though it's working fine in mine.  Can you 
post the 
output of running php -i?  You may want to scan through it to make sure it 
doesn't 
contain any sensitive data.

Original comment by api.ekol...@gmail.com on 17 May 2010 at 7:41

GoogleCodeExporter commented 8 years ago
Closing due to lack of response.

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