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

creating SOAP server

Expand Messages
  • malkovichus
    Hello, I m trying to create an actual SOAP client that can process the following simple message. ... #!/usr/bin/perl -w use SOAP::Transport::HTTP;
    Message 1 of 1 , May 2, 2002
    • 0 Attachment
      Hello,

      I'm trying to create an actual SOAP client that can process the
      following
      simple message.

      --------------------------------------------------------------
      #!/usr/bin/perl -w

      use SOAP::Transport::HTTP;

      SOAP::Transport::HTTP::CGI
      -> dispatch_to('Demo')
      -> handle;

      package Demo;

      sub Get {
      return SOAP::Data->name('greeting' => 'SOAP greeting, hello');
      }

      -------------------------------------------------------------------
      What I think this is doing is sending element called greeting that
      contains information: SOAP greeting, hello. And my questions is what
      should the client would look like to process this server
      information. If anyone post a simple client for this server, it would
      be
      very appreciated.

      What the following does is just sending plain ol' text, right?

      -----------------------------------------------------

      #!perl -w
      use SOAP::Transport::HTTP;
      SOAP::Transport::HTTP::CGI
      -> dispatch_to('Demo')
      -> handle;
      package Demo;
      sub hi {
      return "hello, world";
      }


      ---------------------------------------------------
      and the client just calling hi() or bye() without declaring the
      receiving soap elements and attributes.

      Any comments, posts. Thanks.

      Enkh
    Your message has been successfully submitted and would be delivered to recipients shortly.