Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Perl SOAP and SSL, HHTP Basic Auth

by Anonymous Monk
on Sep 07, 2006 at 01:23 UTC ( [id://571574]=perlquestion: print w/replies, xml ) Need Help??

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

We have this project which runs bunch of web services in Java on JBoss, as well as bunch of test scripts in Perl.

The stubs were generated from subtmaker.pl, and they wroked fine all the way, but now we are moving towards Secured web service...

I searched the document for SOAP::Lite, and found that it didn't mention SSL at all. Then I thought I will just try, so I went to the stb and modified the URL: 1) changed http to https, and 2) changed the port from 8080 to 8443.

But when I ran it, it gave me:

500 Can't locate object method "new" via package "LWP::Protocol::https +::Socket" at wsdl.pl line 3

Does anyone has any simple example? Maybe just point me to the right direction... Thanks!!

Replies are listed 'Best First'.
Re: Perl SOAP and SSL, HHTP Basic Auth
by jbrugger (Parson) on Sep 07, 2006 at 04:37 UTC
    I'm not sure, but this is what i think you mean:
    use SOAP::Lite +trace => [qw(debug)]; SOAP::Lite->new( uri => 'http://www.blah.nl/blah', # the namespace proxy => 'https://www.blah.nl/servive/to/call', on_action => sub {sprintf 'http://www.blah.nl/action'}) #soapacti +on header
    "We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

      Actually it doesn't matter whether we use your way or my stub way, they are the same. Now I am realizing that it might has something to do with the fact that I don't have CRYPT::SSLeay installed.

      I run through ActiveState ppm, but they don't have this module listed, too bad.

        That shouldn't be a problem as you can install Crypt::SSLeay from an alternative repository. At a command prompt do:

        C:\> ppm rep add winnipeg http://theoryx5.uwinnipeg.ca/ppms/ C:\> ppm install Crypt-SSLeay

        /J\

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://571574]
Approved by neversaint
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 10:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found