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

3634RE: [soaplite] Serialization

Expand Messages
  • Mitchell, Louise M
    Jun 2, 2004
    • 0 Attachment
      Here's how I did it... it works... if it's incorrect, someone can
      comment... 'sXML' is the root tag of my xml... $xml is the inner xml...

      sub call_via_soap
      my $xml = shift;

      my $soap = SOAP::Lite
      ->on_action( sub { join '/', 'http://tempuri.org', $_[1] } )


      my $method =

      my $param = SOAP::Data->name(sXML => SOAP::Data->type('string' =>
      $xml) );

      my $response = $soap->call($method=>$param);

      if ($response->fault)
      die $response->faultstring;
      my $result = $response->result;
      return $result;
      #my %result = %{$response->result};
      #print map("$_: @{[$result{$_} || '']}\n", keys %result), "\n";


      -----Original Message-----
      From: alcurry22 [mailto:andrew.curry@...]
      Sent: Wednesday, June 02, 2004 4:59 AM
      To: soaplite@yahoogroups.com
      Subject: [soaplite] Serialization

      I have 1gb documents to be passed around using the soap protocol.
      is it possible to just send the xml as is with out serialization??
      The only way i can see to do it is SOAP::Data as without this i get
      rubbish sent, sadly that leaves me with <DATA><DATA></DATA></DATA>
      which is invalid to the wsdl. Can i just send the xml inside the

      Yahoo! Groups Links
    • Show all 2 messages in this topic