Map outputParts = bindingOperation.getOperation().getOutput().getMessage().getParts();
if (outputParts.size() > 1) {
throw new IllegalArgumentException(httpMsgs.msgOnePartOnlyForOutput(binding, bindingOperation));
}
BindingInput input = bindingOperation.getBindingInput();
// multipartRelated not supported
if (WsdlUtils.useMimeMultipartRelated(input)) {
throw new IllegalArgumentException(httpMsgs.msgMimeMultipartRelatedUnsupported(binding, bindingOperation));
}
// only 2 content-types supported
MIMEContent inputContent= WsdlUtils.getMimeContent(input.getExtensibilityElements());
if (inputContent != null) {
String inputContentType = inputContent.getType();
if (!inputContentType.endsWith("text/xml") && !PostMethod.FORM_URL_ENCODED_CONTENT_TYPE.equalsIgnoreCase(inputContentType)) {
throw new IllegalArgumentException(httpMsgs.msgUnsupportedContentType(binding, bindingOperation));
}