Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2004

Tip: Looking for answers? Try searching our database.

Calling a webmethod by a post

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fabiano - 10 Sep 2004 20:32 GMT
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
Trebek - 10 Sep 2004 21:04 GMT
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

> 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.]
[quoted text clipped - 7 lines]
>
> Fabiano
Girish bharadwaj - 11 Sep 2004 11:25 GMT
And of course, GET might not be acceptable if your web service needs complex
types to  be passed in.

> 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
[quoted text clipped - 11 lines]
> >
> > 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
[quoted text clipped - 8 lines]
> >
> > Fabiano
Scott M. - 10 Sep 2004 22:51 GMT
That is a GET request, not a POST.

> Please,
>
[quoted text clipped - 17 lines]
>
> Fabiano
ganesh2211 - 22 Sep 2004 13:04 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.