Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 15th, 2008, 02:23 PM
Newbie
 
Join Date: Aug 2008
Posts: 1
Default SOAP::Lite Hangs on SSL request

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
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles