CentraSite 10.3 | CentraSite Developer's Guide | Importing Objects Using API | Invoking Importer from Java Program | Attaching WSDL to Registered Web Service
 
Attaching WSDL to Registered Web Service
 
setAttachServiceID
setCreateVersion
You can attach a WSDL file to an existing web service. The code for attaching a WSDL file is similar to the code for importing a WSDL file. An example code snippet is:
WebServiceRegistrator wr = new WebServiceRegistrator("attach.wsdl", jaxr);
wr.setAttachServiceID("uddi...");
wr.register();
where, "uddi..." denotes the UDDI key of the service to which the WSDL file must be attached.
Note: 
*The service can be a manually-created service.
*If the service has already been registered with a WSDL, then calling setAttachServiceID updates the registered information.
*If there are any services within the WSDL, they are registered as usual.
*If the service has a ServiceBinding that is not in the new WSDL, it is removed.
*If the service has a ServiceBinding that is in the WSDL, it is updated.
*Operations which are no longer present in the WSDL will be removed.
*Using the setCreateVersion() method it is possible to create a new version from the attached service rather than updating it.
The WebServiceRegistrator class provides the setter method (in addition to the setter methods described under Importing a Web Service). The setter method must be called before calling the register() method.