1 Reply Latest reply: Aug 19, 2012 12:50 PM by 786369 RSS

    DRM Web Service

    953113
      Hello,

      We have successfully installed the DRM web service internally and now I am having some issues consuming it. I am using Visual Studio 2010. I was able to set up a proxy to the WSDL, but when I simply try to return a hier with the getHier capability, I'm not having any success: My code looks like:

      lblMessage.Text = myDRM.getHier("testversion", "test hier")

      Visual Studio is telling me that getHier cannot be converted to a String. Maybe I don't understand what getHier is going to return?
        • 1. Re: DRM Web Service
          786369
          Excerpted from the API Guide 11.1.2.2:

          Operation: getHier

          Input Parameters:
          string versionName: Version name field.
          string hierName: Hierarchy name field.

          Output Parameters:
          HierType hier: The hierarchy object type.


          Now we need the definition of the output parameter: hier:

          Type: HierType
          Fields:
          string versionName: Version name field.
          string name: The name of the hierarchy.
          ...


          So your code needs to look more like:

          myHier: HierType

          myHier = myDRM.getHier("testversion","test hier")
          lblMessage.Text = myHier.Name