Home | |

CSC 408H1F/2105H1F: Software Engineering
Fall 2004/2005 Session


gSOAP

Under construction...
  1. To try out the Stock Quote web service in the tutorial, please run the following commands:
    cd $HOME/software/gsoap-2.7/soapcpp2/samples/quote
    quote IBM
    
  2. You may view the following files to understand how it works:
    quote.h			The C/C++ interface to the web service 
    quote.cpp		The Client program to invoke the web service
    Makefile		How the following files are generated
    quote.wsdl		The WSDL description of the web service
    quote.getQuote.req.xml	The request SOAP message
    quote.getQuote.res.xml	The response SOAP message
    
  3. A simple gSOAP web server. Suppose you are in team 20 and thus use 8120 as the port number for your team's web service. If you are alreadying running apache server , try first to kill the process:
    killall httpd
    
    Then do the following:
    cd $HOME/software/gsoap-2.7/soapcpp2/samples/webserver
    webserver 8120 &
    
    A server will be running at the background and listening to your port number 8120. Now one can call it through the following URL:
    http://seawolf:8120
    http://seawolf:8120/calc.html
    
    The first URL is not very useful, just shows that the web server is running. The second URL shows an Javascript interface to the Calculator web service. You can use any web browser as a client to call the web service remotely and display the result to your web browser. You may also exercise to create a web service client to try it.
  4. You may kill the web service (and all running web services) through
    killall webserver
    

References

gSOAP: C/C++ Web Services and Clients