Implementation of Web Services in Perl by Litis Abraham & Gomathy Sankara CS522 Fall 2001 Semester Project 11/28/2018 Web Services in Perl
Web Services Bind applications together over the Internet Utilize Internet infrastructure XML Common standards by infrastructure provider Rely upon SOAP – Simple Object Access Protocol WSDL – Web Services Description Language UDDI – Universal Discovery, Description and Integration 11/28/2018 Web Services in Perl
source - http://www.webservices.org/ 11/28/2018 Web Services in Perl
SOAP Server package World; sub new { bless {}, shift; }; sub HelloWorld { my ($self) = @_; return "Hello World\n"; }; 1; use SOAP::Transport::HTTP; use World; SOAP::Transport::HTTP::CGI -> dispatch_to('World') -> handle; SOAP Client use SOAP::Lite; my $s = SOAP::Lite ->uri('World') ->proxy('http://soapserver. mycompany.com/soap/soapserver.cgi') ->HelloWorld(); print $s->result(); 11/28/2018 Web Services in Perl
SOAP Request XML Document that consists of an envelope, header & body <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body> <namesp1:HelloWorld xmlns:namesp1="World"/> </SOAP-ENV:Body> </SOAP-ENV:Envelope> 11/28/2018 Web Services in Perl
Conclusion Web Services Perl Foundation for a paradigm shift in the internet Integration of applications regardless of languages or platforms Perl Best suited for building internet applications Ideal for text extraction using regular expressions 11/28/2018 Web Services in Perl
References http://www.activestate.com/Initiatives/WebServices/Whitepaper_PerlandWebServices.pdf http://builder.cnet.com/webbuilding/0-7704-8-4874769-1.html http://www.perl.com/pub/a/2001/01/soap.html http://cookbook.soaplite.com/ http://www.webservices.org/article.php?sid=377&mode=thread&order=0 http://www.xml.com/pub/a/2001/04/04/webservices/index.html http://aspn.activestate.com/ASPN/WebServices/SWSAPI/perltut http://www.uddi.org/pubs/Iru_UDDI_Technical_White_Paper.doc http://www.uddi.org/ http://www.devxpert.com/tutors/uddi/uddi.asp http://uddi.microsoft.com/about/default.aspx 11/28/2018 Web Services in Perl