473,386 Members | 1,799 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,386 software developers and data experts.

Calling third party Webservice generates 401 Unauthorized

Hi!

We are calling a webservice in a third party application for
integration purposes.

The scenario is that messages arrive on msmq. We have a windows service
(using a domain account) receiving the messages and calls the
webservice (using integrated security).

The symptom we see is that if many messages arrive at the same time the
first message will get a 401 Unauthorized from the webservice while the
other will work as expected.

Has anyone experienced something similar?
Does anyone have a suggestion on how to solve this?

All I can find is that I am supposed to supply my credentials, which I
do (see below):

CodeService proxy = new CodeService();

GlobalProxySelection.Select.Credentials =
CredentialCache.DefaultCredentials;
proxy.Credentials = CredentialCache.DefaultCredentials;
proxy.PreAuthenticate = true;

proxy.InsertCode(type, code, name, active);
Regards
JockeB

Oct 16 '06 #1
0 1561

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

Similar topics

0
by: ALI-R | last post by:
Hi All, I have a webservice on a win 2003 server and I'm trying to call it from another win2003 server which is hosting my sharepoint portal server. I am trying to call that webservice from a...
1
by: mithu | last post by:
I have a web service(C#) which involves processing lot of information thru a third party component. I have couple of issues with my web service. Issue 1: My web service calls a third party...
3
by: Henrik | last post by:
Hi all,,, I need to get a refferece to a XML-webservice, and get some data from it.... But I can't add it like an web-refference... What options does I else have?? I've been told that i've to...
3
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb)....
0
by: webguard | last post by:
Hi, i have a third party web service proxy, which i am calling it from a com+. The problem i face is when the third party system is hung, my com+ gets hanged. when i mentioned the timeout of...
2
by: Richard B | last post by:
I added a .NET dll as a reference to my new .NET dll. When I went to build, I received error "Unable to emit assembly: Referenced assembly 'CrystalReport' does not have a strong name". ...
0
by: Karl Prosser | last post by:
i am having problems setting the 'credentials' to call a webservice.. i have the WSDL and successfully have created a proxy , and the right code to call the webservice, other than setting the...
0
by: Peter van der veen | last post by:
Hi I have a problem in VB.net 2.0 We are using a third party webservice. I have loaded the wsdl file and can access the functions the service has. Now this party wants that we add a SOAP...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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,...
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...

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.