473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

neither client nor server be I

I have a scenario that I think is probably not all that uncommon, and
I would like to fall into the standard pattern of implementing it, if
one exists. I have a process which wants to expose a web service that
is a bit more complicated that an standard request-response, or in-
out, message exchange pattern. In my case, my service will receive a
request and transmit a response immediately acknowledging the
request. I then want to send one or more notifications as the request
is processed, ending with a final notification.

So it seems to me that my service starts off like a standard "in-out"
web service, but then has to act as a client in sending notifications
back to the original requestor (which started off looking like a
client, and now has to act like a server).

I am using HTTP/SOAP as the transporting/encoding between the two
servers.

My questions are:

1) Is it typical to establish one persistent TCP connection with
keepalive over which the initial request/response are transmitted,
along with the ensuing notifications? Or would it be more common for
a separate connection to be opened for the request/response and then
for each ensuing notification?

2) Any tricks to doing this using Visual Studio/C# to act in the role
of the initial requestor? I have the initial request/response working
fine, using wsdl to generate my proxy stub for consuming the remote
web service, do I know have to implement code to expose a web service
of my own to receive the notifications?

Apr 26 '07 #1
1 1364
On Apr 26, 9:53 am, beachdog <dhor...@pactolus.comwrote:
I have a scenario that I think is probably not all that uncommon, and
I would like to fall into the standard pattern of implementing it, if
one exists. I have a process which wants to expose a web service that
is a bit more complicated that an standard request-response, or in-
out, message exchange pattern. In my case, my service will receive a
request and transmit a response immediately acknowledging the
request. I then want to send one or more notifications as the request
is processed, ending with a final notification.

So it seems to me that my service starts off like a standard "in-out"
web service, but then has to act as a client in sending notifications
back to the original requestor (which started off looking like a
client, and now has to act like a server).

I am using HTTP/SOAP as the transporting/encoding between the two
servers.

My questions are:

1) Is it typical to establish one persistent TCP connection with
keepalive over which the initial request/response are transmitted,
along with the ensuing notifications? Or would it be more common for
a separate connection to be opened for the request/response and then
for each ensuing notification?

2) Any tricks to doing this using Visual Studio/C# to act in the role
of the initial requestor? I have the initial request/response working
fine, using wsdl to generate my proxy stub for consuming the remote
web service, do I know have to implement code to expose a web service
of my own to receive the notifications?
Any help on this?

Apr 29 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
15
by: Michael Rybak | last post by:
hi, everyone. I'm writing a 2-players game that should support network mode. I'm now testing it on 1 PC since I don't have 2. I directly use sockets, and both client and server do...
18
by: cjl | last post by:
Hey all: I know that it is silly in the age of Google to 'lose' something on the internet, but I recently checked out a project that had implemented a database with a subset of SQL in pure...
6
by: Ken Allen | last post by:
I am relatively new to .Net and C#, but I hav ebeen programing in other languages and done some COM work for a number of years. I am attempting to understand how to map an older program...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
10
by: Ben | last post by:
Hi, I made an application in classic asp (reservation of books and video stuffs for students) and want to migrate to asp.net. The user has to chose a date, then pushung on a submit button. The...
5
by: Yossarian | last post by:
I have a handheld running CE .NET 4.2 and I am using c# with framework 1.1 to develop a solution for syncing data that is on the handheld with the local pc. Our handheld cradles only support...
0
by: beachdog | last post by:
I have a C# web services application that has to act as both a client and a server. I send a request (HTTP/SOAP), and receive a response from a server (which I will write), which basically is just...
2
by: nsaffary | last post by:
hi I hava a client/server program that run correctly when i run it in one computer(local) but when I run client on a one computer and run server run on another, connection does not stablish.(I set...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.