...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
Info | ||
---|---|---|
| ||
Please follow the documentation on how to create a client-side connection to use the Governance API before following these examples. |
Adding a new Service
Assuming that the governanceRegistry
variable refers to a valid governanceRegistry
object, you can create a new service and and save it using the following code.
...
Code Block |
---|
Service[] services = serviceManager.findServices(new ServiceFilter() { public boolean matches(Service service) throws GovernanceException { String attributeVal = service.getAttribute("Owner"); ifreturn (attributeVal != null && attributeVal.equals("Financial Department")) { return true; } return false; } }); |
...
Attaching a WSDL to a Service
...