if (msg != null) {
SOAPBody soapBody = WsdlUtils.getExtensiblityElement(operation.getBindingInput().getExtensibilityElements(),
SOAPBody.class);
if (soapBody == null || soapBody.getParts() == null) {
SOAP12Body soap12Body = WsdlUtils.getExtensiblityElement(operation.getBindingInput()
.getExtensibilityElements(), SOAP12Body.class);
if (soap12Body == null || soap12Body.getParts() == null) {
if (msg != null) {
result.addAll(msg.getOrderedParts(null));
}
} else {
Iterator i = soap12Body.getParts().iterator();
while (i.hasNext()) {
String partName = (String) i.next();
Part part = msg.getPart(partName);
result.add(part);