Wednesday, October 21, 2009

MOSS Web services Proxy classes

Some times it may so happen that you will not be able to add Web reference to the built in MOSS Web Services because of problems with adding the web reference, may be due to some web reference errors. Don't worry there is an alternative….

Since the functionality exposed by MOSS Web Services is consistent across, select any of the instance where MOSS is installed, create a proxy class using WSDL utility and change the target Url to your local server where you would like to refer.

Once the proxy class is generated within the default constructor change the target url as below:
this.Url = "http://Servername:portnumber/_vti_bin/lists.asmx";

Start with your regular object model to work with SharePoint Web Services and you are done……

No comments:

Post a Comment