Re: Calling a webmethod by a post

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Tomas (Tomas_at_discussions.microsoft.com)
Date: 09/15/04


Date: Wed, 15 Sep 2004 06:05:07 -0700

If you are using .Net 1.1, GET and POST requests to web services are
diasabled by default. Add tehe following to your web.config to allow you to
use the GET and POST verbs:

<configuration>
    <system.web>
    <webServices>
        <protocols>
            <add name="HttpGet"/>
            <add name="HttpPost"/>
        </protocols>
    </webServices>
    </system.web>
</configuration>

The KB article I've linked to below has all the information you need. I hope
that helps.

http://support.microsoft.com/default.aspx?scid=kb;en-us;819267

"Scott M." wrote:

> That is a GET request, not a POST.
>
>
> "Fabiano" <a@a.com.br> wrote in message
> news:u3T9gz2lEHA.3520@TK2MSFTNGP11.phx.gbl...
> > Please,
> >
> > i have an webservice created with .NET, and a client want to consume it
> > with
> > a JAVA client. They are using POST, but this way my webservice crash.
> >
> > They are calling this URL:
> > http:\\www.beispielseite.com.br\webservice.asmx\login?param1=xxxx&param2=yyyyyy
> >
> > using this way i get this error message: InvalidOperationException:
> > Request
> > format is unrecognized.]
> >
> > If i use the SOAP everything goes fine. And if i use the .NET sample test
> > page everything goes fine either.
> >
> >
> > What should be wrong?
> >
> > Tks,
> >
> > Fabiano
> >
> >
>
>
>