Web service invoking for a server / client app

J

Jack

I want to design a server which performs some business related user
authentiation, and would like to let the clients invoke it through
webservice, so my first thinking is using IIS as the web server to host
webservice, but then how does it interact with my server. Another invoking
from IIS to my server ? no way, it should be damn slow. The problem is I
want my server to control many authentiation information, so I don't want
them to be sparsed put into "every" webservice functions the client will
invoke, instead a centralized server to do the logic. Can anyone give me
some solutions for this scenario ?
 
N

Nicholas Paldino [.NET/C# MVP]

Jack,

Well, you seem to have a problem. You don't want to place code in your
web service methods themselves, because you want a centralized server to
handle it. At the same time, you don't want to make a call from the web
service to your centralized server.

You have to make a decision to use one or the other.

What you could do is have your service expose methods/objects through
remoting, and then use a cross-process channel on the same machine to access
the service. It should be pretty fast in that case.

Hope this helps.
 
J

Jack

Thanks Nicholas,

Is it complicated my server implements webservice itself without IIS. I
think the dotnet framework is built in such stuff. I've to implement about
40 web service methods in total.

I've 2 choices now.

1. Implement WS in IIS and using remoting to access my SAO.
2. Client is in IIS, and call my server implemented webservice.

Jack

Nicholas Paldino said:
Jack,

Well, you seem to have a problem. You don't want to place code in your
web service methods themselves, because you want a centralized server to
handle it. At the same time, you don't want to make a call from the web
service to your centralized server.

You have to make a decision to use one or the other.

What you could do is have your service expose methods/objects through
remoting, and then use a cross-process channel on the same machine to
access the service. It should be pretty fast in that case.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jack said:
I want to design a server which performs some business related user
authentiation, and would like to let the clients invoke it through
webservice, so my first thinking is using IIS as the web server to host
webservice, but then how does it interact with my server. Another invoking
from IIS to my server ? no way, it should be damn slow. The problem is I
want my server to control many authentiation information, so I don't want
them to be sparsed put into "every" webservice functions the client will
invoke, instead a centralized server to do the logic. Can anyone give me
some solutions for this scenario ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top