'Soap server not receiving the request
I am using the soap server to get the data from the external data provider. The Soap server is initialized with the wsdl.xml file.
location = 'http://localhost:8000/wsdl?wsdl';
// modify the wsdl to have the correct host:port
wsdl = wsdl.replace(wsdlURL, location);
server = http.createServer(function (request, response) {
response.setHeader('Access-Control-Allow-Origin', '*');
response.setHeader('Access-Control-Request-Method', '*');
response.setHeader('Access-Control-Allow-Methods', 'OPTIONS, GET');
response.setHeader('Access-Control-Allow-Headers', '*');
response.end("404: Not Found: " + request.url)
})
.on('error', function (e) {
console.log("Error: " + e.message);
console.log(e.stack);
});
server.listen(8000, 'localhost');
soapServer = soap.listen(server, '/wsdl', myService, wsdl);
soapServer.log = function (type, data) {
console.log(type, data);
};
console.log('SOAP server started: http://localhost:8000/wsdl?wsdl');
});
The app is working fine and it's receiving expected data.
But If I change the port from 8000 to any other port(ex: 8001), then the app is start on 8001 port but it is not receiving any data from the Data provider.
Is there any configuration I need to change/update such that the app should also work on 8001 port?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
