xml - 三星电视遥控器通过 UPnP
问题描述
我通过发送 M-Search 消息在网络上搜索三星智能电视。得到网络上电视广告的所有服务的响应。在“http://192.168.0.1:7678/nservice/”处获得其中一项服务的描述 XML
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:sec="http://www.sec.co.kr/dlna" xmlns:dlna="urn:schemas-dlna-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:dial-multiscreen-org:device:dialreceiver:1</deviceType>
<friendlyName>[TV] Samsung 7 Series (50)</friendlyName>
<manufacturer>Samsung Electronics</manufacturer>
<manufacturerURL>http://www.samsung.com/sec</manufacturerURL>
<modelDescription>Samsung DTV RCR</modelDescription>
<modelName>UA50RU7400RSMZ</modelName>
<modelNumber>1.0</modelNumber>
<modelURL>http://www.samsung.com/sec</modelURL>
<serialNumber>20090804RCR</serialNumber>
<UDN>uuid:8b6394f7-19c7-423d-a229-017ddf94ba54</UDN>
<sec:deviceID>NSNSC5ZTTO2RS</sec:deviceID>
<sec:ProductCap>Resolution:1920X1080,Tizen,Y2017</sec:ProductCap>
<serviceList>
<service>
<serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>
<serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId>
<controlURL>/RCR/control/dial</controlURL>
<eventSubURL>/RCR/event/dial</eventSubURL>
<SCPDURL>dial.xml</SCPDURL>
</service>
</serviceList>
<sec:Capabilities>
<sec:Capability name="samsung:multiscreen:1" port="8001" location="/ms/1.0/"/>
</sec:Capabilities>
</device>
</root>
我正在向控制 URL 发送 SOAP 请求。我从服务器收到 404 和 SOAP 响应
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<s:Body>
<s:Fault>
<faultcode>s:Client</faultcode>
<faultstring>UPnPError</faultstring>
<detail>
<UPnPError xmlns="urn:schemas-upnp-org:control-1-0">
<errorCode>402</errorCode>
<errorDescription>Invalid Args</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
注:三星智能电视型号为 RU 系列 7。
解决方案
推荐阅读
- html - 如何将盒子阴影添加到包含的 div?
- python - 数独生成器 - 索引矩阵,测试行/列中的重复值
- javascript - Read character on mouse select
- r - 根据另一列 R 中的字符创建一列
- python - How to compute AUC and generate ROC curve for RNN and LSTM models using Tensorflow?
- php - Fetch distinct data from mongo array of objects data
- architecture - 访问数据库对象的粒度授权
- c# - 以单一 mp4 格式复制 m3u8 段文件
- apache-spark - When is it safe to delete files when using file-based streaming?
- c# - Why Listbox SelectedItem return null value?