我正在尝试用kodi中的网址http://192.168.1.160:10243/WMPNSSv4/1921188402/1_NC0yNTY.mp3播放系统中的歌曲。
使用KODI的系统的IP是192.168.1.144我正在尝试发送以下操作:
curl -v -o response.xml -H" Content-Type:text / xml;字符集=" UTF-8"" -H" SOAPAction:" urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"" -d @ AV_transport.xml -X POST http://192.168.1.144:1356/AVTransport/c093ed10-0986-7173-937f-3fc4bbf9ec3a/control.xml
我的AV_transport.xml包含:
<?xml version = "1.0" encoding="utf-8"?>
<s:Envelope
xmlns:s = "http://schemas.xmlsoap.org/soap/envelope/"
s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<u:SetAVTransportURI xmlns:u="urn:schemas-upnp-org:Service:AVTransport:1">
<InstanceID>0</InstanceID>
<CurrentURI>http://192.168.1.160:10243/WMPNSSv4/1921188402/1_NC0yNTY.mp3</CurrentURI>
<CurrentURIMetaData></CurrentURIMetaData>
</u:SetAVTransportURI>
</s:Body>
</s:Envelope>
我收到标题消息为500 Bad Reuest:Bad namespace。请告诉我我的代码中有错误。