Output wsdlOutput = wsdlOperation.getOutput();
if (wsdlOutput == null) {
return;
}
BindingOutput wsdlBindingOutput = wsdlBindingOperation.getBindingOutput();
SOAPBody wsdlSoapBody = WSDLUtils.getExtension(wsdlBindingOutput, SOAPBody.class);
List<SOAPHeader> wsdlSoapHeaders = WSDLUtils.getExtensions(wsdlBindingOutput, SOAPHeader.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;
for (SOAPHeader h : wsdlSoapHeaders) {