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

Re: [soaplite] Getting the request object on the client

Expand Messages
  • Dave Howorth
    ... .. snip .. ... This does, I think: my $request = SOAP::Lite- transport- http_request(); See the description of self() in the SOAP::Lite POD for a minimal
    Message 1 of 2 , Sep 6, 2006
    • 0 Attachment
      Himanshu Garg wrote:
      > Hello,
      >
      > I need the request object on the client.
      .. snip ..
      >
      > ============================ CODE BEGINS ==========================
      >
      > #!perl -w
      > use CGI;
      > use SOAP::Lite +autodispatch =>
      > proxy => 'http://www.foo.com/soap/',
      > uri => 'http://www.foo.com/Login';
      >
      > # create a CGI object to show a false CGI request
      > my $cgi = CGI->new('username=hg&password=hg');
      >
      > # call the new method of Login module
      > my $login_form = new();
      >
      > # create a session object
      > my $session = $login_form->setup($cgi);
      >
      > # THIS DOESN'T WORK
      > my $request = transport->http_request();

      This does, I think:

      my $request = SOAP::Lite->transport->http_request();

      See the description of self() in the SOAP::Lite POD for a minimal
      explanation

      Cheers, Dave

      > # Need the $request object to call this
      > $login_form->handle_login($cgi, $request);
      >
      > ============================ CODE ENDS ==========================
    Your message has been successfully submitted and would be delivered to recipients shortly.