Q&D example for a SOAP service

System setup is the Developer VM (Ubuntu VM on VirtualBox, Host is a Mac) as described in earlier posts.

We need a wsdl file ( XML that described the soap service)
wsdl

and a script that streams out the wsdl file in case GET parameter ‘wsdl’ is supplied and invokes SoapServer if not.

SoapClass

The only function here is named getSettings and expects one boolean parameter named blTestMode.
If set to true, soap service runs in a loop until some predefined time (35 seconds for now)
is passed.

This example will be used later to test timeout behaviour of calls to external services.

Calling Script looks like

soap client

This entry was posted in howto and tagged , , . Bookmark the permalink.

Leave a Reply