// Is it worth being smarter? Look for matching content first and create those which aren't found????
List removeList = new ArrayList(bindingOutput.getEExtensibilityElements());
removeExtensebilityElements(bindingOutput.getEExtensibilityElements(), removeList);
SOAPFactory soapFactory = SOAPFactory.eINSTANCE;
SOAPBody soapBody = soapFactory.createSOAPBody();
soapBody.setUse((getUseOption(bindingOutput) == USE_ENCODED) ? "encoded" : "literal");
if (getUseOption(bindingOutput) == USE_ENCODED && getStyleOption(bindingOutput) == STYLE_RPC)
{
List encodingList = new BasicEList();
encodingList.add("http://schemas.xmlsoap.org/soap/encoding/");
soapBody.setEncodingStyles(encodingList);
soapBody.setNamespaceURI(getNamespace(bindingOutput));
}
else if (getUseOption(bindingOutput) == USE_LITERAL && getStyleOption(bindingOutput) == STYLE_RPC)
{
soapBody.setNamespaceURI(getNamespace(bindingOutput));
}
bindingOutput.addExtensibilityElement(soapBody);
}