简体   繁体   中英

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.

进一步查看之后,您似乎可以添加“服务引用”,然后单击“高级”选项卡,然后可以在其中添加Web服务引用。

Jeremy, just saw your correct answer. For screen shots see:

http://carlosfemmer.com/post/2008/01/How-to-add-web-reference-in-VS-2008-Project.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM