I have following working code (for consuming a WCF service).
SecurityRoleWebService is a namespace.
SecurityWebserviceManagerImplClient is a class corresponding to a WCF service.
getSecurityRoles() is a method corresponding to service operation.
When I add the namespace as
using SecurityRoleWebService
I am getting the following error:
Error: The type or namespace name 'SecurityRoleWebService' could not be found (are you missing a using directive or an assembly reference?)
Why is it so? How to overcome this?
SecurityRoleWebService.SecurityWebserviceManagerImplClient proxySecurityRole = new SecurityRoleWebService.SecurityWebserviceManagerImplClient();
SecurityRoleWebService.SecurityRole[] roles = proxySecurityRole.getSecurityRoles(userID);
string roleName = roles[0].roleName;