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

RE: [soaplite] Serialization

Expand Messages
  • Mitchell, Louise M
    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 {
    Message 1 of 2 , 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
      ->soapversion('1.1')
      ->uri('http://tempuri.org')
      ->on_action( sub { join '/', 'http://tempuri.org', $_[1] } )

      ->proxy('http://ppsdev.pnl.gov/rateestimator/rateestimator.asmx');

      my $method =
      SOAP::Data->name('BurdenTransaction')->attr{xmlns=>'http://tempuri.org/'
      });

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

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

      if ($response->fault)
      {
      die $response->faultstring;
      }
      else
      {
      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
      envelope??
      Cheers





      Yahoo! Groups Links
    Your message has been successfully submitted and would be delivered to recipients shortly.