UDDIProxy:
findService method
Description
Finds service details using a service name.
Syntax
1 |
<span>proxy</span>.<span>findService</span> (readonly string <span>serviceName</span>, ref integer <span>count</span>, <br>ref string <span>serviceNameResult</span> [ ], ref string <span>serviceDescriptionResult</span> [ ], ref string <span>serviceKeyResult</span> [ ], ref string <span>busNameResult </span>[ ], ref string <span>wsdl</span> [ ]) |
Argument |
Description |
---|---|
proxy |
The name of the UDDIProxy object |
serviceName |
Service name to search in UDDI registry |
count |
Number of search results returned; never |
serviceNameResult |
Array of services matching the search |
serviceDescriptionResult |
Array of descriptions for services matching |
serviceKeyResult |
Array of globally unique identifiers |
busNameResult |
Array of business names matching the |
wsdl |
Array of WSDL file names for services |
Return Values
Integer. Valid values are 1
for
success, and 0
for failure.
Examples
The following code gets service details for the “Weather” service
using an instantiated uddiproxy object (proxy):
1 |
int ret, count |
1 |
string serviceName[], serviceDescription[] |
1 |
string serviceKey [], businessName [], wsdl [ ] |
1 |
ret = proxy.<span>findService</span>("Weather", count, serviceName,&<br>  serviceDescription, serviceKey, businessName, wsdl) |