}
private BindingOutputImpl addBindingOutput(Definition def, String methodName, OutputParameterType[] outputParams,
UnknownExtensibilityElement wsPolicyRef) {
// specify output only if there are output parameters
BindingOutputImpl bindingOutput = null;
if (outputParams.length > 0) {
bindingOutput = (BindingOutputImpl) def.createBindingOutput();
bindingOutput.setName(methodName + GFacSchemaConstants.SERVICE_RESP_MSG_SUFFIX);
if (wsPolicyRef != null) {
log.debug("policy info is not null");
bindingOutput.addExtensibilityElement(wsPolicyRef);
}
SOAPBodyImpl outputExtension = new SOAPBodyImpl();
outputExtension.setUse(LITERAL);
bindingOutput.addExtensibilityElement(outputExtension);
}
return bindingOutput;
}