I’m calling the GetChildren API and I’m specifying IncludeFiles = false, IncludeFolders = true, and IncludeMOBs = false.
But I’m getting back items with type = projects, folders, sequences, Apple Quicktime, masterclips, catalogs, etc… is that how it’s supposed to work? If so, what do those IncludeXXX parameters mean?
Thanks.
hwilliams,
> I’m getting back items with type = projects, folders, sequences, Apple Quicktime, masterclips, catalogs, etc…
> is that how it’s supposed to work?
No. I ran some tests and get different results with these two requests:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://avid.com/interplay/ws/assets/types">
<soapenv:Header>
<typ:UserCredentials>
<typ:Username>uuu</typ:Username>
<typ:Password>ppp</typ:Password>
</typ:UserCredentials>
</soapenv:Header>
<soapenv:Body>
<typ:GetChildren>
<typ:InterplayURI>interplay://WGC/Catalogs/MyClips/</typ:InterplayURI>
<typ:IncludeFolders>false</typ:IncludeFolders>
<typ:IncludeFiles>false</typ:IncludeFiles>
<typ:IncludeMOBs>true</typ:IncludeMOBs>
</typ:GetChildren>
</soapenv:Body>
</soapenv:Envelope>
And this:
<typ:IncludeFolders>true</typ:IncludeFolders>
I found my problem; it had to do with the way Visual Studio creates its web service proxies.
In case it's helpful to anyone, Visual Studio creates a property named "_____Specified" to indicate whether a value has been set or is supposed to be null.
So my code before looked like this:
GetChildrenType getChildrenRequest = new GetChildrenType { InterplayURI = interplayUri, IncludeFiles = includeFiles, IncludeFolders = includeFolders, IncludeMOBs = includeMobs, ReturnAttributes = AssetAttributes.All };
But once I changed it to this, it works:
GetChildrenType getChildrenRequest = new GetChildrenType { InterplayURI = interplayUri, IncludeFiles = includeFiles, IncludeFilesSpecified = true, IncludeFolders = includeFolders, IncludeFoldersSpecified = true, IncludeMOBs = includeMobs, IncludeMOBsSpecified = true, ReturnAttributes = AssetAttributes.All };
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller