When i try to access external webservice i am not able to set proxy setting through my code. I can able to access the same site from emulator browser.
stockQuoteSoapClient = new
stockQuoteSoapClient.ClientCredentials.UserName.UserName = @"domain\username";
stockQuoteSoapClient.ClientCredentials.UserName.Password = "passowrd";
above throws proxy authentication required
As far as I know, not all the features in .NET Framework are supported in .NET Compact Framework.
I was not sure if stockQuoteSoapClient.ClientCredentials.UserName.UserName in your codes inherited from
ClientCredentials.UserName Property. This property is not supported in .NET Compact Framework.
Maybe you need to achieve it by yourself or find another library for .NET Compact Framework.
Also, you can follow this article to use WCF in Windows mobile.
Write an IM App with the .NET Compact Framework
I hope my suggestions can help you to solve this problem.