Change https schema

This commit is contained in:
Kazuki Shimizu
2017-07-11 02:54:52 +09:00
committed by Artem Bilan
parent 8799edadcc
commit 6189ea2c97

View File

@@ -133,12 +133,12 @@ public interface TempConverter {
<int:chain id="wsChain" input-channel="viaWebService">
<int:transformer
expression="'&lt;FahrenheitToCelsius xmlns=''http://www.w3schools.com/xml/''&gt;&lt;Fahrenheit&gt;XXX&lt;/Fahrenheit&gt;&lt;/FahrenheitToCelsius&gt;'.replace('XXX', payload.toString())" />
expression="'&lt;FahrenheitToCelsius xmlns=''https://www.w3schools.com/xml/''&gt;&lt;Fahrenheit&gt;XXX&lt;/Fahrenheit&gt;&lt;/FahrenheitToCelsius&gt;'.replace('XXX', payload.toString())" />
<int-ws:header-enricher>
<int-ws:soap-action value="http://www.w3schools.com/xml/FahrenheitToCelsius"/>
<int-ws:soap-action value="https://www.w3schools.com/xml/FahrenheitToCelsius"/>
</int-ws:header-enricher>
<int-ws:outbound-gateway
uri="http://www.w3schools.com/xml/tempconvert.asmx"/>
uri="https://www.w3schools.com/xml/tempconvert.asmx"/>
<int-xml:xpath-transformer
xpath-expression="/*[local-name()='FahrenheitToCelsiusResponse']/*[local-name()='FahrenheitToCelsiusResult']"/>
</int:chain>
@@ -171,14 +171,14 @@ public class Application {
public IntegrationFlow convert() {
return f -> f
.transform(payload ->
"<FahrenheitToCelsius xmlns=\"http://www.w3schools.com/xml/\">"
"<FahrenheitToCelsius xmlns=\"https://www.w3schools.com/xml/\">"
+ "<Fahrenheit>" + payload + "</Fahrenheit>"
+ "</FahrenheitToCelsius>")
.enrichHeaders(h -> h
.header(WebServiceHeaders.SOAP_ACTION,
"http://www.w3schools.com/xml/FahrenheitToCelsius"))
"https://www.w3schools.com/xml/FahrenheitToCelsius"))
.handle(new SimpleWebServiceOutboundGateway(
"http://www.w3schools.com/xml/tempconvert.asmx"))
"https://www.w3schools.com/xml/tempconvert.asmx"))
.transform(Transformers.xpath("/*[local-name()=\"FahrenheitToCelsiusResponse\"]"
+ "/*[local-name()=\"FahrenheitToCelsiusResult\"]"));
}