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%\examples\XMLRPC\simple1.pl ), as shown in Figure C-25.

Figure C-24 Verifying Set-up With a SOAP-Lite Client
 D:\Dev\SOAP-Lite\bin>  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:\Dev\SOAP-Lite\examples\XMLRPC>perl simple1.pl Missouri D:\Dev\SOAP-Lite\examples\XMLRPC> 


J2EE Platform Web Services
J2EE Platform Web Services
ISBN: 0131014021
EAN: 2147483647
Year: 2002
Pages: 127
Authors: Ray Lai

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net