Web Services Invocation Framework:
SimpleSOAP Sample

This sample aims to demonstrate the invocation of the simple SOAP service, one that has minimum functionality and uses only primitive schema types. We invoke the ever-popular Stockquote service. For those unfamilar with it, this is a SOAP service that offers one port type with a single operation. That operation takes as input a stock symbol (that has schema type string) and returns a recent stock quote for that company (the stockquote has schema type float). Most SOAP engines use this sample, this one differs from the others in that you don't need to deploy the service at all; instead we make use of the public Stockquote service developed and hosted by the good folks at XMethods. The service URL, where you can find details on the service implementation, etc. is here.

The WSDL file in this sample directory is publicly available via the service URL and has been downloaded from there.

Here's how to invoke this service dynamically using WSIF's dynamic invocation interface (DII).

Here's how to invoke this service by first generating the stub interface and using this directly through WSIF's dynamic proxy, thus hiding all WSIF specifics from the client code. Note that the stub interface used is the the service interface as defined by the JAX-RPC specification.