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

SOAP::Transport::HTTP::Daemon with SSL?

Expand Messages
  • Daniel Tiefnig
    Hej, I m unsuccessfully trying to use SOAP::Transport::HTTP::Daemon with SSL support (read: HTTPs) on Debian sid , i686, perl 5.8.3. As far as i can see,
    Message 1 of 1 , May 13, 2004
    • 0 Attachment
      Hej,

      I'm unsuccessfully trying to use SOAP::Transport::HTTP::Daemon with SSL
      support (read: HTTPs) on Debian "sid", i686, perl 5.8.3.
      As far as i can see, server part should determinde automatically whether
      SSL encryption is in use. This partly works, as I get an error reading

      500 Can't locate object method "new" via package \
      "LWP::Protocol::https::Socket"

      when SSLeay is not available and I'm using "https://..." on client-side.
      But when putting SSLeay in place, Server just responds with:

      ----------- snip -----------
      HTTP/1.1 400 Bad Request
      Date: Thu, 13 May 2004 11:21:00
      Server: libwww-perl-daemon/1.33
      Content-Length: 57

      <title>400 Bad Request</title>
      ----------- snap -----------


      My server looks like that:

      ----------- snip -----------
      use SOAP::Transport::HTTP;
      use lib '/home/tiefnig/work/soap/backends';
      use adapters;

      my $server = SOAP::Transport::HTTP::Daemon
      -> new (LocalPort => 5050, ReuseAddr => 1)
      -> dispatch_to('adapters');

      print STDERR 'Contact SOAP server at "', $server->url, "\"\n";
      $server->handle();
      ----------- snap -----------


      Anything else I have to configure? Does SOAP::Transport::HTTP::Daemon
      really support HTTPs?


      My client, which works without SSL, looks like this:

      ----------- snip -----------
      use SOAP::Lite +trace => qw(debug);

      my $soap = new SOAP::Lite
      uri => '/adapters',
      proxy => 'http://localhost:5050/';

      my %data = (foo => 'bar');
      my $rdata = SOAP::Data->name(echo => \%data);
      my $sdata = SOAP::Data->name(requests => [$rdata1]);

      my $response = $soap->call(contact => $sdata);
      ----------- snap -----------


      TIA & LG,
      daniel

      PS: yahoo is crap, why don't you set up a sourceforge mailinglist?
    Your message has been successfully submitted and would be delivered to recipients shortly.