C#选择Web服务帮助! [英] C# Choosing web service help!

查看:53
本文介绍了C#选择Web服务帮助!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名CS学生,即将大二!所以我没有丰富的知识.

我想制作一个可以保存并保留数据的Web服务.有什么建议?我需要一个带有一堆列表名称的列表,每个列表名称都有一个StringedList字符串.关于应该使用哪种Web服务的任何想法?我正在使用Visual Studio2010.我不知道应该使用哪个.NET框架,因为我想创建一个使用Web服务的类库,并且该类库对Visual Studio 6可见.一直在看COM Interop的东西.但是我需要决定首先使用哪种Web服务!

Hi I am a CS student turning into a sophomore! So I don''t have extensive knowledge.

I want to make a web service that can hold data and retain it. Any suggestions? I need to have a list with a bunch of list names and each list name has a LinkedList of strings. Any idea of what kind of web service I should go for? I am using Visual Studio 2010. I don''t know which .NET framework I should work on, because I want to make a class library that uses the web service, and the class library would be visable to Visual Studio 6. I have been looking at COM Interop stuff. But I need to decide which web service go first!

推荐答案

为什么要使用链接列表.您只需要使用List< string>创建静态缓存即可.或Collection< string> ...
如果重新启动Web服务,这些缓存项将被删除,因此最好创建一个简单的数据库来保存值,然后仅使用该服务充当调用应用程序和数据库之间的数据管理器.
Why would you want to use Linked Lists. You just need to create a static cache using List<string> or Collection<string>...
These cache items will be deleted if the web service is restarted, so you would be best off to create a simple database to hold the values and then just use the service to act as a data manager between your calling applications and the database.


您至少是诚实和坦率地说您的学生,所以我认为这是一项家庭作业.

哪个版本的.NET框架都没有关系,但是由于您使用的是VS2010,因此版本可能为4.0.

Web服务本身不会保留数据.数据需要保存在某个地方,通常是数据库.

LinkedList< T> [
You were at least honest and upfront saying your a student so I''ll take it this is a homework assignment.

It doesn''t matter what version of the .NET framework but since you are using VS2010 it might as well be 4.0.

A webservice itself doesn''t retain data. The data needs to be persisted somewhere, usually a database.

LinkedList<T>[^]

Remember your professor is probably monitoring this, and other sites, to see who does the work own their own and who asks for others to do it for them.


Web服务不会保存数据.它提供对其的读和/或写访问.数据本身存储在某种数据介质中,通常是数据库,但有时是平面文件.

如果要使用互操作,则应创建一个与Web服务通信的.Net程序集,然后将其接收的数据传输到不受管的C ++应用程序.

如果您想得到我的诚实意见,那么您付出的代价就超过了咀嚼的余地,您应该做一些简单的事情.毕竟,你只是大二.
A web service doesn''t hold the data. It provides read and/or write access to it. the data itself is stored in some sort of data medium, usually a database, but sometimes a flat file.

If you want to use interop, you should create a .Net assembly that communicates with the web service, and then transfers the data it receives to the unmanaged C++ app.

If you want my honest opinion, you''ve bitten off more than you can chew, and you should do something a bit simpler. After all, you''re just a sophomore.


这篇关于C#选择Web服务帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆