public class SunRound3Client {
public SOAPEnvelope sendMsg(SunRound3ClientUtil util, String epUrl, String soapAction) throws AxisFault {
SOAPEnvelope retEnvelope = null;
Call call = null;
URL url = null;
try {
call = new Call("target/test-resources/intregrationRepo");
//todo set the path to repository in Call()
url = new URL(epUrl);
Options options = new Options();
call.setClientOptions(options);
options.setTo(new EndpointReference(url.toString()));
options.setTransportInfo(Constants.TRANSPORT_HTTP, Constants.TRANSPORT_HTTP, false);
options.setSoapAction(soapAction);
AxisConfiguration axisConfig = new AxisConfiguration();
ConfigurationContext configCtx = new ConfigurationContext(axisConfig);
MessageContext msgCtx = new MessageContext(configCtx);
AxisOperation opDesc = new OutInAxisOperation(new QName(""));
SOAPEnvelope requestEnvilope = util.getEchoSoapEnvelope();
msgCtx.setEnvelope(requestEnvilope);
MessageContext resMsgCtx = call.invokeBlocking(opDesc, msgCtx);
retEnvelope = resMsgCtx.getEnvelope();
} catch (Exception e) {
throw new AxisFault(e);
}