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

6579What version for both Perl 5.8.2 and 5.10.1?

Expand Messages
  • jywu0812
    Jun 2, 2011
    • 0 Attachment
      Hi. I have a Perl program using SOAP Lite (Version 0.60?) that has been working fine with Perl 5.8.2 but fails with 5.10.1.

      My test code looks like this:

      sub soapcall()
      my $remoteVersion = SOAP::Lite
      -> proxy('http://full_hostname:8080/axis2/...')
      -> uri('http://....org')
      -> getVersion( ... )
      -> result;

      chomp( $remoteVersion );
      print "getVersion() - remoteVersion = $remoteVersion\n" ;

      With Perl 5.10.1 the first call succeeds but the second one fails at the SOAP Lite call, with this message:

      Unresolved prefix 'soapenv' for attribute 'soapenv:Envelope'

      After this message:

      Odd number of elements in anonymous hash

      At this SOAP/Lite.pm line:

      sub start { push @{shift->{_values}}, [shift, {@_}] }

      If I print out @_ for the start function I get:

      SOAP::Parser=HASH(0x2038cba8) soapenv:Envelope soapenv:Envelope HASH(0x2038fc58) ARRAY(0x20748b18) HASH(0x207b48a8) {http://schemas.xmlsoap.org/soap/envelope/}Envelope HASH(0x2038d058) xmlns:soapenv http://schemas.xmlsoap.org/soap/envelope/

      for the second call, and:

      SOAP::Parser=HASH(0x20280ed8) soapenv:Envelope xmlns:soapenv http://schemas.xmlsoap.org/soap/envelope/

      for the first call.

      What's going on? How to best resolve the issue? Is there a version that works for both versions of Perl?

      Thanks for any help.