MAP outProps = builder.newMap();
outProps.setTo("uri:jaxrpc-samples-wsaddressing/TestService");
outProps.setMessageID("urn:uuid:" + UUIDGenerator.generateRandomUUIDString());
outProps.setAction("http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/" + action);
MAPEndpoint replyTo = builder.newEndpoint(ADDR.getAnonymousURI());
outProps.setReplyTo(replyTo);
// Assign a new clientid
if (clientID == null)
{
clientID = "clientid-" + (++maxClientId);
log.info("New clientid: " + clientID);
}
try
{
Element ele = DOMUtils.parse(getClientIdElement(clientID));
replyTo.addReferenceParameter(ele);
}
catch (IOException e)
{
throw new RuntimeException(e);
}