helloworld.pl - a simple CGI-based SOAP server implementing the service from in examples/wsdl/helloworld.wsdl
Before using this script, you should secure your webserver. The easiest way to do so is to let it listen to 127.0.0.1 only.
Then make a ScriptAlias named /soap-wsdl-test/ pointing at the directory this file lies in.
For my apache, it looks like this:
ScriptAlias /soap-wsdl-test/ /home/martin/workspace/SOAP-WSDL/example/cgi-bin/ <Directory "/home/martin/workspace/SOAP-WSDL/example/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews Order allow,deny Allow from all </Directory>
Then run the helloworld.pl from the examples directory. It should print
Hello World
To install SOAP::WSDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SOAP::WSDL
CPAN shell
perl -MCPAN -e shell install SOAP::WSDL
For more information on module installation, please visit the detailed CPAN module installation guide.