Soap.SOAPHTTPClient.THTTPRIO.URL

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property URL: string read GetURL write SetURL;

C++

__property System::UnicodeString URL = {read=GetURL, write=SetURL};

Properties

Type Visibility Source Unit Parent
property published
Soap.SOAPHTTPClient.pas
Soap.SOAPHTTPClient.hpp
Soap.SOAPHTTPClient THTTPRIO

Description

Specifies the URL that identifies the target Web Service application.

Use URL to identify the target application that implements the invokable interface when there is no need to look up connection information from a WSDL document dynamically at run time. If the server was written using the VCL, the path portion of this URL must match the target path name of the THTTPSoapDispatcher component on the Web Service application. The protocol portion must specify http or https. Thus, for servers written in the VCL, URL has the form:

http://MyHost.com/scripts/MyWebService.dllso/SOAP/IMyInterface

When you use URL to identify the server, THTTPRIO obtains a namespace for the target interface from the invocation registry. It is necessary, therefore, that the target interface be registered with the same namespace in both client and server applications.

Note: In Delphi, this happens automatically if you:

  • Use the same unit to declare and register the target interface in both client and server applications.
  • Use the same value for the AppNamespacePrefix global variable.
  • Use the automatically-generated namespace.

If you are using C++, or if one of the above criteria is not met, you can ensure that the target interface is registered with the same namespace by explicitly specifying a namespace in the code that registers the interface.

Note: If you want your application to look up connection information from a WSDL document dynamically at run time, you must use the WSDLLocation, Service, and Port properties instead. Using the URL property is mutually exclusive with the use of WSDLLocation, Service and Port.

See Also