Does anyone know how to call a .NET web service from PERL? I created a very basic .NET web service locally on my machine. The web service accepts a parameter and perfoms a conversion on the input value.
I need to use a PERL script to call this web service and then have the web service return back to the PERL script the result. I know so far that I have to use SOAP::Lite, but I am not sure how to use it? I have read the soaplite.com website for information, but somewhat confusing to me as I am new to PERL.
Any help would be greatly appreciated or a code snippet to try. This is what I have tried so far below, but the only thing that happens is I get the message on the last line printed out to my command window:
use SOAP::Lite;
print SOAP::Lite
-> uri('http://localhost/WebService1/Service1.asmx')
-> proxy('http://localhost/WebService1/Service1.asmx')
-> ConvertTemperature(0)
-> result;
print "test for soap call using SOAP::Lite";
The web service I have contains one exposed webmethod, ConvertTemperature, and it excepts a value and returns a result. Again, I am running this locally on my own machine.
Thanks,
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.