Groups | Blog | Home
all groups > asp.net webservices > november 2005 >

asp.net webservices : Help calling web service on intranet


JockeB
11/29/2005 7:30:07 AM
Hi!

I am trying to call a web service located on our Intranet but keep getting:
"Server was unable to process request. --> The request failed with HTTP
status 400: Bad Request."

Previously the same web service was located outside our intranet at a
supplier building a solution for us. I had no problem calling the web service
using basic authentication and supplying CredentialCache.DefaultCredentials
to our proxy.

We have now received a test version of the system and installed it on one of
our own servers (using Windows 2003 and integrated authentication). No matter
what I do I keep getting:

"Server was unable to process request. --> The request failed with HTTP
status 400: Bad Request."

Sample code (for creating the web service):

CodeService proxy = new CodeService();

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

proxy.InsertCode([string], [string], [string], [bool]);

I have also tried calling the web service locally on the server with the
same results.

Anyone have any suggestions on how to solve this?
--
JockeB
11/29/2005 8:18:06 AM
I can understand if it was hard for you to suggest anything in this case :)
The case is solved.

It turned out that the web service i called used another (local) web service
which had to be configured correctly (still need to investigate this with my
supplier, should have been done during installation by my supplier) to make
my call possible.
--
/JockeB - Developer


[quoted text, click to view]
AddThis Social Bookmark Button