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

sending request with parameters

Expand Messages
  • tommyfliu_ocho
    Hello everyone thanks for a great tool I am having problems passing the parameter of type ArrayOfArrayOfArrayOf_xsd_string calling the method
    Message 1 of 1 , May 11 11:51 AM
    • 0 Attachment
      Hello everyone
      thanks for a great tool

      I am having problems passing the parameter of type
      ArrayOfArrayOfArrayOf_xsd_string calling the method
      processMutationLists from a RHAL 4 with soaplite 0.67.

      our webservices wsdl
      http://db-webservices.stanford.edu:5440/axis/services/StanfordAlgorithm?wsdl

      #####################################################################
      my code looks like this
      my $mutListPR_soapObj = SOAP::Data->name('mutListPR'=>
      \SOAP::Data->value(
      SOAP::Data->name("mut"=>"L10I")->type("string"),
      SOAP::Data->name("mut"=>"L19I")->type("string"),
      SOAP::Data->name("mut"=>"I54V")->type("string"),
      )
      )->type('array');

      my $mutListRT_soapObj = SOAP::Data->name('mutListRT'=>
      \SOAP::Data->value(
      SOAP::Data->name("mut"=>"L210W")->type("string"),
      SOAP::Data->name("mut"=>"T286A")->type("string"),
      )
      )->type('array');

      my $seq_soapObj2 = SOAP::Data->name('seq'=>
      \SOAP::Data->value(
      $mutListPR_soapObj,
      $mutListRT_soapObj
      )
      )->type('array');

      my $seqList_soapObj2 = SOAP::Data->name('in2'=>
      \SOAP::Data->value(
      $seq_soapObj2
      )
      )->type('array');

      my $genes_xml = $sierra->processMutationLists($key, DETAIL_REPORT,
      $seqList_soapObj2);

      #####################################################################
      but it produces an empty parameters in the soap message
      <soap:Body><namesp1:processMutationLists><in0
      xsi:type="xsd:string">V0O7-R72F-Z0SY-YAKZ</in0><in1
      xsi:type="xsd:int">1</in1><in2 xsi:nil="true"
      xsi:type="impl:ArrayOfArrayOfArrayOf_xsd_string"
      /></namesp1:processMutationLists></soap:Body>

      #####################################################################
      FYI previously I had a similar problem with ArrayOf_xsd_string but
      fixed by adding the following code
      taken from http://www.genome.jp/kegg/docs/keggapi_manual.html#
      sub SOAP::Serializer::as_ArrayOf_xsd_string {
      my ($self, $value, $name, $type, $attr) = @_;
      return [$name, {'xsi:type' => 'array', %$attr}, $value];
      }


      any help will be greatly appreciated
      Tommy Liu
      Developer / Researcher
    Your message has been successfully submitted and would be delivered to recipients shortly.