Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ffdesousa/2147e92c7c03dc3a2c6337d6ba839f3b to your computer and use it in GitHub Desktop.
Save ffdesousa/2147e92c7c03dc3a2c6337d6ba839f3b to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>IKEA Soap</title>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script type="text/javascript">
function soap() {
let sr =
'<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="ikea.cusmgmt.remote.ws">' +
'<SOAP-ENV:Body>' +
'<ns1:AccountRequestRequest>' +
'<ns1:ProviderLogin>Repermissioning_Microsite</ns1:ProviderLogin>' +
'<ns1:ProviderPassword>PROVIDER_PASSWORD</ns1:ProviderPassword>' +
'<ns1:CustomerId>CUSTOMER_ID</ns1:CustomerId>' +
'</ns1:AccountRequestRequest>' +
'</SOAP-ENV:Body>' +
'</SOAP-ENV:Envelope>';
axios
.post('https://testing.cs.quantmarketing.com/Ikbe-onlinesoapapi/Service.asmx', sr, {
headers: {
'Content-Type': 'text/xml',
SOAPAction:
'http://schemas.facilinformatica.com.br/Facil.Credito.WsCred/IEmprestimo/CalcularPrevisaoDeParcelas'
}
})
.then(response => console.log(response.data))
.catch(err => console.log(err));
}
</script>
</head>
<body>
<form name="Demo" method="POST">
<input type="text" id="fname" name="fname">
<input type="text" id="lname" name="lname">
<input type="button" value="Soap" onclick="soap()" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment