How to create a Tessitura proxy class from the command line

Former Member
Former Member $organization

Visual Studio makes it easy to create a "proxy class" for interacting with the Tessitura web API. Just right-click "References" and choose "Add Web Reference...", and then direct it to your tessitura.asmx file via HTTP. If you name the web reference "TessituraWebAPI", then you can create a Tessitura web API client with a simple: TessituraWebAPI.Tessitura TessClient = new TessituraWebAPI.Tessitura();

If you're not using Visual Studio and want to interact with the web API in this object-oriented fashion, it's easy to create the proxy class from the command line. Note: You may need to add the location of wsdl.exe and csc.exe to your PATH.


    wsdl http://...url_of_your_tessitura.asmx...

This generates code for a C# proxy class, Tessitura.cs, that you can include when compiling your own project. You can compile this to an assembly (.dll) and drop it into the "bin" folder of any ASP.NET site:


    csc /target:library Tessitura.cs

I created a simple C# application that spits out the web API's diagnostic information:


    class Test
    {
        public static void Main()
        {
            Tessitura Tess = new Tessitura();
            System.Console.WriteLine(Tess.GetAPIDiagnostics());
        }
    }

You can compile the above application using the command line:


    csc test.cs Tessitura.cs

I hope this helps someone who is new to all this.