// soapOper.setStyle("rpc");
bindingOper.addExtensibilityElement(soapOper);
// Input SOAP Body
SOAPBody soapBodyIn = new SOAPBodyImpl();
// for now, if its document, it literal use.
if (mode == MODE_RPC) {
soapBodyIn.setUse("encoded");
soapBodyIn.setEncodingStyles(encodingList);
} else {
soapBodyIn.setUse("literal");
}
if (targetService == null)
soapBodyIn.setNamespaceURI(intfNS);
else
soapBodyIn.setNamespaceURI(targetService);
QName operQName = desc.getElementQName();
if (operQName != null &&
!operQName.getNamespaceURI().equals("")) {
soapBodyIn.setNamespaceURI(operQName.getNamespaceURI());
}
soapBodyIn.setEncodingStyles(encodingList);
bindingInput.addExtensibilityElement(soapBodyIn);
// Output SOAP Body
SOAPBody soapBodyOut = new SOAPBodyImpl();
// for now, if its document, it literal use.
if (mode == MODE_RPC) {
soapBodyOut.setUse("encoded");
soapBodyOut.setEncodingStyles(encodingList);
} else {
soapBodyOut.setUse("literal");
}
if (targetService == null)
soapBodyOut.setNamespaceURI(intfNS);
else
soapBodyOut.setNamespaceURI(targetService);
QName retQName = desc.getReturnQName();
if (retQName != null &&
!retQName.getNamespaceURI().equals("")) {
soapBodyOut.setNamespaceURI(retQName.getNamespaceURI());
}
bindingOutput.addExtensibilityElement(soapBodyOut);
bindingOper.setBindingInput(bindingInput);
bindingOper.setBindingOutput(bindingOutput);