generateOutputSoapBody(jmethod, operation, jmethod.getResponse());
for (org.objectweb.celtix.tools.common.model.WSDLException ex : jmethod.getWSDLExceptions()) {
BindingFault bindingFault = definition.createBindingFault();
bindingFault.setName(ex.getExcpetionClass().getSimpleName());
operation.addBindingFault(bindingFault);
javax.wsdl.extensions.soap.SOAPFault soapFault = null;
try {
soapFault = (javax.wsdl.extensions.soap.SOAPFault)extensionRegistry
.createExtension(BindingFault.class, new QName(WSDLConstants.SOAP11_NAMESPACE, "fault"));
soapFault.setUse("literal");
soapFault.setName(ex.getExcpetionClass().getSimpleName());
} catch (WSDLException e) {
throw new ToolException(e.getMessage(), e);
}
bindingFault.addExtensibilityElement(soapFault);
}
}