Accessing server via UPnP

Discuss alternative media renderers (not PS3) supported by PS3 Media Server (e.g. Xbox 360, TVs &c.)

Re: Accessing server via UPnP

Postby emveepee » Sat Feb 05, 2011 5:52 am

Here is the request that is being made. Unfortunately I can't read java but will m:Browse match with soapaction.contains("ContentDirectory:1#Browse")

Code: Select all
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <SOAP-ENV:Body>
        <m:Browse xmlns:m="urn:schemas-upnp-org:service:ContentDirectory:1">
            <ObjectID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">0</ObjectID>
            <BrowseFlag xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">BrowseDirectChildren</BrowseFlag>
            <Filter xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">*</Filter>
            <StartingIndex xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</StartingIndex>
            <RequestedCount xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">100</RequestedCount>
            <SortCriteria xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string"></SortCriteria>
        </m:Browse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Martin
emveepee
 
Posts: 18
Joined: Fri Feb 04, 2011 8:35 pm

Re: Accessing server via UPnP

Postby emveepee » Sat Feb 05, 2011 8:34 am

I sniffed and captured the header and I can't see why this is failing

Code: Select all
POST /upnp/control/content_directory HTTP/1.1
Content-Type: text/xml; charset="utf-8"
SOAPAction: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
User-Agent: Mozilla/4.0 (compatible; UPnP/1.0; Windows 9x)
Host: 172.16.3.2:5001
Content-Length: 848
Connection: Close
Cache-Control: no-cache
Pragma: no-cache


In my conf file I have

UserAgentSearch=Mozilla|UPnP/1\.0

Martin
emveepee
 
Posts: 18
Joined: Fri Feb 04, 2011 8:35 pm

Re: Accessing server via UPnP

Postby emveepee » Sat Feb 05, 2011 9:26 pm

Ok, looking at getEnclosingValue() in Request.java, it looks like it because it is not xml parser, it won't accept xml attributes so it will only work on basic xml. ie my client sends

<ObjectID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">0</ObjectID>
and it wants
<ObjectID>0</ObjectID>

Martin
emveepee
 
Posts: 18
Joined: Fri Feb 04, 2011 8:35 pm

Previous

Return to Alternative Media Renderers

Who is online

Users browsing this forum: No registered users and 1 guest