Thank you, Dena for a nice reply,

I am able to solve  my problem by simply adding these few lines in
Web.config file.
I have seen these lines are commented in machine.config file.
<webServices>
       <protocols>
           <add name="HttpGet"/>
           <add name="HttpPost"/>
       </protocols>
</webServices> 

-----Original Message-----
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Dean Fiala
Sent: Saturday, October 01, 2005 1:15 AM
To: [email protected]
Subject: Re: [AspNetAnyQuestionIsOk] Web Service HTTP-GET problem

You need to send parameters to the web service.  When you use the POST
method, the input elements in the form are sent to the URL specified. 
In this case whatever value you put in the Hello text box is posted to the
service.

When you use the GET method, it doesn't send along the input elements of the
form, you need to explicitly include the parameters in the URL, e.g...

http://localhost/TestApp1/Service1.asmx/SayHelloWorld?Hello=SomeValue

Here's a more detailed and technical description of the difference between
the two methods...

http://www.cs.tut.fi/~jkorpela/forms/methods.html



On 9/30/05, suneel bhimavarapu <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have Created a WebService "Service1.asmx" and  calling with HTTP-Get 
> Method it is throwing me an error when i replaced the method="GET" 
> with method="POST" and Working it worked fine.
> Any idea where I am going wrong?
>
> I have Used the following Html page to Invoke 
> ==============================================
> <html><body>simple form demonstrating HTTP-GET <form target="_blank"  
> method="GET"
> action='http://localhost/TestApp1/Service1.asmx/SayHelloWorld'>
> Say Hello: <input type="text" size="50" name='Hello'\"><br> <input 
> type=submit value="Invoke"></form></body></html>
> ==============================================
>
> Error For HTTP-GET:
> ===================
> Request format is unrecognized.
> Description: An unhandled exception occurred during the execution of 
> the current web request. Please review the stack trace for more 
> information about the error and where it originated in the code.
>
> Exception Details: System.InvalidOperationException: Request format is 
> unrecognized.
>
> Source Error:
>
> An unhandled exception was generated during the execution of the 
> current web request. Information regarding the origin and location of 
> the exception can be identified using the exception stack trace below.
>
> Stack Trace:
>
>
> [InvalidOperationException: Request format is unrecognized.]
>
> System.Web.Services.Protocols.WebServiceHandlerFactory.CoreGetHandler(
> Type type, HttpContext context, HttpRequest request, HttpResponse 
> response) +388
>
> System.Web.Services.Protocols.WebServiceHandlerFactory.GetHandler(Http
> Contex t context, String verb, String url, String filePath) +94
>    System.Web.HttpApplication.MapHttpHandler(HttpContext context, 
> String requestType, String path, String pathTranslated, Boolean 
> useAppConfig) +699
>
> System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecuti
> onStep
> .Execute() +95
>    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, 
> Boolean&
> completedSynchronously) +173
>
> _______________________________________
>
> Suneel Reddy Bhimavarapu
> Cybage Software Pvt. Ltd.,
> Pune - 411006.
> (O)+91-20-56041700 x717
> (M) +91-9890713574
> [EMAIL PROTECTED]
> _______________________________________
>
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>


--
Dean Fiala
Very Practical Software, Inc
http://www.vpsw.com


------------------------ Yahoo! Groups Sponsor --------------------~--> Get
Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links



 





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to