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

5812Sending parameters for CGi->new

Expand Messages
  • Himanshu Garg
    Jan 29, 2007
    • 0 Attachment
      Hello,

      I am calling a method from a SOAP client as follows :-

      my $client = SOAP::Lite->proxy('www.foo.com');
      $client->default_ns('http://www.foo.com/FooModule');
      my $params = {username=> 'himanshu'};
      $client->run($params);

      At the server I create a CGI object as follows :-

      sub run
      {
      my ($self, $params) = @_;
      my $cgi = CGI->new($params);
      ...
      }

      I don't want to pass the $params variable to CGI because that is
      code I cannot modify. I want it to work in the existing code as follows :-

      sub run
      {
      my ($self, $params) = @_;
      my $cgi = CGI->new();
      ...
      }

      What changes should I make at the server/client so that the
      parameters I send are automatically picked up by CGI->new

      Thank You,
      HG