* @param operQName
* @return
*/
protected ExtensibilityElement writeSOAPBody(QName operQName) {
SOAPBody soapBody = new SOAPBodyImpl();
// for now, if its document, it is literal use.
if (use == Use.ENCODED) {
soapBody.setUse("encoded");
soapBody.setEncodingStyles(encodingList);
} else {
soapBody.setUse("literal");
}
if (style == Style.RPC) {
if (targetService == null) {
soapBody.setNamespaceURI(intfNS);
} else {
soapBody.setNamespaceURI(targetService);
}
if ((operQName != null) && !operQName.getNamespaceURI().equals("")) {
soapBody.setNamespaceURI(operQName.getNamespaceURI());
}
}
// The parts attribute will get set if we have headers.
// This gets done when the Message & parts are generated