diff --git a/templates/soap_template.js b/templates/soap_template.js index c6ea9092f1574eea7c03a9a038304c5a8ecab7be..0b392929ce809e9c17c1f6525dc4459756b59bc3 100644 --- a/templates/soap_template.js +++ b/templates/soap_template.js @@ -54,6 +54,38 @@ const getHistory = { template: getHistory_soap_template }; -module.exports = { topup, buyProduct, getHistory }; +const checkCode_soap_template = `<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> +<Body> + <checkCode xmlns="http://service.example.org/"> + <arg0 xmlns="">%s</arg0> + <arg1 xmlns="">%d</arg1> + </checkCode> +</Body> +</Envelope>">`; + +const checkCode = { + url: "http://localhost:8081/checkCode", + headers: headers, + template: checkCode_soap_template +} + +const uangConverter_soap_template = `<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> +<Body> + <checkCode xmlns="http://service.example.org/"> + <arg0 xmlns="">%s</arg0> + <arg1 xmlns="">%d</arg1> + </checkCode> +</Body> +</Envelope>`; + +const uangConverter = { + url: "http://localhost:8081/uangConverter", + headers: headers, + template: uangConverter_soap_template +} + + + +module.exports = { topup, buyProduct, getHistory, checkCode, uangConverter };