Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java-SCA-2.0
-
None
-
All
Description
When the interface contract is created from a WSDLDefinition using the following piece of code from WebServiceBIndingProcessor
PortType portType = getPortType(model);
if (portType != null) {
WSDLInterfaceContract interfaceContract = wsdlFactory.createWSDLInterfaceContract();
WSDLInterface wsdlInterface = null;
try
catch (InvalidInterfaceException e)
{ warning(monitor, "InvalidInterfaceException", wsdlFactory, model.getName(), e.getMessage()); } interfaceContract.setInterface(wsdlInterface);
interfaceContract.setCallbackInterface(wsdlInterface.getCallbackInterface());
model.setBindingInterfaceContract(interfaceContract);
}
The wsdlDefinition is not set on the newly created wsdlInterface. This hasn't mattered until now but, due to TUSCANY-3915, we're looking to retrieve the binding interface contract and serialize out the WSDL that's found. If could be useful to be able to use the wsdlDefinition if one already exists rather than trying to generate a new one.