Groups | Blog | Home
all groups > asp.net webservices > september 2004 >

asp.net webservices : Calling a webmethod by a post


Trebek
9/10/2004 4:04:52 PM
Well ... according to the example you have provided, they are using a GET
request. If a GET request is indeed what you would like to support, enable
it in the web.config file by adding the <HttpGet> protocol.

HTH,

Alex

[quoted text, click to view]


Fabiano
9/10/2004 4:32:05 PM
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

Scott M.
9/10/2004 5:51:52 PM
That is a GET request, not a POST.


[quoted text, click to view]

Girish bharadwaj
9/11/2004 6:25:26 AM
And of course, GET might not be acceptable if your web service needs complex
types to be passed in.


[quoted text, click to view]

ganesh_ha NO[at]SPAM yahoo.co-dot-in.no-spam.invalid
9/22/2004 7:04:20 AM
you can enable HttpPost, HttpGet, HttpPostLocalhost in machine.config
file
(c:\winnt\micrsoft.net\framework\v1.1.4322\config\)

search for protocols. and uncomment the above three.

hope it works...


regards,
ganesh
AddThis Social Bookmark Button