Change https schema
This commit is contained in:
committed by
Artem Bilan
parent
8799edadcc
commit
6189ea2c97
12
index.html
12
index.html
@@ -133,12 +133,12 @@ public interface TempConverter {
|
||||
|
||||
<int:chain id="wsChain" input-channel="viaWebService">
|
||||
<int:transformer
|
||||
expression="'<FahrenheitToCelsius xmlns=''http://www.w3schools.com/xml/''><Fahrenheit>XXX</Fahrenheit></FahrenheitToCelsius>'.replace('XXX', payload.toString())" />
|
||||
expression="'<FahrenheitToCelsius xmlns=''https://www.w3schools.com/xml/''><Fahrenheit>XXX</Fahrenheit></FahrenheitToCelsius>'.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\"]"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user