INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS - Playback/Zones method missing GUID?  (Read 1235 times)

haylo75

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 61
MCWS - Playback/Zones method missing GUID?
« on: January 10, 2011, 01:27:03 am »

I'm currently developing a ColdFusion based facade for the MCWS API.  First, I'd like to say that your API is one of the easiest I've ever worked with.  The docs page had me coding in seconds.  I have a question about the Playback/Zones method.  For testing, I set up a total of four zones on my Server.  The information returned appears to be missing the GUID from the last added zone (see image).

I see a ZoneID3 and ZoneName3, but no ZoneGUID3.  Is this by design?



Thanks!
haylo75
Logged
Kerr

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42053
  • Shoes gone again!
Re: MCWS - Playback/Zones method missing GUID?
« Reply #1 on: January 10, 2011, 09:05:42 am »

Thanks for the kind words.  Web services are pretty neat with regards to how flexible and portable they are.

As for your question, I'm not able to reproduce the issue.  Here's an example response from my computer:

http://localhost:52199/MCWS/v1/Playback/Zones

Code: [Select]
<Response Status="OK">
<Item Name="NumberZones">5</Item>
<Item Name="CurrentZoneID">20907</Item>
<Item Name="CurrentZoneIndex">0</Item>
<Item Name="ZoneName0">Stereo</Item>
<Item Name="ZoneID0">20907</Item>
<Item Name="ZoneGUID0">{8432D162-0382-45A8-B9A2-0926E3497C2F}</Item>
<Item Name="ZoneName1">Headphones</Item>
<Item Name="ZoneID1">20910</Item>
<Item Name="ZoneGUID1">{7259200F-A0F6-4951-8EBA-B3A7FB991211}</Item>
<Item Name="ZoneName2">WDTVLIVE</Item>
<Item Name="ZoneID2">20846</Item>
<Item Name="ZoneGUID2">{0781a213-0090-a972-ed7f-3bda62c5603e}</Item>
<Item Name="ZoneName3">J River ID</Item>
<Item Name="ZoneID3">20920</Item>
<Item Name="ZoneGUID3">{c875cd5d-5ac6-414d-b882-08f8a53fa860}</Item>
<Item Name="ZoneName4">Air Music</Item>
<Item Name="ZoneID4">20915</Item>
<Item Name="ZoneGUID4">{d79fbc89-f8b3-4ef3-b8f5-06b43ef3d352}</Item>
</Response>

Could you try in a browser, and see what the XML looks like?  Is the GUID missing there as well, or could it be a ColdFusion parsing issue?

Thanks.
Logged
Matt Ashland, JRiver Media Center

haylo75

  • Regular Member
  • Junior Woodchuck
  • **
  • Posts: 61
Re: MCWS - Playback/Zones method missing GUID?
« Reply #2 on: January 10, 2011, 01:30:07 pm »

Matt, you were right on the money.  My parser was missing the last iteration of XML children, which in my case happened to be ZoneGUID3.  Sorry to bother you guys!
Logged
Kerr
Pages: [1]   Go Up