Articles Forum Examples Download Open Source
Copyright(c) 2006 by Pocomatic Software. All rights reserved.
This is a basic web services hello example. It consists of one service (defined by Hello.wsdl), using one single bean of the plain old C++ object (POCO) class MyHelloServiceImpl implemented in MyHelloServiceImpl.h (inline).
The service server is setup by using POCO-WS assembly schema/model.
server.C: This is a simple container, used to setup and assemble the SCA composite. It is notable that this container itself neither contains code, nor links with application specific bean implementations.
Hello.wsdl: The definition of the web service provided by the hello server.
MyHelloServiceImpl.h: This file provides inline implementation of the POCO class MyHelloServiceImpl.
setup.xml: The main setup descriptors.
client.C: The client application.
To build this example, the environment variable POCOCAPSULE_DIR should point to the PocoCapsule/C++ installed directory. Also, this example assumes the Systinet server for C++ is installed and its runtime and development environment (such as WASPC_HOME environment variable pointing to its installation directory) are set properly according to its specification.
Once the environment is set and required Systinet server for C++ is installed and configured accordingly, this example can be built by simply invoking gmake/make on linux/unix or nmake on windows.
· Before starting the server, make sure the LD_LIBRARY_PATH (on linux and solaris) or the PATH (on windows) environment variable is set correctly to include the ${POCOCAPSULE_DIR}/lib directory and the ${WASPC_HOME}/lib directory.
· start the hello service server as:
prompt> server ...
The, start the client:
prompt> client [server-URL] ...
Here, the server URL is (optional, if client is on localhost): http://<server-address>:6070/HelloWorld.