List Info

Thread: Re: Get report from url returned by getReportOutputUrl




Re: Get report from url returned by getReportOutputUrl
country flaguser name
United States
2007-08-31 04:17:24

Hi Everyone

I got the data returning in xml format, thanks to you all for your
help I'd still be here trying to figure it out without it. Here's what
I did if anyone else is having trouble with the same issue.

First I get the report id using addReportRequestForAccountID then I
get the url for the report using getReportOutputUrl. When calling
getReportOutputUrl I set zipped => 0, not zipped. Once I have this url
I use the following code to get the data.

$xml_data = file_get_contents($report_url);
$xml_data = iconv("ISO-8859-1", "UTF-8", $xml_data); //FOR XML
print_r($xml_data); //You need to view the source to view the xml

Again thanks to everyone for there help.

--- In yws-searchmarketing%40yahoogroups.com">yws-searchmarketingyahoogroups.com, Justin Meighan
<jusmeig...> wrote:
&gt;
>
> Hi there,
&gt;
> Your making things more difficult than they have to be. You dont
have to request the report in zip format, you can get it as raw XML
data. My client is written in VB, but im sure this will help.
&gt;
> Before you request the report you create a fileformat object:
>
> Dim fileoutputformat As New BasicReportService.FileOutputFormat
> fileoutputformat.fileOutputType = BasicReportService.FileOutputType.XML
&gt; fileoutputformat.fileOutputTypeSpecified = True (Here you are saying
no zip please just XML)
>; fileoutputformat.zippedSpecified = False
&gt;
> Now when you check ont he status of the report you pass it in as
follows:
>
> downloadurl = reportobject.getReportOutputUrl(report.reportID,
fileoutputformat) (Request your report in XML, no zip etc)
>;
> Hope that helps, I'll let you "php-ize" the above ;)
>
> Justin
&gt;
>
>
>
>
>
> To: yws-searchmarketing...: dermotdonegan...: Thu, 30 Aug 2007
13:55:02 +0000Subject: [yws-searchmarketing] Re: Get report from url
returned by getReportOutputUrl
>
>
>
>
> How do you read the file into a HTTP response stream? What do you
usein C#? If possible could you paste you code here and i will
tryconvert to PHP.ThaanksDermot
>
>
>
>
>
>
> __________________________________________________________
> Get the ultimate real-time chat experience - Windows Live Messenger!
> http://get.live.com/en-ie/messenger/overview
>;

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )