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

2193Re: String conversion

Expand Messages
  • sid69se <sid69se@yahoo.se>
    Dec 18, 2002
      Hi, I will include a little more info.

      SOAP::Data->type('string')->name(var => 123) of course forces type
      string on the 123.

      But I need to send a composite data type.

      my $comp = bless{
      SOAP::Data->name(a => 'abc'),
      SOAP::Data->type('string')->name(var => 323),
      SOAP::Data->name(answerText => ["blah blah - 1",
      "blah blah - 2"])
      }=> 'mytype';

      my @request = {
      SOAP::Data->name(a => 'a'),
      SOAP::Data->name(b => 'b'),
      SOAP::Data->name(c => 'c'),
      $comp
      };

      I get strange results with this, the xml has data missing and I get
      the error "Odd number of elements in hash assignment".

      Help !!!!!!!!!!!!!!!!

      /regs
      Sid
    • Show all 3 messages in this topic