onvif
onvif copied to clipboard
Wrong SOAP Message from Device
Hello, I am trying to integrate with an AXIS M1065-L camera. Discovery and the call to connect seems to work well, but when I call cam.getStreamUri(), I get 'Wrong SOAP message from 192.xxx.xxx.xxx"
The XML Returned is:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope >
<SOAP-ENV:Header>
<wsa:MessageID>uuid:def91886-4f16-4872-ae57-f35062fe4c47</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:26fc5103-5811-301a-2b13-22f0c3d2dbcc</wsa:RelatesTo>
<wsa:To SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsa:Action SOAP-ENV:mustUnderstand="true">http://schemas.xmlsoap.org/ws/2005/04/discovery/ProbeMatches</wsa:Action>
<d:AppSequence SOAP-ENV:mustUnderstand="true" MessageNumber="851" InstanceId="1657759728"></d:AppSequence>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<d:ProbeMatches>
<d:ProbeMatch>
<wsa:EndpointReference><wsa:Address>urn:uuid:a50d18ff-a8b9-4533-bdfc-8cb1abea0c8f</wsa:Address></wsa:EndpointReference>
<d:Types>tds:Device dn:NetworkVideoTransmitter</d:Types>
<d:Scopes>onvif://www.onvif.org/Profile/Streaming onvif://www.onvif.org/Profile/G onvif://www.onvif.org/hardware/M1065-L onvif://www.onvif.org/name/AXIS%20M1065-L onvif://www.onvif.org/location/ </d:Scopes>
<d:XAddrs>http://192.168.1.27/onvif/device_service http://169.254.68.137/onvif/device_service</d:XAddrs>
<d:MetadataVersion>1</d:MetadataVersion>
</d:ProbeMatch>
</d:ProbeMatches>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Any thoughts? Thank you for your work on this library
Have the same issue. Any idea?
@memersond Hi! This is strange. Can you send me the XML to and from the getStreamUri method?
I think that the problem hides in this line:
<d:XAddrs>http://192.168.1.27/onvif/device_service http://169.254.68.137/onvif/device_service</d:XAddrs>
And parsing urls here:
https://github.com/agsh/onvif/blob/master/lib/discovery.js#L120
Do you have access to you cam via 169.254.68.137 or 192.168.1.27?