operation.setInput(input);
}
private static void createOutput(Wsdl1SoapOperationImpl operation, BindingOperation wsdlBindingOperation) {
Operation wsdlOperation = wsdlBindingOperation.getOperation();
Output wsdlOutput = wsdlOperation.getOutput();
if (wsdlOutput == null) {
return;
}
BindingOutput wsdlBindingOutput = wsdlBindingOperation.getBindingOutput();
SOAP12Body wsdlSoapBody = WSDLUtils.getExtension(wsdlBindingOutput, SOAP12Body.class);
List<SOAP12Header> wsdlSoapHeaders = WSDLUtils.getExtensions(wsdlBindingOutput, SOAP12Header.class);
Wsdl1SoapMessageImpl output = new Wsdl1SoapMessageImpl();
output.setName(wsdlOutput.getMessage().getQName());
output.setNamespace(wsdlSoapBody.getNamespaceURI());
String outputName = wsdlOutput.getName();
if (outputName == null || outputName.length() == 0) {
outputName = wsdlOperation.getName() + "Response";
}
output.setMessageName(outputName);
for (Iterator itPart = wsdlOutput.getMessage().getOrderedParts(null).iterator(); itPart.hasNext();) {
Part wsdlPart = (Part) itPart.next();
Wsdl1SoapPartImpl part = new Wsdl1SoapPartImpl();
part.setName(wsdlPart.getName());
part.setType(wsdlPart.getTypeName());
part.setElement(wsdlPart.getElementName());
if ((wsdlSoapBody.getParts() == null && wsdlOutput.getMessage().getOrderedParts(null).size() == 1) ||
wsdlSoapBody.getParts().contains(part.getName())) {
part.setBody(true);
output.setElementName(wsdlPart.getElementName());
} else {
boolean header = false;