By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,627 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,627 IT Pros & Developers. It's quick & easy.

Web Services and UDDI

P: n/a
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.AuthenticationMode =
Microsoft.Uddi.AuthenticationMode.UddiAuthenticati on;
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.