INTERACT FORUM

Please login or register.

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

Author Topic: Help on MCWS call syntax  (Read 2740 times)

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Help on MCWS call syntax
« on: August 25, 2016, 03:50:22 am »

Can someone please help me on the correct syntax needed to read a specific tag value (e.g. the Date) on a specific file?

i.e. something like this http://localhost:52199/MCWS/v1/File/GetInfo?File=123&Fields=Date

Please don't point me to the online WSDL doc; of course I have read that, but nevertheless I cannot seem to get the syntax right..
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14266
  • I won! I won!
Re: Help on MCWS call syntax
« Reply #1 on: August 25, 2016, 04:36:36 am »

Just tested.  You call works fine for me, and returned:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 8756" PathSeparator="\">
<Item>
<Field Name="Key">123</Field>
<Field Name="Date">37681</Field>
</Item>
</MPL>
Logged
JRiver CEO Elect

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3959
Re: Help on MCWS call syntax
« Reply #2 on: August 25, 2016, 04:40:08 am »

same here

one thing to note that the response does not contain an element with name="Date" if the entry has no value for the Date field, i.e. it would be

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 8756" PathSeparator="\">
    <Item>
        <Field Name="Key">123</Field>
    </Item>
</MPL>
Logged

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Re: Help on MCWS call syntax
« Reply #3 on: August 26, 2016, 03:55:29 am »

Thanks for the help. I think I am suffering authentication issues...
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14266
  • I won! I won!
Re: Help on MCWS call syntax
« Reply #4 on: August 26, 2016, 07:23:41 am »

Could be, let us know if you have issue working it out.
Logged
JRiver CEO Elect
Pages: [1]   Go Up