RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
THTTPRIO.URL Property

Specifies the URL that identifies the target Web Service application.

Pascal
property URL: string;
C++
__property AnsiString URL;

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 runtime. 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 runtime, 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.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!