Problem calling method when cookieless is set to true
- From: "Polaris431" <polaris431@xxxxxxxxx>
- Date: 13 Apr 2007 01:05:16 -0700
I have an ASP.NET website that includes a web service in my project as
well. The web service is a class within my website and not a separate
project.
I am trying to call a method in my web service locally on my
development PC. If I set cookieless to true in the web.config file and
then use the test form in the browser to try out the method, the
method fails. I get the following message in the browser:
System.InvalidOperationException: Missing parameter: emailAddress
My method takes two string parameters. One is emailAddress and the
other is the password. The parameters are your basic string parameters
with no "ref" or anything else attached to the parameter signature.
When this method fails, I never even get to the breakpoint at the
beginning of the method. So this tells me that something wrong is
going on with Http Post.
But if I set cookieless to false, the method succeeds and if I have a
breakpoint set in VS, the breakpoint gets hit.
To complicate matters, in my web.config file I had to include the
following:
<webServices>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
</webServices>
If I don't not include this, I get a different message like:
Request format is unrecognized for URL unexpectedly ending in '/
LogonBasic'
So, first I correct this problem by adding the protocols but
cookieless set to true still causes the error.
What is the problem?
Thanks for your help.
Polaris
.
- Prev by Date: Re: How to expose a class in the Webservice.
- Next by Date: Re: form authentication for Webservices
- Previous by thread: Re: How to expose a class in the Webservice.
- Next by thread: Re: form authentication for Webservices
- Index(es):
Relevant Pages
|