Re: Accessing a Web Service using a Query String

From: erymuzuan (erymuzuan_at_yahoo.com)
Date: 12/22/04


Date: Wed, 22 Dec 2004 22:43:39 +0800

May be you should add the HttpGet request protocol for the Web services
<configuration>
    <system.web>
       <webServices>
          <protocols>
             <add name="HttpGet"/>
             <add type="HttpPost"/>
             <add type="Documentation"/>
          </protocols>
       </webServices>
    <system.web>
</configuration>

Regards
Erymuzuan Mustapa

Jim Lewis wrote:
> I have read several things that state accessing a Web Service through a
> Query String should work. However, when I try to execute
> http://localhost/webservice1/service1.asmx/HelloWorld I get the error below.
> Can I access a Web Service through a Query Sting. I need to send XML to a
> Flash movie using a Web Service.
>
> Thank You,
> Jim Lewis
>
> Server Error in '/WebService1' Application.
> ----------------------------------------------------------------------------
> ----
>
> 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(HttpContex
> t context, String verb, String url, String filePath) +94
> System.Web.HttpApplication.MapHttpHandler(HttpContext context, String
> requestType, String path, String pathTranslated, Boolean useAppConfig) +696
>
> System.Web.MapHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep
> .Execute() +95
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
> completedSynchronously) +173
>
>
>
> ----------------------------------------------------------------------------
> ----
> Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
> Version:1.1.4322.2032
>
>



Relevant Pages

  • Re: Accessing a Web Service using a Query String
    ... basically a query string that has the asmx address for the page where the ... Accessing a Web Service using a Query String ... > May be you should add the HttpGet request protocol for the Web services ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: error deploying web service
    ... Try deploying using the menu item on the file menu for publishing your ... >I have developed a web service on my own PC which works properly. ... >The request failed with HTTP status 400: ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Request format is unrecognized
    ... > Request format is unrecognized. ... An unhandled exception occurred during the execution of the ... > type, HttpContext context, HttpRequest request, HttpResponse response) ... > context, String verb, String url, String filePath) +92 ...
    (microsoft.public.biztalk.general)
  • Accessing a Web Service using a Query String
    ... Query String should work. ... Can I access a Web Service through a Query Sting. ... Request format is unrecognized. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Accessing a Web Service using a Query String
    ... > May be you should add the HttpGet request protocol for the Web services ... >> Query String should work. ... >> Can I access a Web Service through a Query Sting. ... An unhandled exception occurred during the execution of the ...
    (microsoft.public.dotnet.framework.webservices)

Loading