SSL errors.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SSL errors.

Jeffrey Jones-6
Greetings all,

Before I start I want to mention that I am a total beginner with the WSO
and SOAP in general.

If you are still reading, thank you. I am trying to connect to a service
with an https:// endpoint. When I try and make a request I get a no
reply error and the following in the logs. Any help would be much
appreciated. I am running a Linux system (Kubuntu 8.04).

Here is the code I am using

client = WSClient.new({"to" =>
"https://www.neighbourhood.statistics.gov.uk/interop/NeSSDiscoveryBindingPort",
"use_soap" => "true"},"wsf_test")
 
req =<<XML
    <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsu="http://docs.oasis-
open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
   <soap:Header>
       <wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
secext-1.0.xsd"
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
soap:mustUnderstand="1">
          <wsse:UsernameToken
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-
wssecurity-secext-1.0.xsd"
xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-
secext-1.0.xsd">
              <wsse:Username>SCRUBBED</wsse:Username>
              <wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-
token-profile-1.0#PasswordText">SCRUBBED</wsse:Password>
          </wsse:UsernameToken>
       </wsse:Security>
   </soap:Header>
   <soap:Body
xmlns:ns2="http://neighbourhood.statistics.gov.uk/dissemination/resources/schemas/v0-
1/discoverystructs">
       <ns2:AreaAtLevelElement>
          <AreaIdWithLevelType>
              <AreaId>276704</AreaId>
              <LevelTypeId>12</LevelTypeId>
          </AreaIdWithLevelType>
       </ns2:AreaAtLevelElement>
   </soap:Body>
</soap:Envelope>
XML

client.request(req)

and here is the error in the logs

[Tue Nov 18 22:41:37 2008] [info]  [rampart][rampart_mod] rampart_mod
initialized
[Tue Nov 18 22:41:43 2008] [info]  Starting addressing out handler
[Tue Nov 18 22:41:44 2008] [error] ssl/ssl_utils.c(86) [ssl client]
Loading client certificate failed , key file
[Tue Nov 18 22:41:44 2008] [error] ssl/ssl_stream.c(101) Error occurred
in SSL engine
[Tue Nov 18 22:41:45 2008] [error] http_client.c(245) Data stream
creation failed         for Host www.neighbourhood.statistics.gov.uk and
443 port
[Tue Nov 18 22:41:45 2008] [error] http_client.c(445) client data
stream  null or socket error for host
www.neighbourhood.statistics.gov.uk and 443 port
[Tue Nov 18 22:41:45 2008] [error] http_client.c(449) A read
attempt(HTTP) for the reply without sending the request
[Tue Nov 18 22:41:45 2008] [error] http_sender.c(1334) status_code < 0
[Tue Nov 18 22:41:45 2008] [error] engine.c(179) Transport sender invoke
failed

So it looks like my client is trying to put together an SSL certificate
and key file? How do I set this up (if that is the issue)?

Many thanks for any help you can offer.

Jeffrey Jones

_______________________________________________
Wsf-ruby-user mailing list
[hidden email]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/wsf-ruby-user
Loading...