I am trying to create a class library which uses the Mappoint web service.

I was able to successfully use Mappoint in a web page and in that page there was:

// Create a global object to initialize MapPoint .NET objects.
YourClass.Global global = (YourClass.Global)Context.ApplicationInstance;

How do I have similar code in the class library in order to initialize MapPoint .NET objects? Or is it not needed? I have added a web reference to the MapPoint web service in the class library

Any ideas please