soapOpimpl.setSoapAction(opName);
}
bindingoperation.addExtensibilityElement(soapOpimpl);
if (inMessage != null) {
WSDLBindingMessageReference bindingInMessage = wsdlComponentFactory
.createWSDLBindingMessageReference();
bindingInMessage
.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
bindingoperation.setInput(bindingInMessage);
SOAPBody requestSoapbody = (SOAPBody) extensionFactory
.getExtensionElement(ExtensionConstants.SOAP_11_BODY);
requestSoapbody.setUse(use);
requestSoapbody.setNamespaceURI(namespeceURI);
bindingInMessage.addExtensibilityElement(requestSoapbody);
AxisMessage axisInMessage = axisOperation
.getMessage(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
include = axisInMessage.getPolicyInclude();
// adding policies defined in message element in services.xml
policyElementsList = include
.getPolicyElements(PolicyInclude.AXIS_MESSAGE_POLICY);
addPolicyAsExtElements(womDescription, policyElementsList,
inMessage, include);
// adding policies defined in wsdl:binding -> wsdl:operation ->
// wsdl:input
policyElementsList = include
.getPolicyElements(PolicyInclude.BINDING_INPUT_POLICY);
addPolicyAsExtElements(womDescription, policyElementsList,
inMessage, include);
}
MessageReference outMessage = wsdlOperation.getOutputMessage();
if (outMessage != null) {
WSDLBindingMessageReference bindingOutMessage = wsdlComponentFactory
.createWSDLBindingMessageReference();
bindingOutMessage
.setDirection(WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
bindingoperation.setOutput(bindingOutMessage);
SOAPBody resSoapbody = (SOAPBody) extensionFactory
.getExtensionElement(ExtensionConstants.SOAP_11_BODY);
resSoapbody.setUse(use);
resSoapbody.setNamespaceURI(namespeceURI);
bindingOutMessage.addExtensibilityElement(resSoapbody);
// adding policies
AxisMessage axisOutMessage = axisOperation
.getMessage(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
include = axisOutMessage.getPolicyInclude();