tag:help-archives.hannonhill.com,2010-02-09:/discussions/web-services/1633-question-on-reading-cascade-file-metadata-programmatically-in-cCascade CMS: Discussion 2016-08-15T12:45:16Ztag:help-archives.hannonhill.com,2010-02-09:Comment/403191772016-08-11T12:46:42Z2016-08-11T12:46:42ZQuestion on Reading Cascade file metadata programmatically in C#<div><p>Hi Slava,</p>
<p>I have never worked with Java or C# when dealing with Cascade
web services. I just want to point out a few things. First,
<code>file.metadata.dynamicFields</code> could be null, or an
object, or an array. So first you need to test if it is null. If it
is not, then test if it is an array of objects. If it is an array,
you need to traverse it. When you are down to an object, look at
the <code>name</code>. If the <code>name</code> matches what you
are looking for, then look at <code>fieldValues</code>. Again, this
can be null, an object, or an array. See <a href="http://www.upstate.edu/cascade-admin/web-services/api/asset-classes/file.php">
http://www.upstate.edu/cascade-admin/web-services/api/asset-classes...</a>
for reference.</p>
<p>Second, you might want to look at my PHP library. Even though
you don't want to use PHP, my library will give you a lot of
pointers and answer most, if not all, of your questions related to
Cascade web services. My documentation site contains even more
information.</p>
<p>Third, you can install MAMP on any computer, deploy my PHP
library, and use it to write ws programs in PHP. There are many
advantages of using my library. It comes with full documentation,
tutorials, tons of examples, and a discussion forum.</p>
<p>Four, I plan to deliver a second series of web service tutorials
on Google Hangout. We will start with the installation of MAMP and
deployment of my library. Let me know if you are interested.</p>
<p>Wing</p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/403191772016-08-11T14:36:11Z2016-08-11T14:36:11ZQuestion on Reading Cascade file metadata programmatically in C#<div><p>Thanks Wing.</p>
<p>I’ve forwarded your reply to Slava.</p>
<p>Warm regards,</p>
<p>R</p></div>rommel.lagmantag:help-archives.hannonhill.com,2010-02-09:Comment/403191772016-08-11T17:11:41Z2016-08-11T17:11:41ZQuestion on Reading Cascade file metadata programmatically in C#<div><p>This was posted in Hannon Hill Users Slack, and I am posting it
here again:</p>
<p>Some quick references:<br>
1. PHP web service library: <a href="https://github.com/wingmingchan/php-cascade-ws-ns">https://github.com/wingmingchan/php-cascade-ws-ns</a><br>
2. Library API documentation: <a href="http://www.upstate.edu/cascade-admin/web-services/api/index.php">http://www.upstate.edu/cascade-admin/web-services/api/index.php</a><br>
3. Tutorials: <a href="http://www.upstate.edu/cascade-admin/web-services/courses/index.php">
http://www.upstate.edu/cascade-admin/web-services/courses/index.php</a><br>
4. Google hangout recordings: <a href="https://www.youtube.com/playlist?list=PLiPcpR6GRx5cGyfQESK6ZAj4My8rJidt4">
https://www.youtube.com/playlist?list=PLiPcpR6GRx5cGyfQESK6ZAj4My8r...</a><br>
5. Examples and recipes: <a href="https://github.com/wingmingchan/php-cascade-ws-ns-examples">https://github.com/wingmingchan/php-cascade-ws-ns-examples</a><br>
6. Cascade Web Services Library Support: <a href="https://groups.google.com/forum/#!forum/cascade-web-services-library-support">
https://groups.google.com/forum/#!forum/cascade-web-services-librar...</a></p></div>Wing Ming Chantag:help-archives.hannonhill.com,2010-02-09:Comment/403191772016-08-11T17:25:10Z2016-08-11T17:25:10ZQuestion on Reading Cascade file metadata programmatically in C#<div><p>Thanks Wing.</p>
<p>Regards,</p>
<p>Rommel</p></div>rommel.lagman