onvif / specs

ONVIF Network Interface Specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

media.wsdl has incorrect soapAction for 4 operations

maxim-zapryanov opened this issue · comments

GetVideoSource, GetProfile, GetAudioSourceConfiguration and GetVideoSourceConfigurationOptions have mistyped soapAction URLs. The slash is put at the end instead of after wsdl.

E.g.
<wsdl:operation name="GetProfile">
<soap:operation soapAction="http://www.onvif.org/ver10/media/wsdlGetProfile/"/>
wsdl:input
<soap:body parts="parameters" use="literal"/>
</wsdl:input>
wsdl:output
<soap:body parts="parameters" use="literal"/>
</wsdl:output>
</wsdl:operation>

What library or parsing library/ Tool are you using to parse the response from the device?

Actually it's the request that is incorrect. For example you can use gSoap and it will generate incorrect action in the HTTP Content-Type field and incorrect SOAPAction field (based on the info from the wsdl).
Example:
image

Here is an example of the typo from the media.wsdl
image

image

Agree with your observation. Fixing this would break implementations relying on the soap action.

To my knowledge most parser rely on the qualified operation name and would hence not be affected.

As a conclusion fixing the issue probably wouldn't affect most implementations but might break some which is not worth the risk of breaking interoperability.