大家好 我有asp Web服务,我将其添加为控制台应用程序中的Web参考. 我在我的Web服务中添加了一个类文件,发布了Web服务,并将其添加到控制台中,并试图访问该类,它正在工作. 然后我添加另一个类文件并发布Web服务,并在控制台中对其进行更新并尝试访问它.它不可见.. 我的第一堂课文件: Enroll.cs
hi all i have asp web service which i am adding as a web reference in console application. i have added one class file in my web service, publish web service and added into the console and tried to access that class, it was working. then i add another class file and publish web service and updated it in console and tried to access it. it is not visible.. my first class file: Enroll.cs
public class EnrollUser { public string UserId { get; set; } public string Depatment { get; set; } public string Role { get; set; } public string AppUserId { get; set; } public string AppName { get; set; } public string AppPassword { get; set; } }还有我的第二堂课文件 Verify.cs
and my second class file Verify.cs
public class VerifyUser { public string UserId { get; set; } public string Role { get; set; } public string AppUserId { get; set; } public string AppName { get; set; } }这两个类都是公共的,我正在通过Web服务访问它们,但是第二个类在控制台应用程序中不可见. 请帮忙.. 多谢并回覆. 上帝保佑大家.. :):)
both classes are public i am accessing them from web services but second one is not visible in console application.. please help.. Thanx and reply. God bless u all..:) :)
推荐答案您需要在Visual Studio中通过右键单击服务"来为Web服务更新引用".参考文献''> 更新" You need to ''Update References'' for the webservice in the Visual Studio by right clicking the ''Service References'' > ''Update''
更多推荐
无法从Web服务访问类文件
发布评论