gSOAP Examples
Please note: this web page officially moved to https://www.genivia.com/examples.
Visit our new site for updated examples. Some of the examples on this legacy
page may still work, but we cannot provide any guarantees.
This page gives only a small selection of gSOAP server and client examples.
Many more examples can be found in the gSOAP download package. Examples in
the download package include a stand-alone Web server, a router application,
an example UDDI application, example WS-Security server and client, example
SSL server and client, examples of SOAP with attachments (SwA, MTOM, DIME), an
example XML-RPC client (with a generic XML-RPC API), a SOAP-over-UDP example,
an RSS example, and more.
Example 1: Delayed Stock Quotes
This example shows you how to create a client that will interact with Xmethod's
Delayed Stock Quote Service to provide you with up to date information
on your choice of stock.
Details.
Example 2: Calculator
This example shows you how to create a client that will interact with XMLcomponents'
Calc service to provide you with a simple calculator. This example demonstrates
the invocation of multiple methods by one client.
Details.
Example 3: Service Listing
This example shows you how to create a client that will interact with Xmethod's
Service Listing service to provide you with a list of SOAP services provided
through Xmethod. This example demonstrates the use of dynamic arrays.
Details
See the example client run to produce
a recent Service Listing.
Example 4: Currency Exchange Rate
This example shows you how to create a client that will interact with Xmethod's
Currency Exchange Rate service to provide you with up to date information
on the exchange rates between countries.
Details.
Example 5: Building a SOAP Service: Magic Squares
Service
This example shows you how to create a "magic square" service in C++.
Details.
Example 6: Magic Squares Client
This example shows you how to create a client for the "magic square" service
in C++.
Details.
See the example client run.
Example 7: Glossary Client
This example shows you how to create a client for the Glossary service
in C++.
Details.
Example 8: Polymorphic Object Exchange (Client
and Service)
This example shows you how to exchange polymorphic objects between a client
and service. This is a unique feature of the SOAP C/C++ stub and skeleton
compiler.
Details.
Example 9: Linear Systems Solver Service
This example shows you how to create a linear systems solver Web service.
An example demonstration client code is given as well. The service uses
dynamic arrays for vectors and matrices. Vectors and matrices are exchanged
in SOAP as partially transmitted arrays of double. This supports a
simple form of matrix sparsity (however, the linear systems solver algorithm
is a dense matrix solver). The service returns partially transmitted arrays
by eliminating initial and trailing zeros in vectors and matrices.
Details.
Example 10: Google Web API
This example client provides a Google Web API
which enables gSOAP applications to run Google search queries, get cached pages, and perform spelling checking.
Details.
Example 11: Remote Object Factory
This example gSOAP server provides a platform-independent remote object factory and simple ORB.
Details.
Example 12: Test Client for Factory Server
This example gSOAP client defines proxy classes for the remote object factory server.
Details.
BACK TO MAIN PAGE