You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2004/11/29 13:52:06 UTC
cvs commit: ws-axis/c/samples/client/session/headers readme.txt Counter.wsdl client.wsdd
sanjaya 2004/11/29 04:52:06
Added: c/samples/client/session/headers readme.txt Counter.wsdl
client.wsdd
Log:
Adding files ...
1. readme.txt
2.Counter.wsdl
3.client.wsdd
for the SOAP header sessions sample
Revision Changes Path
1.1 ws-axis/c/samples/client/session/headers/readme.txt
Index: readme.txt
===================================================================
This folder contains;
1. The source to the client side SOAP header based handler
2. The source to the client application that uses a "session scoped" service, "Counter" hosted in Axis java.
3. The WSDL to the Counter service that can be used to generate both the java server side and the C++ client side.
4. The client.wsdd needed to configure the client for the session handler
-Host the service in Axis java (Check c/samples/server/session/headers/readme.txt on how to do this).
-Configure the client to use the provided client.wsdd from axiscpp.conf
-Run the tcpMonitor and configure it to check the conversation between the client and server
-Run the client; inspect the SOAP messages in tcpMonitor to see the values returned by the server incremented by 1 each
time (as done throught the client). Counting starts at the value 97, which is set at the server side web service.
1.1 ws-axis/c/samples/client/session/headers/Counter.wsdl
Index: Counter.wsdl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:counters"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:counters"
xmlns:intf="urn:counters"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="countRequest">
<wsdl:part name="in0" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="countResponse">
<wsdl:part name="countReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:portType name="Counter">
<wsdl:operation name="count">
<wsdl:input message="intf:countRequest" name="countRequest"/>
<wsdl:output message="intf:countResponse" name="countResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CounterSoapBinding" type="intf:Counter">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="count">
<wsdlsoap:operation soapAction="Counter#count"/>
<wsdl:input name="countRequest">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:counters"
use="encoded"/>
</wsdl:input>
<wsdl:output name="countResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="urn:counters"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="Counter">
<wsdl:port binding="intf:CounterSoapBinding" name="Counter">
<wsdlsoap:address location="http://localhost/axis/Counter"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
1.1 ws-axis/c/samples/client/session/headers/client.wsdd
Index: client.wsdd
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:C="http://xml.apache.org/axis/wsdd/providers/c">
<service name="Counter" provider="CPP:RPC" description="Counter web service">
<requestFlow name="CounterHandlers">
<handler name="CounterHandler" type="D:\san\works\checkouts\head3\ws-axis\c\bin\sessionHandler.dll">
</handler>
</requestFlow>
<responseFlow name="CounterHandlers">
<handler name="CounterHandler" type="D:\san\works\checkouts\head3\ws-axis\c\bin\sessionHandler.dll">
</handler>
</responseFlow>
</service>
</deployment>