web service to client question

  • Thread starter Thread starter R.A.
  • Start date Start date
R

R.A.

Hi,

I have a web service that process a client call. When a client makes a call
to the web method the method needs to query some data from a client_A and
return the data to the calling client_B. How should I design the way the web
service will call client_A to retreive the data needed for client_B?
I am using .net 1.1 and c#


Thanks
 
Unless you run a web server on each client, there is no way of doing
that because web services is a request/response system. So the service
on the server cannot query one of its clients.

You could do this in one of two ways.

1. If your application's infrastructure supports this, switch to using
Raw TCP/IP sockets ... then (as long as the other client has
communicated its IP address to the server (ie. logged in)), the server
can access the client directly. this is the hard option

2. Have all of your clients that need to be queried simply communicate
all of its data to the server at regular intervals. then the server can
distribute that client's data to anyone who needs it. This is obviously
not fit for real-time queries, but is significantly easier than moving
to straight socket programming.
 
Joel,
Unless you run a web server on each client, there is no way of doing that
because web services is a request/response system. So the service on the
server cannot query one of its clients.
I did not see that the server processes the client, where did you read that?
Or you should read that "needs to query some data from a client" as needs
"needs to query a client". I have readed that as has to evaluate the data
and responds depending from that.

Cor
 
Back
Top