Axis C++ Reference Guide

1.5 Version
Feedback: axis-c-dev@ws.apache.org

Table of Contents


Client Stub

Setting Proxy

One can make use of a proxy server by setting the proxy name and port using setProxy(strName,intPort) method of the client stub.

Following sample code snippet shows how this could be done:

In the client's main program

            // Create the clinet stub              
            ClientStub *stub=new ClientStub(strServiceEndPoint);
            // set the proxy setting
            stub->setProxy("Your_Proxy_Host_Name",3128 /*Proxy server port*/ );
            // Use the stub object as usual

That is all; Everything related to proxy will be handled by the transport library transparent to the client stub.