System.out.println("Sending as REST");
options.setProperty(Constants.Configuration.ENABLE_REST, Constants.VALUE_TRUE);
}
if (Boolean.parseBoolean(wsrm) || Boolean.parseBoolean(wsrm11)) {
System.out.println("Using WS-RM");
serviceClient.engageModule("sandesha2");
if (Boolean.parseBoolean(wsrm11)){
options.setProperty(SandeshaClientConstants.RM_SPEC_VERSION, Sandesha2Constants.SPEC_VERSIONS.v1_1);
}
options.setProperty(SandeshaClientConstants.LAST_MESSAGE, Constants.VALUE_TRUE);
options.setProperty(SandeshaClientConstants.OFFERED_SEQUENCE_ID, UIDGenerator.generateURNString());