Perl requestor script to send SOAP

i am Using the 'sample' data attached to:
 Write a Perl requestor script check-policy.pl that will send a SOAP message to
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi. which will:
-call the method checkPolicyPrice with two input values corresponding to the arguments
policyCode and date;
-print out the response that is returned from the policy.cgi service

any idea to get started?
sample-request.txt
evry2004Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Adam314Commented:
Where do the policyCode and date come from in the attached file?  There are several dates (start-date, end-date, and 2 DOB), and I don't see any policyCode.

For the SOAP portion:


use SOAP::Lite;
 
print SOAP::Lite
    -> service('http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi')
    -> checkPolicyPrice($policyCode, $date);

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
evry2004Author Commented:
policyCode and date  are in the cgi
0
evry2004Author Commented:
checkPolicyPrice function is provided by a policy module on the server
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Adam314Commented:
The code I posted in my first response will call the checkPolicyPrice using the specified service.
Is this what you wanted to do?
0
evry2004Author Commented:
yes if it's the full code because i am a new to it  should i include it in the sample code attached
0
Adam314Commented:
I'm not sure what you mean by "policyCode and date are in the cgi".
From where does your perl script get them?

The code I posted is complete for the SOAP portion.  It assumes that $policyCode and $date are defined somewhere.  If you clarify where they come from, I can help you with code to set those.
0
evry2004Author Commented:
$policyCode and $date are defined
0
Adam314Commented:
Then does the code I posted work?
0
evry2004Author Commented:
well i need to give your full mark now could you help with a good interpreter to execute this code i am using optiperl as an expert which one do you use
0
evry2004Author Commented:
logic
0
Adam314Commented:
On unix systems, I use the perl that comes with the distribution.  On windows, I use the activeperl distribution.

On unix, you should have a package manager that should help you get perl installed (if it isn't already installed).
On windows, you can get activeperl for free at: www.activestate.com
With activeperl, you can install modules using ppm.  You can still use cpan and install from source, but since windows doens't come with a compiler, it's easier to use ppm (not all modules are available - but the most common ones are)
0
evry2004Author Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.