Hi All,
I have a class library called DataAccess, this clas library is accesing few web methods. I need to test the methods of the class library "DataAccess". If I remove the web servcie call from the "DataAccesss" class library then Unit tests are working fine. But When I keep the Web service call in the method and run the unit test its giving the following error.
"Test method HireXpress.DataAccess.Test.LawLogicDataAccessClassTest.WS_SubmitNewHireTest threw exception: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required..
at System.Net.HttpWebRequest.GetRequestStream(ref TransportContext context)
at System.Net.HttpWebRequest.GetRequestStream()
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at HireXpress.DataAccess.gaurdianservice.Guardian.WS_SubmitNewHire(Int32 inComKey, String inComPW, String[] inEmpData, ref String outResultMsg) in Reference.cs: line 149
at HireXpress.DataAccess.LawLogic.LawLogicDataAccessClass.WS_SubmitNewHire(ref String outResultMsg, Int32 inComKey, String inComPW, String[] inEmpData) in LawLogicDataAccessClass.cs: line 15
at HireXpress.DataAccess.Test.LawLogicDataAccessClassTest.WS_SubmitNewHireTest() in LawLogicDataAccessClassTest.cs: line 140"
Please help me in resolving it, I am struck here. Pls help me