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

2596RE: [soaplite] valueof usage help needed

Expand Messages
  • Byrne Reese
    May 7, 2003
    • 0 Attachment
      Try this:
       
      print $som->valueof('//OpGetResponse/Full_Name')  ;
      print $som->valueof('//OpGetResponse/Email_Address');

      I know it is a little different than what you might expect considering how XPath works. But the root element of the SOAP Body is considered the ROOT element of the SOM object.
       
      -----Original Message-----
      From: Kamlesh [mailto:kp52r11@...]
      Sent: Tuesday, May 06, 2003 9:48 PM
      To: soaplite@yahoogroups.com
      Subject: [soaplite] valueof usage help needed

      I have this code.
      #!c:\perl\bin\perl.exe -w

        use SOAP::Lite;
        use Data::Dumper;

        my $soap = SOAP::Lite
           ->service
      ('http://hdwebqa/arsys/WSDL/SJCappServer/UserLoginName');

        my $som = $soap->OpGet(SOAP::Data->name("Request_ID"
      => '000000000000002'));

      print $som->valueof('//Envelope/Body/OpGetResponse/Full_Name')  ;
      print $som->valueof('//Envelope/Body/OpGetResponse/Email_Address');

      I know my wsdl works.
      But I don't know how to get the response back.  There are 2 values
      returned back but I can't figure out how to use it.

      I am getting this error:

      Can't call method "valueof" without a package or object reference at
      C:\DOCUME~1\kp52r11\LOCALS~1\Temp\dir138.tmp\r3.pl line 13.

      CAN U HELP!!!




      To unsubscribe from this group, send an email to:
      soaplite-unsubscribe@yahoogroups.com



      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
    • Show all 4 messages in this topic