こんにちは、こんばんは。
UPnP デバイスにリクエストを送信しようとしましたが、結果は常に次のようになります。
HTTP/1.1 500 Internal Server Error
CONTENT-LENGTH: 497
CONTENT-TYPE: text/xml;charset="utf-8"
CONNECTION: close
<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>501</errorCode>
<errorDescription>Action Failed</errorDescription>
</UPnPError>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
私の要求は:
POST /Server0/SRS_control HTTP/1.1
HOST: 192.168.2.25:60606
SOAPACTION: "urn:schemas-upnp-org:service:ScheduledRecording:1#GetAllowedValues"
CONTENT-TYPE: text/xml; charset="utf-8"
connection: close
Content-Length: 380
<?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:GetAllowedValues xmlns:u="urn:schemas-upnp-org:service:ScheduledRecording:1">
<DataTypeID>A_ARG_TYPE_RecordScheduleParts</DataTypeID>
<Filter>*:*</Filter>
</u:GetAllowedValues>
</s:Body>
</s:Envelope>
この問題を解決する方法を知っている人はいますか?品質/解像度フィールドの許容値を取得して、新しい ScheduledRecord を作成したいと考えています。私が知っているのは「MVGA」の 1 つだけですが、これは 640x360 です。どうもありがとうございました!