You can establish a connection to a SOAP application server using the TSoapConnection component. TSoapConnection is very similar to TWebConnection, because it also uses HTTP as a transport protocol. Thus, you can use TSoapConnection from any machine that has a TCP/IP address, and it can take advantage of SSL security and to communicate with a server that is protected by a firewall.
The SOAP connection component establishes a connection to a Web Service provider that implements the IAppServerSOAP or IAppServer interface. (The UseSOAPAdapter property specifies which interface it expects the server to support.) If the server implements the IAppServerSOAP interface, TSoapConnection converts that interface to an IAppServer interface for client datasets. TSoapConnection locates the Web Server application using a Uniform Resource Locator (URL). The URL specifies the protocol (http or, if you are using SSL security, https), the host name for the machine that runs the Web server, the name of the Web Service application, and a path that matches the path name of the THTTPSoapDispatcher on the application server. Specify this value using the URL property.
By default, TSOAPConnection automatically looks for an IAppServerSOAP (or IAppServer) interface. If the server includes more than one remote data module, you must indicate the target data module's interface (an IAppServerSOAP descendant) so that TSOAPConnection can identify the remote data module you want to use. There are two ways to do this:
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|