initiate();
// Fill out negotiation mime parameters
// Add SOAP parameters
SOAP11_PARAMS = Arrays.asList(new String[] {TCPConstants.CHARSET_PROPERTY, TCPConstants.TRANSPORT_SOAP_ACTION_PROPERTY});
SOAP12_PARAMS = Arrays.asList(new String[] {TCPConstants.CHARSET_PROPERTY, TCPConstants.SOAP_ACTION_PROPERTY});
// Add MTOM parameters
MTOM11_PARAMS = new ArrayList<String>(SOAP11_PARAMS);
MTOM11_PARAMS.add("boundary");
MTOM11_PARAMS.add("start-info");
MTOM11_PARAMS.add("type");
MTOM12_PARAMS = new ArrayList<String>(SOAP12_PARAMS);
MTOM12_PARAMS.add("boundary");
MTOM12_PARAMS.add("start-info");
MTOM12_PARAMS.add("type");
SOAP11_BINDING_CONTENT =
new NegotiatedBindingContent(new ArrayList<String>(1), SOAP11_PARAMS);
SOAP12_BINDING_CONTENT =
new NegotiatedBindingContent(new ArrayList<String>(1), SOAP12_PARAMS);
MTOM11_BINDING_CONTENT =
new NegotiatedBindingContent(new ArrayList<String>(2), MTOM11_PARAMS);
MTOM12_BINDING_CONTENT =
new NegotiatedBindingContent(new ArrayList<String>(2), MTOM12_PARAMS);
// Fill out negotiation mime types
// Add FI stateful if enabled
if (TCPSettings.getInstance().getEncodingMode() == EncodingMode.FI_STATEFUL) {
SOAP11_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.FAST_INFOSET_STATEFUL_SOAP11);
SOAP12_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.FAST_INFOSET_STATEFUL_SOAP12);
}
// Add FI stateless if enabled
if (TCPSettings.getInstance().getEncodingMode() == EncodingMode.FI_STATELESS) {
SOAP11_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.FAST_INFOSET_SOAP11);
SOAP12_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.FAST_INFOSET_SOAP12);
}
// Add SOAP mime types
SOAP11_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.SOAP11);
SOAP12_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.SOAP12);
// Add MTOM mime types
MTOM11_BINDING_CONTENT.negotiatedMimeTypes.addAll(SOAP11_BINDING_CONTENT.negotiatedMimeTypes);
MTOM11_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.MTOM);
MTOM12_BINDING_CONTENT.negotiatedMimeTypes.addAll(SOAP12_BINDING_CONTENT.negotiatedMimeTypes);
MTOM12_BINDING_CONTENT.negotiatedMimeTypes.add(MimeTypeConstants.MTOM);