CentraSite Documentation : CentraSite Administrator’s Guide : Importing Objects Using the API : Invoking an Importer from a Java Program : Attaching a WSDL to a Registered Web Service
Attaching a WSDL to a Registered Web Service
 
setAttachServiceID
It is possible to 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 follows:
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 should be attached.
Note the following:
*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 WSDL, it is retained.
*If the service has a ServiceBinding that is in the WSDL, it is updated. Operations are never deleted.
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.
Copyright © 2005-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback