Re: Accessing a Web Service using a Query String

From: Jim Lewis (j_jim_lewis_at_hotmail.com)
Date: 12/22/04


Date: Wed, 22 Dec 2004 07:38:39 -0800

Erymuzuan,

I do not undersand what you mean by "add the HttpGet request protocol for
the Web services"

Regards,
Jim Lewis

"erymuzuan" <erymuzuan@yahoo.com> wrote in message
news:urIE5RD6EHA.1408@TK2MSFTNGP10.phx.gbl...
> 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: The namespace, , is a duplicate error when compiling .NET Webservice
    ... Please post the entire exception, complete with stack trace and inner ... the current web request. ... mapping, String ns, Boolean isAny, XmlSchemaElement element) +762724 ... type, HttpContext context, HttpRequest request, HttpResponse response, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Event sink registration via WebDAV
    ... The exception: "The remote server returned an error Method not allowed" at line 68. ... string myExchange = "http://exdevel2k3/exchange/";; ... // Set the request timeout to 5 minutes ... Stream QueryStream = HttpWRequest.GetRequestStream; ...
    (microsoft.public.exchange2000.development)
  • Re: Problems installing Microsoft .NET Framework 1.1 Service Pack
    ... and it worked and I have filled in the request and sent it. ... An unhandled exception occurred during the execution of the ... siteName, String httpVerb, String path, String QS, String httpVersion, ... request, String site, TicketState& ticketState, String& responseHeaders) +100 ...
    (microsoft.public.windowsupdate)
  • Re: Problems installing Microsoft .NET Framework 1.1 Service Pack
    ... and it worked and I have filled in the request and sent it. ... An unhandled exception occurred during the execution of the ... siteName, String httpVerb, String path, String QS, String httpVersion, ... request, String site, TicketState& ticketState, String& responseHeaders) ...
    (microsoft.public.windowsupdate)
  • Re: HTTPWebRequest - GetResponse throws exception
    ... The Exception Status is: Receive Failure. ... > I am trying to make a HTTP request to a component on a server. ... > Dim resp As HttpWebResponse = CType, ... > at OMNI_Common.MakeCISRequest.MakeWebRequest(String URL, String ...
    (microsoft.public.dotnet.framework)

Loading