473,545 Members | 2,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Services and UDDI

I am querying an internal UDDI server for a web service URL using C#.
Initially, the UDDI server was configured for Windows Integrated
authentication and it worked fine. When I changed it to UDDI
authentication (Basic in IIS) the code fails with "HTTP Status 401:
Unauthorized".

I am sending in the credentials of a valid administrative user on the
system. When I use these same credentials on the browser, it works
fine.

Code snippet below. Any help would be greatly appreciated!

UddiConnection uc = new UddiConnection( );
uc.PublishUrl = "http://myserver/uddi/publish.asmx";
uc.Authenticati onMode =
Microsoft.Uddi. AuthenticationM ode.UddiAuthent ication;
uc.Username = "admin";
uc.Password = "adminPassword" ;

SaveTModel stm = new SaveTModel();
// More TModel stuff...

// Send the TModel data to the UDDI server
TModelDetail tmd = stm.Send(uc); // This triggers the Unauthorized
exception
Thanks,
Cindy

Jan 12 '06 #1
0 1167

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

Similar topics

4
1676
by: Randy | last post by:
Hello, I'm trying to dynamically create a WebService object and assign the service URL and hit the server and pull back any services available from that server. I'm not finding any useful examples (source). Can someone please get me started in the right direction. Thanks Randy
1
345
by: Chris | last post by:
I was told by someone that all web services must be registered with UDDI before they will function. I created a web service on my local server and it works fine so I don't see any reason why UDDI would be a requirement if you know the exact location of the web service you are trying to access. Am I wrong? Chris
1
3219
by: Grey | last post by:
I have developed serveral web services in intranet. I am going to place these web services in one server. Do I need to set up a UDDI server in order to let other development PCs to get the services?? If so, how to set up UDDI server in Win2K Standard as I am not going to use Win2003 server at this moment. Moreover, If I need to allow internet...
1
1763
by: Ben Bloom | last post by:
Hi there, I've been experimenting with using UDDI at runtime using the MSDN example at http://msdn.microsoft.com/library/en-us/dnuddi/html/runtimeuddi1.asp I keep getting a 401 when I try to contact the UDDI server. It happens in the RefreshcacheFromUDDI() method defined in the article. private bool RefreshCacheFromUDDI()
1
1099
by: Selva | last post by:
Hi All, how can I get the list of all web services a web server hosts? (just like port scanning). Thanks Selva.
1
1788
by: Richard Money | last post by:
Is it possible to list the web services on my local machine, or on another machine, without setting up UDDI? I want to do essentially the same as the "Add Web Reference" wizard in VS.NET 2005. I also want to do something equivalent to reflection to get the web method signatures.
2
2498
by: dmckeon | last post by:
I am attempting to query a Microsoft UDDI registry using C# in Visual Studio 2005. I keep getting build errors that say "The type or namespace 'Uddi' does not exist in the namespace 'Microsoft'". I installed the platform SDK and ran UddiSdkRegister to register the UDDI SDK, but it didn't help. I get errors when I run UddiSdkRegister saying...
1
1466
by: John Paul. A | last post by:
Hi, I have a 3rd party web service running in a Web Server within our network. The web service sends "Hello" message when joins the network and also sends "Bye" message when leaves the network. I want to write a client code to receive the "Hello" message as well as the "Bye" message sent by the web service. Can you please suggest me a...
1
2693
by: =?Utf-8?B?U29yaW4gRG9saGE=?= | last post by:
Hello, I have two related questions: 1. Our company hosts a couple Web services that are public, and free to use for anybody (http://DlhSoft.com/WebServices/NewsService.asmx and http://DlhSoft.com/WebServices/ProductsService.asmx). However we are unable to find the Microsoft's public UDDI registry (I found in a few search engines that...
0
7496
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7685
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7941
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6014
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5354
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5071
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3485
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3467
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1916
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.