01.) In command prompt go to the folder where
you have extracted the source
02.) Then run the command ant -f buildSamples.xml
(assuming you have ant and other ant related packages installed - see ant
build guide for more information).
03.) This will make the sample executable files and server shared library
files for the samples in the C\obj\samples folder on Windows or /home/obj/samples
folder on Linux.
NOTE: You can find the WSDL files used for these samples in ws-axis/c/deploy/wsdls folder.
01.) Run the apache server or the SimpleAxisServer
<Server Port Number>.
In order to run the sample executables use the
server.wsdd.win32 on Windows or server.wsdd.linux
on Linux which are in [/ws-axis/c/samples]. To
learn more on how to get Axis C++ up and running please read Windows
install guide ot Linux install guide.
02.) In command prompt go to [\obj\samples] on Windows or [/home/obj/samples]
on Linux.
03.)Then use any client name to run the sample. This will use the default
URL (E.g. for calculator
http://localhost:80/axis/calculator) to run the sample. If server is
SimpleAxisServer then specify URL as in step no 06 with the <Server
Port Number> which was given when running
Simple Axis Server
04.) Following are the existing client samples.
SAMPLE NAME |
DISCRIPTION |
|
01. |
array | This is an Axis C++ web service to Simple Type Array which returns an array of elements. This is a DOCUMENT style service. |
02. |
base | This is an Axis C++ web service to Base which is use to demonstrate Complex data types. SOAPBuilders Interoperability Lab Round 2 base test suite described at http://www.whitemesa.com/interop/proposal2.html. This is a RPC style service. |
03. |
bench | This is an Axis C++ web service to demonstrate Axis Bench which is use to demonstrate Complex data types. This is a DOCUMENT style service. |
04. |
doclitfault | This is an Axis C++ web service to demonstrate fault value handling in DOCUMENT style service. |
05. |
calculator | This is an Axis C++ Service to demonstrate Calculator. This will support addition (add) subtraction (sub) multiplication (mul) division (div). This is a RPC style service. |
06. |
element | This is an Axis C++ web service to demonstrate XSD Element which is use XSD data types. This is use set methods to retrieve XSD data types. This is a DOCUMENT style service. |
07. |
enumeration | This is an Axis C++ web service to Enumeration demonstrate enum data type. This is a DOCUMENT style service. |
08. |
ref | This is an Axis C++ web service to demonstrate Value Pass by Reference. This is a RPC style service. |
09. |
rpcfault | This is an Axis C++ web service to demonstrate fault value handling in RPC style service |
10. |
transportProperties | This is an Axis C++ web service to demonstrate Transport Property. This is a DOCUMENT style service. |
05.) To get help on how to run <sample
executable name> [-?] -h]
06.) To run a sample simply run using <sample
executeble name> or using <sample
executeble name> [server URL]
E.g. To run calculator client with Simple Axis
Server started on port number 9090 use:
calculator http://localhost:9090/axis/calculator