Subject: | BasicReportRequest reportType is undefined |
Date: | Thu, 8 Mar 2007 14:46:24 -0800 |
To: | <bug-Yahoo-Marketing [...] rt.cpan.org> |
From: | "Tim Cadell" <tcadell [...] clicktracks.com> |
Yahoo-Marketing-0.09
Perl v5.8.7
Linux pilsner 2.6.12-9-386 #1 Mon Oct 10 13:14:36 BST 2005 i686 GNU/Linux
SOAP::Lite version 0.67
I'm using the latest version of the Perl Yahoo::Marketing
libraries available on CPAN (0.09) and I'm having no real problems with
anything except the BasicReportRequest. I'm calling it with startDate,
endDate, reportName and reportType set.
my($self, %data) = @_;
my $request = Yahoo::Marketing::BasicReportRequest->new;
foreach my $key (keys %data) {
$request->$key($data{$key});
}
my $requestId = $self->processFunction('addReportRequestForAccountID',
accountID => $self->{accountId}, reportRequest => $request);
Here is the actual XML (use SOAP::Lite +trace) request:
<?xml version="1.0" encoding="UTF-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ysm="https://global.marketing.ews.yahooapis.com/services"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Se
curity
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext"><wsse:UsernameToke
n soapenc:arrayType="xsd:string[2]" xsi:type="soapenc:Array"><wsse:Username
xsi:type="xsd:string">clicktrack</wsse:Username><wsse:Password
xsi:type="xsd:string">PASSWORD</wsse:Password></wsse:UsernameToken></wsse:Se
Show quoted text
curity><license xmlns="https://global.marketing.ews.yahooapis.com/services"
xsi:type="xsd:string">ProductionKey4994.</license><masterAccountID
xmlns="https://global.marketing.ews.yahooapis.com/services"
xsi:type="xsd:string">184904</masterAccountID><onBehalfOfUsername
xmlns="https://global.marketing.ews.yahooapis.com/services"
xsi:type="xsd:string">clicktrack</onBehalfOfUsername><onBehalfOfPassword
xmlns="https://global.marketing.ews.yahooapis.com/services"
xsi:type="xsd:string">PASSWORD</onBehalfOfPassword></soap:Header><soap:Body>
<addReportRequestForAccountID
xmlns="https://global.marketing.ews.yahooapis.com/services"><accountID
xsi:type="xsd:string">6776483620</accountID><reportRequest
xsi:type="tns:BasicReportRequest"><endDate
xsi:type="xsd:dateTime">2007-03-06T20:17:31Z</endDate><reportName
xsi:type="xsd:string">Studebaker Keyword Report</reportName><reportType
xsi:type="tns:BasicReportType">KeywordSummary</reportType><startDate
xsi:type="xsd:dateTime">2007-03-06T20:17:31Z</startDate></reportRequest></ad
Show quoted textdReportRequestForAccountID></soap:Body></soap:Envelope>
You'll note that the reportType is defined, but that the namespace isn't
defined anywhere else (tns:BasicReportType). The fault returned is that
reportType is required and undefined (error E1011).
Tim Cadell
ClickTracks Analytics, Inc.
Senior Unix Engineer
(831) 621-6384
Message body is not shown because it is too large.