473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Accessing a known Web Service url from a .NET application

I am getting the credential dialog screen asking for user id, password and
domain when adding a web reference ( a known Web Service url which is a
static ip address link from a remote .NET application ). I have set
anoynomous user rights in the IIS where my web service resides.. I can view
the web service in the IE..

I want to access it from .NET client. Please help me out.
Satish

Oct 3 '06 #1
2 1315
You want to access the web service from a .NET client and you need to pass
the credentials it sounds like. Perhaps -

MyApp.MyService.Service s = new MyApp.MyService.Service();

NetworkCredential cr = new NetworkCredential("username", "password",
"domain");
s.Credentials = cr;

"SATISH RAMACHANDRA" wrote:
I am getting the credential dialog screen asking for user id, password and
domain when adding a web reference ( a known Web Service url which is a
static ip address link from a remote .NET application ). I have set
anoynomous user rights in the IIS where my web service resides.. I can view
the web service in the IE..

I want to access it from .NET client. Please help me out.
Satish


Oct 4 '06 #2
Hi David

I am getting the credential dialog bix when i

(i) click add web reference in the .NET windows application and
(ii) paste the url for e.g http://192.123.123.123/test/myservice.asmx
(iii) and click Go
Please not that 192.123.123.123 is a static IP address and everything works
fine in a LAN network..


"David++" wrote:
You want to access the web service from a .NET client and you need to pass
the credentials it sounds like. Perhaps -

MyApp.MyService.Service s = new MyApp.MyService.Service();

NetworkCredential cr = new NetworkCredential("username", "password",
"domain");
s.Credentials = cr;

"SATISH RAMACHANDRA" wrote:
I am getting the credential dialog screen asking for user id, password and
domain when adding a web reference ( a known Web Service url which is a
static ip address link from a remote .NET application ). I have set
anoynomous user rights in the IIS where my web service resides.. I can view
the web service in the IE..

I want to access it from .NET client. Please help me out.
Satish

Oct 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Lorz | last post by:
Hello, I have a simple problem. I got two visual studio projects, one is an application, the other a common windows service. The application needs to get a remote reference of the service. Now...
5
by: Niloday | last post by:
Hi All, I am trying to access a mapped network drive from a service that I have created. The service needs to create/delete folders/files on a network drive. When I tried to connect to a...
4
by: Eugen Walcher | last post by:
Hello all, I've tried posting this same question on other newsgroups with no luck. This group seems to have a lot more activity so I apologize if you have seen it before. I'm trying to...
0
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
1
by: vineet.jsl | last post by:
Hello Everybody, i am facing some problem in accessing secured web service. i have some experience with web services but not with Secured web services. Actually what i have to do is, first, i...
10
by: Anton | last post by:
Hi, when accessing a secured 3rd party webservice i'm getting a 401 HTTP Statuscode (unauthorized). When entering the url in a browser and entering the username and password manually, the wsdl is...
1
by: =?Utf-8?B?U2FqaQ==?= | last post by:
Hi, From my site can i access a webservice which is in a different domain and also vice versa (ie. if i create a webservice in my site can somebody access it from different domain.) I'm new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.