C.18. SOAP-Lite

C.18.1. Windows Platform

To verify the set-up, issue the following command from a Command Prompt, as shown in Figure C-24.

The StockQuoteService.jws is a sample Web Service application that comes with the Axis installation. Instead of writing your client, you can invoke the service by calling the exposed functionality, getQuote, based on the WSDL.

Press Control-Z to exit from the Perl session.

Alternatively, you can run any sample program from the SOAP-Lite distribution (for example, %SOAP-Lite%examplesXMLRPCsimple1.pl), as shown in Figure C-25.

Figure C-24. Verifying Set-up With a SOAP-Lite Client
D:DevSOAP-Litein>perl soapsh.pl http://localhost:8080/axis/StockQuoteService.jws
Usage: method[(parameters)]
> getQuote("SUNW")
—- SOAP RESULT —-
'35.84'

> getQuote("MFST")
—- SOAP RESULT –––/–––
'0.0'

> getQuote("AOL")
—- SOAP RESULT –––/–––
'11.0'

Figure C-25. Invoking Web Services From a SOAP-Lite Client
D:DevSOAP-LiteexamplesXMLRPC>perl simple1.pl
Missouri
D:DevSOAP-LiteexamplesXMLRPC>

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.23.181