RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWSDLItems.GetPortsForService Method

Fills a list with the names of all ports defined within a specified service.

Pascal
procedure GetPortsForService(const ServiceName: DOMString; PortNames: TDOMStrings; SkipHttpBindings: Boolean = True; QualifiedNames: Boolean = False);
C++
__fastcall GetPortsForService(const DOMString ServiceName, TDOMStrings PortNames, Boolean SkipHttpBindings = True, Boolean QualifiedNames = False);

Call GetPortsForService to retrieve the names of all ports defined for the specified service. A port represents a binding, plus the address where that binding can be found. 

ServiceName is the name of the service whose ports are listed. 

PortNames is an existing TWideStrings object to which the names of all ports in the specified service are added.  

SkipHttpBindings indicates whether GetPortsForService should include port types whose definitions include an <http:binding> tag. When false, GetPortsForService retrieves all port type definitions. When true, GetPortsForService ignores port type definitions with simple HTTP bindings. 

QualifiedNames indicates whether the port names added to the list should be qualified using the target namespace prefix.

Note: GetPortsForService does not clear the WideString list before adding the names of the ports.
 

 

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