soapBody.setParts(StringUtils.parseNMTokens(partsStr));
private static void checkParts(BindingInput in, SOAP12Body body, Message message) { if (message.getParts().size() > 1) { // use a heuristic to determine which part should be the body int i = 0; for (Part p : (List<Part>) message.getOrderedParts(null)) { if (i == 0) { body.setParts(Collections.singletonList(p.getName())); } else { SOAP12HeaderImpl h = new SOAP12HeaderImpl(); h.setUse("litteral"); h.setMessage(message.getQName()); h.setPart(p.getName()); in.addExtensibilityElement(h); } i++; } } }
private static void checkParts(BindingOutput out, SOAP12Body body, Message message) { if (message.getParts().size() > 1) { // use a heuristic to determine which part should be the body int i = 0; for (Part p : (List<Part>) message.getOrderedParts(null)) { if (i == 0) { body.setParts(Collections.singletonList(p.getName())); } else { SOAP12HeaderImpl h = new SOAP12HeaderImpl(); h.setUse("litteral"); h.setMessage(message.getQName()); h.setPart(p.getName()); out.addExtensibilityElement(h); } i++; } } }
soapBody.setParts(StringUtils.parseNMTokens(partsStr));