Re: Accessing a Web Service using a Query String
From: erymuzuan (erymuzuan_at_yahoo.com)
Date: 12/22/04
- Next message: cipher: "RE: How can I expose constant values to my clients?"
- Previous message: cipher: "RE: How can I expose constant values to my clients?"
- In reply to: Jim Lewis: "Accessing a Web Service using a Query String"
- Next in thread: Jim Lewis: "Re: Accessing a Web Service using a Query String"
- Reply: Jim Lewis: "Re: Accessing a Web Service using a Query String"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: cipher: "RE: How can I expose constant values to my clients?"
- Previous message: cipher: "RE: How can I expose constant values to my clients?"
- In reply to: Jim Lewis: "Accessing a Web Service using a Query String"
- Next in thread: Jim Lewis: "Re: Accessing a Web Service using a Query String"
- Reply: Jim Lewis: "Re: Accessing a Web Service using a Query String"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|