b.addExtensor(soapOperation);
if (b.getInput() != null) {
List<String> bodyParts = new ArrayList<String>();
SoapHeaderInfo headerInfo = b.getInput().getExtensor(SoapHeaderInfo.class);
if (headerInfo != null) {
SoapHeader soapHeader = SOAPBindingUtil.createSoapHeader(extensionRegistry,
BindingInput.class,
isSoap12);
soapHeader.setMessage(b.getInput().getMessageInfo().getName());
soapHeader.setPart(headerInfo.getPart().getName().getLocalPart());
soapHeader.setUse("literal");
b.getInput().addExtensor(soapHeader);
for (MessagePartInfo part : b.getInput().getMessageParts()) {
bodyParts.add(part.getName().getLocalPart());
}
}
SoapBody body = SOAPBindingUtil.createSoapBody(extensionRegistry,
BindingInput.class,
isSoap12);
body.setUse("literal");
if (!StringUtils.isEmpty(bodyParts)) {
body.setParts(bodyParts);
}
b.getInput().addExtensor(body);
}
if (b.getOutput() != null) {
List<String> bodyParts = new ArrayList<String>();
SoapHeaderInfo headerInfo = b.getOutput().getExtensor(SoapHeaderInfo.class);
if (headerInfo != null) {
SoapHeader soapHeader = SOAPBindingUtil.createSoapHeader(extensionRegistry,
BindingOutput.class,
isSoap12);
soapHeader.setMessage(b.getOutput().getMessageInfo().getName());
soapHeader.setPart(headerInfo.getPart().getName().getLocalPart());
soapHeader.setUse("literal");
b.getOutput().addExtensor(soapHeader);
for (MessagePartInfo part : b.getOutput().getMessageParts()) {
bodyParts.add(part.getName().getLocalPart());