Loading ...
Sorry, an error occurred while loading the content.

Re: [yws-searchmarketing] Perl SDK Yahoo::Marketing and BasicReportRequest problems

Expand Messages
  • Jennifer Copas
    I found it, in case anyone else gets the same error. It needs to be fileOutputType not FileOutputType (and I happen to be using - type( string ) in my code)
    Message 1 of 10 , Mar 28, 2007
    • 0 Attachment
      I found it, in case anyone else gets the same error.

      It needs to be fileOutputType not FileOutputType
      (and I happen to be using ->type( 'string' ) in my code)

      Yani


      Jennifer Copas <yani_copas@...> wrote:
      Hi Tim,

      I'm now at the point you were stuck at here:

      timcadell <tcadell@gmail. com>
      wrote:

      Now, unfortunately, I've got to the point where I'm requesting the
      report's URL to see if it's ready, and I'm getting another complaint
      saying "Invalid parameter value for file output type". I've tried
      setting it to 'TSV' and to 'XML'. Neither works. I'm using this code
      to generate the fileFormat portion of the request:


      I'm getting:
      Invalid parameter value for file output type.

      in response to:
          <FileOutputFormat soapenc:arrayType= "xsd:anyType[ 2]" xsi:type="tns: FileOutputFormat ">
              <FileOutputType xsi:type="tns: FileOutputType">XML</FileOutputType>
              <zipped xsi:type="xsd: boolean">true</zipped>
          </FileOutputFormat>

      or this:
      <FileOutputFormat soapenc:arrayType= "xsd:anyType[ 2]" xsi:type="tns: FileOutputFormat "><FileOutputType xsi:type="xsd: string">XML</FileOutputType>
      <zipped xsi:type="xsd: boolean">true</zipped></FileOutputFormat>
      The code I'm using looks like this:

      SOAP::Data->name( 'FileOutputFormat' )
                           ->type( 'tns:FileOutputForm at' )
                           ->value( [ SOAP::Data->name( 'FileOutputType' )
                                                ->type( 'string' )
                                                ->value( $args->{type} ),
                                      SOAP::Data->name( 'zipped' )
                                                ->type( 'boolean' )
                                                ->value( 'false' ),
                                      ]
                                  );




      Get your own web address.
      Have a HUGE year through Yahoo! Small Business.

    Your message has been successfully submitted and would be delivered to recipients shortly.