API Management 10.4 | CentraSite for Developers | 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.
*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.

Copyright © 2015- 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release