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

Perl Soap Server with Java Axis Client

Expand Messages
  • korngerd
    Hi, I ve been trying to get Perl Soap s server to return a map so that I could type-cast it into a HashMap in Axis. This is what I have: sub test2_2 { return
    Message 1 of 1 , Feb 17, 2004
    View Source
    • 0 Attachment
      Hi, I've been trying to get Perl Soap's server to return a map so that
      I could type-cast it into a HashMap in Axis. This is what I have:

      sub test2_2 {
      return (SOAP::Data->name("VariOS_Settings" =>
      { SOAP::Data->name("DEVICE"), SOAP::Data->value("eth0"),
      "BOOTPROTO", SOAP::Data->value("static"),
      "IPADDR", SOAP::Data->value("192.168.101.130")
      } ));
      }

      Somehow, when I retrieve this data structure, the first element
      (DEVICE) seems to become a reference to the "key Object", and I get
      something weird like "SOAP::Data(HASH=blahblah)" as the key for
      "eth0". I tried this as well:

      sub test2_2 {
      return (SOAP::Data->name("VariOS_Settings" =>
      { "DEVICE", SOAP::Data->value("eth0"),
      "BOOTPROTO", SOAP::Data->value("static"),
      "IPADDR", SOAP::Data->value("192.168.101.130")
      } ));
      }

      which returns a SoapStruct, instead of a Soap Map (which is what I
      need). Any help would be greatly appreciated!
    Your message has been successfully submitted and would be delivered to recipients shortly.