By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,933 Members | 1,686 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,933 IT Pros & Developers. It's quick & easy.

SOAP::Lite Hangs on SSL request

P: 1
The client code is

Expand|Select|Wrap|Line Numbers
  1. #install SOAP-Lite and MIME-tools packages
  2. use SOAP::Lite 'trace', 'debug';
  3.  
  4. #override version
  5. SOAP::Lite->soapversion('1.2');
  6.  
  7. #override credentials     
  8. sub SOAP::Transport::HTTP::Client::get_basic_credentials { 
  9.   return 'USER' => 'PW';
  10. }
  11.  
  12. my $result = SOAP::Lite 
  13.     ->uri('urn:RiskMetricsDirect:1.0:wspone-service')
  14.     ->proxy('https://ws.uat.riskmetrics.com/wsproxy/basic', timeout => 5)
  15.     ->ListPortfolios()
  16.     ->result;
  17.  
  18. print $result;    
When it runs, it prints the following, then hangs. If run without credentials, it gets a fobidden message, and I am maxing out my queries, so the login is definitely working.

Expand|Select|Wrap|Line Numbers
  1. SOAP::Transport::HTTP::Client::send_receive: POST https://ws.uat.riskmetrics.com
  2. /wsproxy/basic HTTP/1.1
  3. Accept: text/xml
  4. Accept: multipart/*
  5. Accept: application/soap
  6. Content-Length: 443
  7. Content-Type: application/soap; charset=utf-8
  8. SOAPAction: "urn:RiskMetricsDirect:1.0:wspone-service#ListPortfolios"
  9.  
  10. <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding" xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><ListPortfolios xmlns="urn:RiskMetricsDirect:1.0:wspone-service" xsi:nil="true" /></soap:Body></soap:Envelope>
When I copy the above request into soapui (www.soapui.org), it goes through just fine. Any ideas are appreciated!

Thanks,
Chris
Aug 15 '08 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.