When adding Service References in Visual Studio, you get similar objects and methods for both the Archive.wsdl and the Assets.wsdl (for example, CreateFolders and GetFileDetails - and their associated types). Is there any way to use the same objects for both within a project, so code doesn't have to be duplicated.
It looks like this is not possible in Visual Studio because they have diffenent Namespaces, but not sure if I'm missing something, or someone has any other ideas.
Thanks!
handtruck,
Sorry for the late reply. Although there are ways to override the name of the namespace for web service references in visual studio, this will probably lead to issues in the calls to Archive and Asset functions because they are seperate APIs.
However, in order to reduce replicated code you could create some classes that abstract this functionality. This would hide the details of the APIs, and making it cleaner for the calling code.
- Rob
Thanks for getting back to me!
I have achieved this mainly through the use of the "dynamic" keywork available in c#. It's a little dicey with knowing what I have at any given time, but since they are using the same calls, it's been working.
© Copyright 2011 Avid Technology, Inc. Terms of Use | Privacy Policy | Site Map | Find a Reseller