INTERACT FORUM

More => Old Versions => JRiver Media Center 22 for Windows => Topic started by: AndrewFG on August 25, 2016, 03:50:22 am

Title: Help on MCWS call syntax
Post by: AndrewFG 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..
Title: Re: Help on MCWS call syntax
Post by: jmone 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>
Title: Re: Help on MCWS call syntax
Post by: mattkhan 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>
Title: Re: Help on MCWS call syntax
Post by: AndrewFG on August 26, 2016, 03:55:29 am
Thanks for the help. I think I am suffering authentication issues...
Title: Re: Help on MCWS call syntax
Post by: jmone on August 26, 2016, 07:23:41 am
Could be, let us know if you have issue working it out.