用webservice做三层结构,如何实现代理服务器的连接

解决方案 »

  1.   

    WebService是什么语言开发的?你是想用Delphi与WebService通信。
      

  2.   

    WebService是用的delphi自带的WebService服务
    我看到客户端的SoapConnection有个proxy属性是来设置代理服务器的
    但是不知道这个属性怎么付值
      

  3.   

    property Proxy: string;(代理)Lists any proxy servers that are required to make the connection.Description
    Use Proxy if the SOAP connection component can't resolve the host portion of URL locally. If the server is registered locally, Proxy can be a null string. Otherwise, Proxy lists the host names of any proxy servers that can forward request messages on to the intended server machine. property ProxyByPass: string;(跳过代理)Lists the host names of locally registered servers that do not require a proxy.Description
    Use ProxyByPass to indicate any server systems to which the SOAP connection component can make a direct connection. When the URL property identifies a server in this list, the Web connection component makes a direct connection even if the Proxy property is specified. When ProxyByPass is an empty string, the Web connection component checks the registry for any locally known servers and bypasses the proxy server if the host portion of URL refers to a registered local server.property UserName: string;(代理验证用户名)Specifies the user name that allows the client application to log on to a local host or proxy server.Description
    When the SOAP connection component connects to the application server on a local host or to a proxy server, it supplies the values of the UserName and Password properties so that it can log in. If neither the host nor the proxy server requires authentication, UserName can be an empty string. Note: On Linux, if the proxy does not require authentication, you can use the UserName and Password properties to log on to the Web Server. property Password: string;(代理验证密码)Specifies the password that allows the client application to log on to a local host or proxy server.Description
    When the SOAP connection component connects to the application server, it supplies the values of the UserName and Password properties so that it can log on to the local host or proxy. The value of Password can be an empty string if neither the local host nor proxy requires authentication. Note: On Linux, if the proxy does not require authentication, you can use the UserName and Password properties to log on to the Web Server.