Re: Calling a webmethod by a post
From: Tomas (Tomas_at_discussions.microsoft.com)
Date: 09/15/04
- Next message: Tomas: "RE: Windows Client using Generated WS Proxy"
- Previous message: Patrick: "Re: Calling a WS-Security web-service from ASP Application via ASP.NET or .NET Class using interop"
- In reply to: Scott M.: "Re: Calling a webmethod by a post"
- Next in thread: ganesh2211: "re:Calling a webmethod by a post"
- Messages sorted by: [ date ] [ thread ]
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¶m2=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
> >
> >
>
>
>
- Next message: Tomas: "RE: Windows Client using Generated WS Proxy"
- Previous message: Patrick: "Re: Calling a WS-Security web-service from ASP Application via ASP.NET or .NET Class using interop"
- In reply to: Scott M.: "Re: Calling a webmethod by a post"
- Next in thread: ganesh2211: "re:Calling a webmethod by a post"
- Messages sorted by: [ date ] [ thread ]