RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLItems.GetServiceAndPortOfBinding Method

Retrieves the names of the service and port associated with a specified binding.

Pascal
function GetServiceAndPortOfBinding(const BindingName: IQualifiedName; var ServiceName: WideString; var PortName: WideString): Boolean;
C++
__fastcall Boolean GetServiceAndPortOfBinding(const IQualifiedName BindingName, BSTR ServiceName, BSTR PortName);

Call GetServiceAndPortOfBinding to retrieve the name of the service and port associated with a specified binding. GetServiceAndPortOfBinding performs the converse lookup from the GetBindingForServicePort method. 

BindingName specifies the qualified name of the binding for which you want to look up the service and port. 

ServiceName returns the name of the service to which the binding belongs. 

PortName returns the name of a port within the service that uses the binding. 

GetServiceAndPortOfBinding returns true if it locates the specified binding and returns a service and port. It returns false if the specified binding is not defined in the WSDL document. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!