简体   繁体   中英

Calling basic authentication java webservice with C# Client

I have ac# client application calling java web services. Everything works great but now i need to send some authentication data since we are trying to restrict who calls the web service. The java web service expects basic authentication.

How do i go about providing this in my c# client? I am not using WCF or WSE, just plain webservice (using Add Web Reference).

Here's a link for the solution i found in case some one needs it. I was able to fix my issue by modifying some of the stuff in the suggested article.

http://www.c-sharpcorner.com/UploadFile/pchandraker/1052/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM