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

Re: [soaplite] String value expected instead of ARRAY reference for unbounded element

Expand Messages
  • Sebastian Jaenicke
    On Tue, Oct 10, 2006 at 04:25:15AM +0200, Sebastian Jaenicke wrote: [..] ... Somehow the message doesn t seem to match what the WSDL file says:
    Message 1 of 6 , Oct 9, 2006
    • 0 Attachment
      On Tue, Oct 10, 2006 at 04:25:15AM +0200, Sebastian Jaenicke wrote:
      [..]
      > <tns:submit>
      > <Jobs xsi:type="tns:JobCluster">1</Jobs>
      > <enc:Array enc:arrayType="xsd:string[3]" xsi:type="enc:Array">
      > <item xsi:type="xsd:string">sequence_data_goes_here1</item>
      > <item xsi:type="xsd:string">sequence_data_goes_here2</item>
      > <item xsi:type="xsd:string">sequence_data_goes_here3</item>
      > </enc:Array>
      > </tns:submit>

      Somehow the message doesn't seem to match what the WSDL file says:

      <operation name="submit">
      <input message="tns:SubmitRequest"/>
      <output message="tns:SubmitResponse"/>
      </operation>

      <message name="SubmitRequest">
      <part name="Jobs" type="tns:JobCluster"/>
      </message>

      <xsd:complexType name="JobCluster">
      <xsd:complexContent>
      <xsd:element name="toolid" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/>
      <xsd:restriction base="enc:Array" minOccurs="1" maxOccurs="1">
      <xsd:attribute name="input" ref="enc:arrayType" wsdl:arraytype="tns:ArrayOfString[]"/>
      </xsd:restriction>
      </xsd:complexContent>
      </xsd:complexType>

      , i.e both the integer value and the array should be encapsulated in "Jobs",
      and the integer value is completely missing its enclosing tags.

      my $id = 1;
      my @seq = ("sequence_data_goes_here1", "sequence_data_goes_here2", "sequence_data_goes_here3");
      my $result = SOAP::Lite
      ->service($WSDL)
      ->submit($id, \@seq);

      Strange..

      - Sebastian

      --
      Progress (n.): The process through which Usenet has evolved from
      smart people in front of dumb terminals to dumb people in front
      of smart terminals.
      -- obs@...
    Your message has been successfully submitted and would be delivered to recipients shortly.