{
output = new WSDLInterfaceOperationOutput(interfaceOperation);
bindingOutput = new WSDLBindingOperationOutput(bindingOperation);
output.setElement(new QName(operationName.getNamespaceURI(), operationName.getLocalPart() + "Response"));
ParameterMetaData returnParameter = operation.getReturnParameter();
if (returnParameter != null)
{
QName xmlName = returnParameter.getXmlName();
String partName = returnParameter.getPartName();
if (returnParameter.isInHeader())
{
WSDLSOAPHeader header = new WSDLSOAPHeader(xmlName, partName);
header.setIncludeInSignature(true);
bindingOutput.addSoapHeader(header);
}
else
{
QName xmlType = returnParameter.getXmlType();
String ns = getNamespace(returnParameter.getJavaType(), xmlType.getNamespaceURI());
QName newXmlType = new QName(ns, xmlType.getLocalPart());
WSDLRPCPart part = new WSDLRPCPart(partName, newXmlType);
output.addChildPart(part);
}