You need to pass your crendtial also while calling webservice
Please take a look in this link you will get an idea
http://www.codeproject.com
also giving you some sample code
My.Fully.QualifiedNameSpac
My.Fully.QualifiedNameSpac
WebProxy p = null;
string proxyAddressAndPort = ConfigurationSettings.AppS
string proxyUserName = ConfigurationSettings.AppS
string proxyPassword = ConfigurationSettings.AppS
ICredentials cred = new NetworkCredential(proxyUse
p = new WebProxy(proxyAddressAndPo
service.Proxy = p;
Main Topics
Browse All Topics





by: pstrongPosted on 2008-09-04 at 20:32:40ID: 22395044
In VS2008, to add a "Web Reference", you need to:
1. right click on the project and select "Add Service Reference"
2. click on the "Advanced" button down the bottom of the form
3. click "Add Web Reference" down the bottom of the form
After that things are mostly similar to VS2005 from what I have found...
Hope this helps!
Peter