Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all
i have asp .net 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

C#
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; }

}


and my second class file
Verify.cs
C#
public class VerifyUser
{
    public string UserId { get; set; }
    public string Role { get; set; }
    public string AppUserId { get; set; }
    public string AppName { get; set; }

}


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..:) :)
Posted
Updated 5-Oct-12 2:11am
v2
Comments
bbirajdar 5-Oct-12 8:10am    
why are you using same class name 'EnrollUser' for two classes ? Are they in seperate namespaces ?
MAU787 5-Oct-12 8:11am    
sry i updated the question..:)

1 solution

You need to 'Update References' for the webservice in the Visual Studio by right clicking the 'Service References' > 'Update'
 
Share this answer
 
Comments
MAU787 5-Oct-12 8:43am    
i have already updated the reference but it is still not showing
bbirajdar 5-Oct-12 9:34am    
Okay.. Tell us what else you have tried so that we can suggest a solution which you have not tried....
MAU787 9-Oct-12 2:05am    
hi i have added both the classes in same class file and tried to use them but the class which is written first is only visible then i tried by adding the class in my code file only but still it is not visible

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900