現在、新しい SONOS 統合に取り組んでいます。ここで概説する最低限の機能を構築し、Python テスト スイートがすべてのテストに合格するようにしました。
SUITE Summary: Passed. Passed: 60, Warnings: 0, Failed: 0.
新しい SID にカスタム サービスの説明を追加しました。サービス名、両方のエンドポイント、ポーリング間隔、匿名認証、正しい文字列 URL、音楽サービス コンテナーの種類、選択された機能はありません。
SONOS クライアントにサービスを追加できますが、「音楽を閲覧できません」というメッセージが表示されます。さまざまなことが考えられることはわかっていますが、ここで飛び出すものはありますか? 私の脳は混乱しており、明らかな何かが欠けていると思います! :)
ご協力いただきありがとうございます!
編集:
「ルート」getMetadata リクエストの例を次に示します。
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:SOAPServerWSDL" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getMetadata>
<id xsi:type="xsd:string">root</id>
<index xsi:type="xsd:integer">0</index>
<count xsi:type="xsd:integer">10</count>
<recursive xsi:type="xsd:boolean">false</recursive>
</ns1:getMetadata>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
そしてその結果:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://api-server.dev/index.php/sonos" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getMetadataResponse xmlns:ns1="urn:SOAPServerWSDL">
<getMetadataResult xsi:type="tns:metadata">
<index xsi:type="xsd:integer">0</index>
<count xsi:type="xsd:integer">2</count>
<total xsi:type="xsd:integer">2</total>
<mediaCollection xmlns="" xsi:type="tns:mediaCollection">
<id xsi:type="xsd:string">genres</id>
<title xsi:type="xsd:string">Playlists</title>
<itemType xsi:type="xsd:string">collection</itemType>
</mediaCollection>
<mediaCollection xmlns="" xsi:type="tns:mediaCollection">
<id xsi:type="xsd:string">my_playlists</id>
<title xsi:type="xsd:string">My Playlists</title>
<itemType xsi:type="xsd:string">collection</itemType>
</mediaCollection>
</getMetadataResult>
</ns1:getMetadataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
これらの関数とその他の関数はすべて、Python セルフテストに合格しています。¯\_(ツ)_/¯