I'm not sure what I am doing wrong here. I have followed the instructions here: https://loopback.io/doc/en/lb3/Connecting-to-SOAP.html . The web service in the tutorial doesn't work so I have substistuted for this one http://www.dneonline.com/calculator.asmx - and I have successfuly made a call through SOAPUI application ( it's a bit like Postman ).
I followed the instructions all the way through exactly , but using the web service above , but if I try to add 2 numbers through the explorer ( http://localhost:3000/explorer/ ) - in the parameter box for Add , using:
{
"intA": 2,
"intB": 5
}
My Result , Which is incorrect and yet it is Code 200
CURL:
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ \ "intA": 2, \ "intB": 5 \ }' 'http://localhost:3000/api/CalculatorSoap/Add'
Request URL:
http://localhost:3000/api/CalculatorSoap/Add
Response Body
{
"AddResult": 0
}
Response Code
200
Response Headers
{
"strict-transport-security": "max-age=0; includeSubDomains",
"x-content-type-options": "nosniff",
"date": "Fri, 15 Jun 2018 05:25:21 GMT",
"x-download-options": "noopen",
"x-frame-options": "DENY",
"content-type": "application/json; charset=utf-8",
"access-control-allow-origin": "http://localhost:3000",
"access-control-allow-credentials": "true",
"etag": "W/\"f-5IE4vqBmqHTFQ8rEDclDyFspFDY\"",
"connection": "keep-alive",
"vary": "Origin, Accept-Encoding",
"content-length": "15",
"x-xss-protection": "1; mode=block"
}