Hello.
I have a urgent problem making a SOAP request to a recorder server. I am developing an adapter that reads the status of all the cameras and passes them to an IOT system. The first thing I did is make soap requests to the Management server (example: Login, GetConfiguration, isOnline). Soap requests to the management server worked without problems. Then I queried the various recorder servers (example: GetRecorderStatus, GetCurrentDeviceStatus) to know the status of each camera. Before starting to develop code I used SOAPUI for testing and everything worked flawlessly.
When I started developing the code in my case with node.js I encountered a problem on the recorder servers. The SOAP queries to the management server worked without problems, instead, by querying the recorder servers (example: GetRecorderStatus) I always get the following error:
ECONNRESET read
at TCP.onStreamRead (internal / stream_base_commons.js: 201: 27)
I wonder why the requests on the management server work and on the recorder server they don’t. How come SOAPUI works perfectly. I have verified that I am creating the SOAP request exactly as SOAP UI but I always get the same error.
Unfortunately from the code there is something that reset the connection but only for queries on the recorder.
Please help me investigate this problem, I have to ask for example if there is any antivirus / firewall blocking on the server.
You have an example of some code making a SOAP request to a recorder server.
What would you do?
Thanks in advance
SOAP HEADER REQUEST TO RECORDER SERVER
POST http: // MY-IP: 7563 / recorderstatusservice / recorderstatusservice2.asmx HTTP / 1.1
Accept-Encoding: gzip, deflate
Content-Type: text / xml; charset = UTF-8
SOAPAction: “http://videoos.net/2/XProtectCSRecorderStatus2/GetRecorderStatus”
Content-Length: 375
Host: MY-IP: 7563
Connection: Keep-Alive
SOAP REQUEST to RECORDER
<soapenv: Envelope xmlns: soapenv = “http://schemas.xmlsoap.org/soap/envelope/” xmlns: xpr = “http://videoos.net/2/XProtectCSRecorderStatus2”>
<soapenv: Header />
<soapenv: Body>
<xpr: GetRecorderStatus>
<xpr: token> TOKEN # 1ee1d3f7-845a-4f71-b6fc-6145319be1e1 # mlst-mgmt.milestone.local // ServerConnector # </ xpr: token>
</ xpr: GetRecorderStatus>
</ soapenv: Body>
</ soapenv: Envelope>
BELOW IS THE SOAP RESPONSE OBTAINED FROM SOAPUI.
--------------------------- SOAPUI RESPONSE --------------------- ---------
HTTP / 1.1 200 OK
Server: XProtect Recording Server 12.2a
Dates: Fri, Mar 19 2021 21:45:37 GMT
Cache-Control: private, max-age = 0
Content-Type: text / xml; charset = utf-8
Content-Length: 488
<? xml version = "1.0" encoding = "utf-8"?> Attached ConnectedThanks in advance