How to add MessageID in SOAP request using Axis2 and Rampart
You can add all properties like Message,Action,To and Other Properties in Stub::ServiceClient::Options
.
ServiceClient client = serviceStub._getServiceClient();Options options = client.getOptions();options.setAction(action);options.setTo(new EndpointReference(referenceURL));options.setMessageId(UUID.randomUUID().toString());