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

SOAP::Lite and EasySOAP interopability question. Help!

Expand Messages
  • macjohn123
    *Newbie alert* I m trying to write a simple SOAP::Lite perl script to communicate with the EasySOAP calculator demo. Basically, I m trying to mimic the
    Message 1 of 3 , Jun 5, 2002
    • 0 Attachment
      *Newbie alert* I'm trying to write a simple SOAP::Lite perl script
      to communicate with the EasySOAP calculator demo. Basically,
      I'm trying to mimic the simpleclient example program that came
      with the EasySOAP installation. The example calls the "add"
      function with two parameters. The problem is my script doesn't
      return anything and I'm totally clueless as to why. Can anyone
      see the error of my ways?
      -------------------------------
      use SOAP::Lite;
      print SOAP::Lite
      ->uri('http://easysoap.sourceforge.net/demos/calculator')
      ->proxy('http://easysoap.sourceforge.net/cgi-bin/simpleserver')
      ->add(6,4)
      ->result
      --------------------------------

      I'd expect the answer "10" to appear, but the script terminates
      without printing anything. Are my parameters and function
      names correct? Any help is appreciated.

      Thanks!

      John
    • rjray@blackperl.com
      Many SOAP servers require that the input parameters strictly adhere to the names outlined in their interface specification. In this case, EasySOAP expected the
      Message 2 of 3 , Jun 5, 2002
      • 0 Attachment
        Many SOAP servers require that the input parameters strictly adhere to the
        names outlined in their interface specification. In this case, EasySOAP
        expected the parameters to be named "a" and "b", respectively. Changing your
        code to:

        use SOAP::Lite;
        print SOAP::Lite
        ->uri('http://easysoap.sourceforge.net/demos/calculator')
        ->proxy('http://easysoap.sourceforge.net/cgi-bin/simpleserver')
        ->add(SOAP::Data->name(a => 6), SOAP::Data->name(b => 4))
        ->result

        Yields the expected result.

        Randy
        --
        """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
        Randy J. Ray rjray@...
        Campbell, CA rjray@...
        <A HREF="http://www.svsm.org">Silicon Valley Scale Modelers</A>
      • macjohn123
        My collegue implemented this change and the script ran correctly. Thanks Randy! John ... adhere to the ... EasySOAP ... Changing your ... simpleserver ) ...
        Message 3 of 3 , Jun 6, 2002
        • 0 Attachment
          My collegue implemented this change and the script ran
          correctly.

          Thanks Randy!

          John

          --- In soapbuilders@y..., rjray@b... wrote:
          > Many SOAP servers require that the input parameters strictly
          adhere to the
          > names outlined in their interface specification. In this case,
          EasySOAP
          > expected the parameters to be named "a" and "b", respectively.
          Changing your
          > code to:
          >
          > use SOAP::Lite;
          > print SOAP::Lite
          > ->uri('http://easysoap.sourceforge.net/demos/calculator')
          > ->proxy('http://easysoap.sourceforge.net/cgi-bin/
          simpleserver')
          > ->add(SOAP::Data->name(a => 6), SOAP::Data->name(b =
          > 4))
          > ->result
          >
          > Yields the expected result.
          >
          > Randy
          > --
          > """"""""""""""""""""""""""""""""""""""""""""""""
          """""""""""""""""""""""""""""""
          > Randy J. Ray
          rjray@b...
          > Campbell, CA
          rjray@s...
          > <A HREF="http://www.svsm.org">Silicon Valley Scale
          Modelers</A>
        Your message has been successfully submitted and would be delivered to recipients shortly.