+ "</SOAP-ENV:fault>";
setContent(message, response);
}
exchange.sendFault(message);
} else {
Property soapActionProp = exchange.getContext().getProperty("Soapaction");
if (soapActionProp == null) {
soapActionProp = exchange.getContext().getProperty("SOAPAction");
}
String soapAction = "";
if (soapActionProp != null) {
soapAction = (String) soapActionProp.getValue();
} else {
soapActionProp = exchange.getContext().getProperty("Content-Type");
if (soapActionProp == null) {
soapActionProp = exchange.getContext().getProperty("Content-type");
}
if (soapActionProp != null) {
soapAction = (String) soapActionProp.getValue();
}
}
response = "<test:sayHelloResponse xmlns:test=\"urn:switchyard-component-soap:test-ws:1.0\">"
+ " <return>Hello " + toWhom + "! The soapAction received is " + soapAction + "</return>"
+ "</test:sayHelloResponse>";