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

Making use of SOAP::SOM from CGI

Expand Messages
  • redgrittybrick
    How can I access the elements of an object passed to a server? I am using CGI with a general dispatcher ... I d like to construct a client call using
    Message 1 of 2 , Jan 19, 2004
    • 0 Attachment
      How can I access the elements of an object passed to a server?
      I am using CGI with a general dispatcher ...

      I'd like to construct a client call using SOAP::Data, ... to pass a
      complex object and then, at the server end, refer to data elements by
      name rather than relying on position.

      Is it possible to make use of SOAP::SOM from a CGI based service?

      .................................................
      $ cat soapserver.pl
      #!/usr/bin/perl
      #
      # Generic SOAP service
      #
      use SOAP::Transport::HTTP;

      SOAP::Transport::HTTP::CGI
      ->dispatch_to('/var/www/cgi-bin/soapmodules')
      ->handle;

      .................................................
      $ cat soapmodules/World.pm
      package World;

      sub new {
      bless {}, shift;
      };

      sub HelloWorld {
      my($self)=@_;
      return "Hello World\n";
      };

      sub GoodByeWorld {
      my($self,$adjective)=@_;
      return "Goodbye $adjective World\n";
      }
      1;
      .................................................
    • Duncan Cameron
      ... From: redgrittybrick To: Sent: Monday, January 19, 2004 11:28 AM Subject: [soaplite] Making
      Message 2 of 2 , Jan 19, 2004
      • 0 Attachment
        ----- Original Message -----
        From: "redgrittybrick" <redgrittybrick5701@...>
        To: <soaplite@yahoogroups.com>
        Sent: Monday, January 19, 2004 11:28 AM
        Subject: [soaplite] Making use of SOAP::SOM from CGI


        > How can I access the elements of an object passed to a server?
        > I am using CGI with a general dispatcher ...
        >
        > I'd like to construct a client call using SOAP::Data, ... to pass a
        > complex object and then, at the server end, refer to data elements by
        > name rather than relying on position.
        >
        > Is it possible to make use of SOAP::SOM from a CGI based service?
        >
        See the section "ACCESSING HEADERS AND ENVELOPE ON SERVER SIDE" in the
        SOAP::Lite docs, it gives you access to the envelope. I imagine that it
        does work with CGI.

        Regards

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