* @param soapObject the SOAP object to add the attribute to
* @param encodingStyle the encoding style to add
*/
public static void addSOAP11EncodingStyle(XMLObject soapObject, String encodingStyle) {
if (soapObject instanceof EncodingStyleBearing) {
EncodingStyleBearing esb = (EncodingStyleBearing) soapObject;
List<String> list = esb.getSOAP11EncodingStyles();
if (list == null) {
list = new LazyList<String>();
esb.setSOAP11EncodingStyles(list);
}
list.add(encodingStyle);
} else if (soapObject instanceof AttributeExtensibleXMLObject) {
AttributeMap am = ((AttributeExtensibleXMLObject) soapObject).getUnknownAttributes();
String list = am.get(EncodingStyleBearing.SOAP11_ENCODING_STYLE_ATTR_NAME);