Re: Accessing getMasterAccountLocation Method -- SOLUTION
- That was it! Man, that was a frustrating ordeal. : )
Here is some more info for those who may be experiencing a similar
problem. We have developed a custom application using PHP 5.2.5 with
NuSOAP 0.7.3. By default, NuSOAP uses ISO-8859-1 as the default
encoding when sending out SOAP requests. You can easily change the
default encoding for outgoing SOAP calls though. Once you have a
created your soapclient instance, simply change the soap_defencoding
property to utf-8.
As an example:
$oSoapClient = new soapclient(mixed $endpoint, [bool $wsdl = false],
[string $proxyhost = false], [string $proxyport = false], [string
$proxyusername = false], [string $proxypassword = false], integer
$timeout, [integer $response_timeout = 30], int $portName);
// The following line will actually change the default character encoding
$oSoapClient->soap_defencoding = 'utf-8';
And that's it!
-- In email@example.com, "Sudhir Reddy"
> We are looking in to this issue.
> Meanwhile, as a workaround can you try with a different encoding, if
> possible ?
> --- In firstname.lastname@example.org, "dshevnock" <dshevnock@>
> > --- In email@example.com, sanjay chittar
> > chittar_sanjay@ wrote:
> > >
> > > do you have the response headers handy. may be I can take a look at
> > it and see if I can help you there.
> > >
> > >
> > I might be missing something, but when I try to print out the response
> > headers from the production API, the response headers are empty.
> > However, when I run this same exact code through the sandbox (with the
> > right paths and credentials ofcourse), I get the following response
> > headers:
> > Headers:
> > <yns:remainingQuota
> > xmlns:yns="http://marketing.ews.yahooapis.com/V4">Marketing</yns:comm
> > andGroup>
> > <yns:timeTakenMillis
> > xmlns:yns="http://marketing.ews.yahooapis.com/V4">Wed May 21 13:55:02
> > PDT 200
> > 8</yns:stime>
> > The reason I am posting the sandbox response headers are to make sure
> > I am looking for the right response headers that you are asking for.