Use Web service for external interface

Last post 05-15-2008 7:14 AM by satalaj. 3 replies.

Sort Posts:

  • Use Web service for external interface

    05-12-2008, 11:28 PM
    • Loading...
    • Hideyoshi
    • Joined on 05-05-2008, 7:45 AM
    • Posts 80

     - How to allow a remote system to access to web service and login to the system.

    I wish to  gain more information how to trigger user login from 1 server to another server by using VB.NET by web services, for example server A login to server B. It is for back end users, which does not relevant to client-side computer. how the server B knows that server A is the valid server/authentical server to access server B? If so, how's server B send a response to server A and tell it's valid and can access data from server B by using the protocol SOAP? Hope someone can provide a sample code for me or references with details explainations.

    Thanks a lot for your help.

  • Re: Use Web service for external interface

    05-15-2008, 1:47 AM
    • Loading...
    • satalaj
    • Joined on 11-28-2007, 5:41 AM
    • Pune
    • Posts 874

    Can you describe the scenario more in details?

  • Re: Use Web service for external interface

    05-15-2008, 2:12 AM
    • Loading...
    • Hideyoshi
    • Joined on 05-05-2008, 7:45 AM
    • Posts 80

    I'm glad that you reply me. ok. my problem is like this. For example, there are 2 web server in my company which are Web Server HQ and Web Server Branch. the branch server wants to access to the HQ server's database. But first of all, how the HQ server knows it's branch server and will not block the Branch server by firewall? Using vb.Net language, I wish to use web services for HQ server to identify the Branch server has the right to access HQ server. HQ server will allow branch server to login.

    After that, once the branch server login, the HQ web server are able to send the responds to tell branch server that, login is successfull.

     

    I'm really appreciate your help... Thanks :)

     

  • Re: Use Web service for external interface

    05-15-2008, 7:14 AM
    Answer
    • Loading...
    • satalaj
    • Joined on 11-28-2007, 5:41 AM
    • Pune
    • Posts 874

    http://www.codeproject.com/KB/cpp/WebServiceAuthentication.aspx

    There are so many way you can do that

    1. you can use HttpHandler for checking the IP address in a list of Head Quarters server list.
       if not tell the Client unauthorized access
    2. Create some kind of authentication mechanisum
    3. For setting up the communication between two server you can use
       3.1 HttpWebrequest, HttpWebResponse, WebClient, TcpClient.. ..etc  [.net Remoting]
       3.2 Webservice

    Satalaj

Page 1 of 1 (4 items)