BindingInput bindingInput = ((BindingOperation) binding.getBindingOperations().get(0)).getBindingInput();
SOAPBody soapBody = (SOAPBody) SchemaInfoBuilder.getExtensibilityElement(SOAPBody.class, bindingInput.getExtensibilityElements());
if (soapBody.getUse() != null) {
Use use = Use.getUse(soapBody.getUse());
serviceDesc.setUse(use);
} else {
serviceDesc.setUse(Use.ENCODED);
}
boolean hasEncoded = serviceDesc.getUse() == Use.ENCODED;