-
Hi all, I am working on building an Onvif compliant device with SOAP in C++. I am having trouble with SOAP Fault messages. In particular, the ter namespace required in many of the tests. I see that it is specified in http://www.onvif.org/ver10/error and I found a table of the error codes in the Onvif Core Specification, but that is all the documentation I can find about it. I am not sure about how to properly use this namespace in my implementation as I can't seem to find it in any wsdl, schema, or xsd file provided anywhere by onvif. I have tried putting the ter = http://www.onvif.org/ver10/error declaration in the typemap.dat file and recompiling and it doesn't seem to change anything (though I understand if that is outside the scope of this forum). Any advice on what to do would be appreciated. I have read quite a bit of the documentation on WS-Topics, WS-BaseNotifications, and WS-BaseFaults, as well as as much Onvif and SOAP documentation as I could find with little luck. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See below the example response for Device Test Case MEDIA-7-1-2-v18.06 SOAP FAULT MESSAGE HTTP/1.1` 400 Bad Request
Content-Type: application/soap+xml; charset=utf-8
Content-Length: 752
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:ter="http://www.onvif.org/ver10/error">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<SOAP-ENV:Code>
<SOAP-ENV:Value>SOAP-ENV:Sender</SOAP-ENV:Value>
<SOAP-ENV:Subcode>
<SOAP-ENV:Value>ter:InvalidArgVal</SOAP-ENV:Value>
</SOAP-ENV:Subcode>
</SOAP-ENV:Code>
<SOAP-ENV:Reason>
<SOAP-ENV:Text xml:lang="en">Argument Value Invalid</SOAP-ENV:Text>
</SOAP-ENV:Reason>
<SOAP-ENV:Node>http://www.w3.org/2003/05/soap-envelope/node/ultimateReceiver</SOAP-ENV:Node>
<SOAP-ENV:Role>http://www.w3.org/2003/05/soap-envelope/node/ultimateReceiver</SOAP-ENV:Role>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope> |
Beta Was this translation helpful? Give feedback.
See below the example response for Device Test Case MEDIA-7-1-2-v18.06 SOAP FAULT MESSAGE