[Gsoap2-develop] Query : Persistent Connection Using Gsoap
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
From: Deepak M. <dee...@re...> - 2005-05-04 13:46:08
|
=A0=0Ahi,=0A=0AI have a requirement to build SOAP/XML based message =0Aint= erface between two network nodes (not in anyway =0Arelated to any webservic= e kind of stuff). The requirement =0Ais two have both client/server implem= entation on both sides =0Aand a typical flow would be like this : =0A=0A[No= deA] [Node B] =0A |=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3DTCP Connection Establish=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>| =0A |-------------= --------- Request 1 (SOAP) --------------------->| =0A |<------------------= -- Response 1 (SOAP)-----------------------| =0A |<-------------------- Req= uest 2 (SOAP) -----------------------| =0A |---------------------- Response= 2 (SOAP)--------------------->| =0A |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3DX TCP Connection Closure=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D| =0A=0AHere you can notice that a TCP connectio= n is established first, =0ASOAP messages are exchanged back and forth, requ= est can be sent by either node. =0A=0AI have these questions : =0A=0A1. M= ost of the literature I have gone through talks of =0ASOAP for RPC based ap= plications. Can I use SOAP for =0Aa non-RPC kind of application (for instan= ce purely =0Afor peer-2-peer message transfer as explained above - =0Awher= e within the same TCP session multiple request/response =0Amessages are exc= hanged back and forth.) =0A=0A2. Can we make two way asynchronous message p= assing using gsoap in which after making a request we donot have to wait/bl= ock for the response.=0A=0AI would be grateful if anyone can suggest a way = out. =0AThanks in advance. =0ADeepak Mehra=0A |