String targetAddress = requestWsaHeaders.getReplyTo().getAddress().toString();
if(targetAddress.startsWith("https")){
logger.info("Using http url "+ targetAddress);
responseWsaHeaders.setAction(requestWsaHeaders.getAction());
HttpDynamicInfosetInvoker invoker = CredentialsUtils.createSecureInvoker(configuration);
invoker.setLocation(targetAddress);
invoker.invokeXml(responseEnvelope);
}else{
WsaInvoker invoker = new WsaInvoker();
invoker.setDefaultAction(requestWsaHeaders.getAction());
invoker.sendXml(responseEnvelope);
}
}