• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 285
  • Last Modified:

Soap client error when trying to access a web service using HTTPS

I'm trying to use a web service via https using the soap::lite module.

I get the following error trace

(any help would be greatly appreciated)

SOAP call failed: 500 Bad arg length for Socket::unpack_sockaddr_in, length is 0
, should be 16 at soap_client_test.pl line 24
        Carp::croak('SOAP call failed: ', '500 Bad arg length for Socket::unpack
_sockaddr_in, length is 0, ...') called at /iw/iw-home/iw-perl/lib/perl5/site_pe
rl/5.005/SOAP/Lite.pm line 1793
        SOAP::Lite::__ANON__('SOAP::Lite=HASH(0x52d510)', '') called at /iw/iw-h
ome/iw-perl/lib/perl5/site_perl/5.005/SOAP/Lite.pm line 1888
        SOAP::Lite::call('SOAP::Lite=HASH(0x52d510)', 'GetLanguages') called at
/iw/iw-home/iw-perl/lib/perl5/site_perl/5.005/SOAP/Lite.pm line 1866
        SOAP::Lite::__ANON__('SOAP::Lite=HASH(0x52d510)') called at soap_client_
test.pl line 24
SOAP::Lite::DESTROY: ()
SOAP::Deserializer::DESTROY: ()
SOAP::Parser::DESTROY: ()
SOAP::Transport::DESTROY: ()
SOAP::Transport::HTTP::Client::DESTROY: ()
Debugged program terminated.  Use q to quit or R to restart,
  use O inhibit_exit to avoid stopping after program termination,
  h q, h R or h O to get additional info.
  DB<1>

0
leecarroll
Asked:
leecarroll
1 Solution
 
blinkie23Commented:
i've not used this SOAP module.  but you have two very important pieces of information there to start your troubleshooting process:

Socket::unpack_sockaddr_in, length is 0, should be 16
  [and]
soap_client_test.pl line 24

i don't know what this means exactly out of context, but it looks like you're passing an empty socket around somewhere.  thats where you should start looking.

it would also help to know what you're doing if you want more help here.  did you write that script?  are you trying to install something?

0
 
herrmann1001Commented:
You probably already read this all on this link

http://search.cpan.org/author/KULCHENKO/SOAP-Lite-0.55/lib/SOAP/Transport/HTTP.pm#TROUBLESHOOTING

but anyway...


best of times!
0
 
leecarrollAuthor Commented:
Forgot I asked this.

For completion it turned out the problem was the soap module ssleary which provide the https encryption was not installed on the server properly. Once all the modules where installed the https method calls went fine.

lee c
0
 
jmcgOwnerCommented:
Nothing has happened on this question in over 5 months. It's time for cleanup!

My recommendation, which I will post in the Cleanup topic area, is to
delete, refund points (asker found their own answer).

Please post any comments here within the next seven days. Moderators check comments here before acting on the recommendation. Experts: silence will likely be taken as assent.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jmcg
EE Cleanup Volunteer
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now