Try tracing the request at the web service (trace.axd feature). You can
see the XML on the wire if you add a SOAP trace utility (available on
gotdotnet) to your web.config on the service side. Also, try tracing the
method call itself by opening the web service project and running it under
debug. Set a break point in the method you are calling. This may be a
problem with something the web method itself is trying to do that it
doesn't have permissions to do.
How did you build the client? Did you try refreshing your proxy code?
Some clues: HTTP 405 is not a valid SOAP exception. Is it possible that
the server itself is not properly configured? What happens when you run
the .NET configuration utililities found in control panel?
Dan
--------------------
From: "rk325" <ro************@softwareservices.net>
Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es,
microsoft.public.dotnet.framework.webservices
Subject: HTTP status 405: Method not allowed
Date: 15 Dec 2004 11:03:50 -0800
Organization:
http://groups.google.com
Lines: 39
Message-ID: <11********************@c13g2000cwb.googlegroups.c om>
NNTP-Posting-Host: 68.216.171.58
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1103137435 3971 127.0.0.1 (15 Dec 2004 19:03:55
GMT)
X-Complaints-To:
gr**********@google.com
NNTP-Posting-Date: Wed, 15 Dec 2004 19:03:55 +0000 (UTC)
User-Agent: G2/0.2
Complaints-To:
gr**********@google.com
Injection-Info: c13g2000cwb.googlegroups.com; posting-host=68.216.171.58;
posting-account=Wrg09g0AAACwvkCCMBaEoK07BSZc_Kbd
Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!news-out.cwi
x.com!newsfeed.cwix.com!news.maxwell.syr.edu!postn ews.google.com!c13g2000cwb
.googlegroups.com!not-for-mail
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8118
microsoft.public.dotnet.framework.aspnet.webservic es:27225
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
Yes, I've seen many posts about this type of error, and none of the
solutions people applied worked for me. So please read this one
carefully and help me if you can.
I have a web service application installed in a Windows 2000 SP4 Domain
control server. It is running IIS 5.0. I can access the WS from its own
web page, and, when I access it from the server where it is installed,
I can run its methods.
However, I cannot access this WS from an ASP.NET web application. The
error I get is:
The request failed with HTTP status 405: Method not allowed.
: : :
Exception Details: System.Net.WebException: The request failed with
HTTP status 405: Method not allowed.
yes, the stack trace tells me that it crashes on the first WS method
the web site tries to hit.
The WS has been setup to accept 1) Anonymous Access, 2) Integrated
Windows Authentication.
In the code to access this WS I am passing the credentials to access
the WS......and if the credentials are incorrect (e.g. typo) I get the
"401: Access Denied" error.
The domain control server, had already IIS installed when I installed
the .NET 1.1 Framework. But when I looked at the users I cannot find
the ASPNET user anywhere. I also tried running "aspnet_regiis -i" then
"iisreset", and no luck, still the same 405 error.
Without the ASPNET user, I tested this server by running the simple
Hello World asp.net application; it ran find. I even tested it with a
more complex application that queries the local SQL server db and it
worked fine. So I guess I do not need the ASPNET user, or do I?
Please I've been pulling my hair for 2 days already on this issue, and
do not know how to solve it.