Search code examples
c#asp.netweb-servicessharepoint-2003

How to call a web service from data layer


I have a data layer project which receives a byte array that needs to be persisted. The byte array will be stored in Sharepoint 2003, so I'd like to be able to call a SP web service from within the data layer (keeping all persistence in this layer).

Here's the approach I am considering, if there are any comments on it. http://blogs.msdn.com/erikaehrli/archive/2006/05/04/SharePointUploadHelper.aspx

My question is, Is it possible to add a web service (not WCF) reference to a non-web project? I don't see the option in Visual Studio.


Solution

  • After looking further, it appears that you can add a "service reference", then click the "advanced" tab, where you can then add a web service reference.