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

2413OO call does not return SOAP::SOM object - Why?

Expand Messages
  • fallinj <fallinj@yahoo.com>
    Feb 25, 2003
    • 0 Attachment
      This PERL code works, in that is makes a valid SOAP request and gets
      back a valid SOAP response, however I can't seem to get at the data
      in the result object. For example, when I generate an Fault response
      on purpose and then attempt to call $som->fault I get an error that
      there is no method "fault" available.

      use SOAP::Lite;

      my $soap = SOAP::Lite
      ->service("http://localhost/appsrvCodeProfile.wsdl");

      my $som = $soap->getCodes(\SOAP::Data->value(
      SOAP::Data->type("string")->name("userGuid"
      => "10000007027"),
      SOAP::Data->type("string")->name
      ("userOperationalAccount" => "AirClic_US***0.0.0.1-407788"),
      SOAP::Data->type("string")->name("userAccessProvider"
      => "Wombat Inc")
      ),
      SOAP::Data->type("string")->name("ticket"
      => "dz1.bnVsbC4xNzQxMzEzLjAuNTE5Mzc2MTY4NzEwMjc5NA==")
      );

      unless ($som->fault) {
      print $result->result());
      } else {
      print join ', ',
      $som->faultcode,
      $som->faultstring,
      $som->faultdetail;
      }

      I also tried to use SOAP::Lite->self->call (which the SOAP::Lite
      Cookbook said would return a SOM object for the last call) but I get
      an error that method "call" could not be called on undefined value.