* @param ignored not used.
* @throws Exception if something goes wrong.
*/
public static void main(final String[] ignored) throws Exception {
HTTPMixIn soapMixIn = new HTTPMixIn();
soapMixIn.initialize();
try {
String port = System.getProperty("org.switchyard.component.soap.client.port", "8080");
// For karaf, the directory will generally be cxf/proxy/ReverseService
String dir = System.getProperty("org.switchyard.component.soap.client.dir", "proxy/ReverseService");
String url = "http://localhost:" + port + "/" + dir;
String result = soapMixIn.postFile(url, XML);
System.out.println("SOAP Reply:\n" + result);
} finally {
soapMixIn.uninitialize();
}
}