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

SSL troubles

Expand Messages
  • neosnooze@yahoo.com
    Hello, I was wondering if someone can help me here. I wrote a simple soap server based on an example I saw on one of the SOAP sites out there: [snooze@www
    Message 1 of 2 , Oct 2, 2001
    • 0 Attachment
      Hello,
      I was wondering if someone can help me here. I wrote a simple soap
      server based on an example I saw on one of the SOAP sites out there:

      [snooze@www test]$ cat test.cgi
      #!/usr/bin/perl

      use SOAP::Transport::HTTP;
      use World;

      SOAP::Transport::HTTP::CGI
      -> dispatch_to('World')
      -> handle
      [snooze@www test]$

      and I wrote a simple little client:

      [snooze@www test]$ cat test.pl
      use SOAP::Lite;# + trace => all;

      my $s = SOAP::Lite
      ->uri('World')
      ->proxy('http://foo.bar:8010/test/test.cgi')
      ->HelloWorld("Cruel");
      print $s->result();
      [snooze@www test]$

      and it works fine:
      [snooze@www test]$ perl test.pl
      Hello Cruel World
      [snooze@www test]$

      BUT if I change httpd.conf to use ssl on port 8010, and change -
      >proxy to https://foo.bar..., instead of http:, I get this:

      [snooze@www test]$ perl test.pl
      500 read failed: at test.pl line 3
      [snooze@www test]$

      when I run with trace => all, it says:

      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-
      ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
      ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
      ENV:Body><namesp1:HelloWorld xmlns:namesp1="World"><c-gensym3
      xsi:type="xsd:string">Cruel</c-gensym3></namesp1:HelloWorld></SOAP-
      ENV:Body></SOAP-ENV:Envelope>
      SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH
      (0x82e1334)
      SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server
      Error) read failed:
      Client-Date: Tue, 02 Oct 2001 19:26:05 GMT


      Yet, my apache access logs say it was a 200 on test.cgi. I know Im
      doing something stupid, but I have no idea what. Can anyone give me
      any help?
    • Paul Kulchenko
      Hi, neosnooze! ... It s unclear do you still have 8010 with https (https: uses 443 by default). Probably something like this should work for you:
      Message 2 of 2 , Oct 2, 2001
      • 0 Attachment
        Hi, neosnooze!

        > BUT if I change httpd.conf to use ssl on port 8010, and change -
        > >proxy to https://foo.bar..., instead of http:, I get this:
        It's unclear do you still have 8010 with https (https: uses 443 by
        default).

        Probably something like this should work for you:

        ->proxy('https://foo.bar:8010/...')

        Let me know if it doesn't work, I'll take a closer look.

        Best wishes, Paul.

        --- neosnooze@... wrote:
        > Hello,
        > I was wondering if someone can help me here. I wrote a simple soap
        > server based on an example I saw on one of the SOAP sites out
        > there:
        >
        > [snooze@www test]$ cat test.cgi
        > #!/usr/bin/perl
        >
        > use SOAP::Transport::HTTP;
        > use World;
        >
        > SOAP::Transport::HTTP::CGI
        > -> dispatch_to('World')
        > -> handle
        > [snooze@www test]$
        >
        > and I wrote a simple little client:
        >
        > [snooze@www test]$ cat test.pl
        > use SOAP::Lite;# + trace => all;
        >
        > my $s = SOAP::Lite
        > ->uri('World')
        > ->proxy('http://foo.bar:8010/test/test.cgi')
        > ->HelloWorld("Cruel");
        > print $s->result();
        > [snooze@www test]$
        >
        > and it works fine:
        > [snooze@www test]$ perl test.pl
        > Hello Cruel World
        > [snooze@www test]$
        >
        > BUT if I change httpd.conf to use ssl on port 8010, and change -
        > >proxy to https://foo.bar..., instead of http:, I get this:
        >
        > [snooze@www test]$ perl test.pl
        > 500 read failed: at test.pl line 3
        > [snooze@www test]$
        >
        > when I run with trace => all, it says:
        >
        > <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
        > xmlns:SOAP-
        > ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-
        > ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
        > xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
        > xmlns:xsd="http://www.w3.org/1999/XMLSchema"><SOAP-
        > ENV:Body><namesp1:HelloWorld xmlns:namesp1="World"><c-gensym3
        > xsi:type="xsd:string">Cruel</c-gensym3></namesp1:HelloWorld></SOAP-
        > ENV:Body></SOAP-ENV:Envelope>
        > SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH
        > (0x82e1334)
        > SOAP::Transport::HTTP::Client::send_receive: 500 (Internal Server
        > Error) read failed:
        > Client-Date: Tue, 02 Oct 2001 19:26:05 GMT
        >
        >
        > Yet, my apache access logs say it was a 200 on test.cgi. I know Im
        > doing something stupid, but I have no idea what. Can anyone give me
        >
        > any help?
        >
        >
        > ------------------------ Yahoo! Groups Sponsor
        >
        > To unsubscribe from this group, send an email to:
        > soaplite-unsubscribe@yahoogroups.com
        >
        >
        >
        > Your use of Yahoo! Groups is subject to
        > http://docs.yahoo.com/info/terms/
        >
        >


        __________________________________________________
        Do You Yahoo!?
        Listen to your Yahoo! Mail messages from any phone.
        http://phone.yahoo.com
      Your message has been successfully submitted and would be delivered to recipients shortly.