Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 26766 invoked from network); 7 May 2004 05:09:34 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 May 2004 05:09:34 -0000 Received: (qmail 69542 invoked by uid 500); 7 May 2004 05:09:14 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 69440 invoked by uid 500); 7 May 2004 05:09:13 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 69425 invoked from network); 7 May 2004 05:09:13 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 7 May 2004 05:09:13 -0000 Received: (qmail 26736 invoked by uid 1686); 7 May 2004 05:09:31 -0000 Date: 7 May 2004 05:09:31 -0000 Message-ID: <20040507050931.26735.qmail@minotaur.apache.org> From: roshan@apache.org To: ws-axis-cvs@apache.org Subject: cvs commit: ws-axis/site/src/documentation/content/xdocs/cpp winuser-guide.ihtml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N roshan 2004/05/06 22:09:31 Modified: site/src/documentation/content/xdocs/cpp winuser-guide.ihtml Log: updated the windows source user guide doc Revision Changes Path 1.6 +18 -20 ws-axis/site/src/documentation/content/xdocs/cpp/winuser-guide.ihtml Index: winuser-guide.ihtml =================================================================== RCS file: /home/cvs/ws-axis/site/src/documentation/content/xdocs/cpp/winuser-guide.ihtml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- winuser-guide.ihtml 6 May 2004 11:26:09 -0000 1.5 +++ winuser-guide.ihtml 7 May 2004 05:09:31 -0000 1.6 @@ -294,7 +294,6 @@ This sample handler will simply echo (i.e send back) the string which you send in the SOAP request.
2)testHandler (A client side handler sample)

This sample handler will simply add a SOAP Header to the generated SOAP request.

-

Please note that these are very primitive sample handlers and are presented here to give you an idea about writing your own Handlers.

echoStringHeaderHandler

Building the Sample Handlers in VC

@@ -304,29 +303,29 @@

The VC dsw file (ServerHandlers.dsw) is available at AXIS_EXTRACT/vc/samples/server/ ServerHandlers.dsw. Open this file and build the project echoStringHeaderHandler. Once the build is successful you will find the DLL (echoStringHeaderHandler.dll) at AXIS_EXTRACT/bin. If you see this DLL at the above location you are done with the first step.

Configuring the Handler

Now edit the AXIS_FOLDER /conf/server.wsdd to include the handler for a particular service.

-

<service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service ";> +

<service name="Calculator" provider="CPP:RPC" description="Simple Calculator Axis C++ Service ">
-<requestFlow name="CalculatorHandlers";> +<requestFlow name="CalculatorHandlers">
-<handler name="ESHHandler" type=" AXIS_EXTRACT/bin/echoStringHeaderHandler.dll";> +<handler name="ESHHandler" type=" AXIS_EXTRACT/bin/echoStringHeaderHandler.dll">
-</handler;> +</handler>
-</requestFlow;> +</requestFlow>
-<responseFlow name="CalculatorHandlers";> +<responseFlow name="CalculatorHandlers">
-<handler name="ESHHandler" type=" AXIS_EXTRACT/bin/echoStringHeaderHandler.dll";> +<handler name="ESHHandler" type=" AXIS_EXTRACT/bin/echoStringHeaderHandler.dll">
-</handler;> +</handler>
-</responseFlow;> +</responseFlow>
-<parameter name="allowedMethods" value="add sub mul div "/;> +<parameter name="allowedMethods" value="add sub mul div "/>
-<parameter name="className" value="Axis\webservices\Calculator.dll" /;> +<parameter name="className" value="Axis\webservices\Calculator.dll" />
-</service;>

+</service>

Note: Make sure you specify the correct path of the handler dll in the server.wsdd file.

Now you are almost done to run your server side handler.
@@ -338,21 +337,20 @@

testHandler

Building the Sample Handlers in VC

Building testHandler (A client side handler sample)

-

The VC dsw file (ServerHandlers.dsw) is available at AXIS_EXTRACT/vc/samples/client/ClientHandlers.dsw. Open this file and build the project TestHandler. Once the build is successful you will find the DLL (testHandler.dll) at AXIS_EXTRACT/bin. If you see this DLL at the above location you are done with the first step.

Configuring the Handler

Now edit the AXIS_FOLDER /conf/client.wsdd to include the handler for a particular service.

-

<service name="Calculator" provider="CPP:DOCUMENT" description="Calculator web service";> +

<service name="Calculator" provider="CPP:DOCUMENT" description="Calculator web service">
-<requestFlow name="CalculatorHandlers";> +<requestFlow name="CalculatorHandlers">
-<handler name="TestHandler" type=" AXIS_EXTRACT/bin/testHandler.dll";> +<handler name="TestHandler" type=" AXIS_EXTRACT/bin/testHandler.dll">
-</handler;> +</handler>
-</requestFlow;> +</requestFlow>
-</service;>

+</service>

Note: Make sure you specify the correct path of the handler dll in the client.wsdd file.

Now you are almost done to run your client side handler.

Note: If you are using Client side Handlers you need to enter the CLIENTWSDDFILEPATH entry in the AXIS_FOLDER/axiscpp.conf configuration file. (See above)