473,387 Members | 1,303 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Accessing a Web Service using a Query String

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.WebServiceHandlerFac tory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +388

System.Web.Services.Protocols.WebServiceHandlerFac tory.GetHandler(HttpContex
t context, String verb, String url, String filePath) +94
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +696

System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
..Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173

----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Nov 23 '05 #1
3 7632
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.WebServiceHandlerFac tory.CoreGetHandler(Type
type, HttpContext context, HttpRequest request, HttpResponse response) +388

System.Web.Services.Protocols.WebServiceHandlerFac tory.GetHandler(HttpContex
t context, String verb, String url, String filePath) +94
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +696

System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
.Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173

----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032

Nov 23 '05 #2
Erymuzuan,

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

Regards,
Jim Lewis
"erymuzuan" <er*******@yahoo.com> wrote in message
news:ur**************@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.WebServiceHandlerFac tory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +388
System.Web.Services.Protocols.WebServiceHandlerFac tory.GetHandler(HttpContex t context, String verb, String url, String filePath) +94
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +696
System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep .Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173


--------------------------------------------------------------------------

--
----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032

Nov 23 '05 #3
Hi Jim,

Here's a few things that may help.

First off, if you go into your project within Visual Studio, and then click
Debug/Start, do you get the default test page for your service? If you do,
you will find that for each method there is a link. Click on the method
you like to try, and this should take you to a page that has a button on it
(assuming you have very simple argument types), and a form that lets you
fill them in.

When you click that button, the HTTP Get protocol is used - which is
basically a query string that has the asmx address for the page where the
service lives, followed by an argument list that uses field names and
question marks just like you would expect a paramaterized query string to
look.

The HTTPGet protocol setting is something you'll find in the project's
web.config file. By default, it's always on so that the test page can be
displayed.

It isn't clear to me how this is, however, related to sending XML to a
flash movie. Flash movies aren't web services that I am aware of.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
From: "Jim Lewis" <j_*********@hotmail.com>
References: <#n*************@TK2MSFTNGP12.phx.gbl>
<ur**************@TK2MSFTNGP10.phx.gbl>
Subject: Re: Accessing a Web Service using a Query String
Date: Wed, 22 Dec 2004 07:38:39 -0800
Lines: 96
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <ec**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.webservices
NNTP-Posting-Host: adsl-69-106-205-45.dsl.irvnca.pacbell.net 69.106.205.45
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP09
.phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:8266
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices

Erymuzuan,

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

Regards,
Jim Lewis
"erymuzuan" <er*******@yahoo.com> wrote in message
news:ur**************@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.WebServiceHandlerFac tory.CoreGetHandler(Type type, HttpContext context, HttpRequest request, HttpResponse response) +388
System.Web.Services.Protocols.WebServiceHandlerFac tory.GetHandler(HttpContex t context, String verb, String url, String filePath) +94
System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
requestType, String path, String pathTranslated, Boolean useAppConfig) +696
System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep .Execute() +95
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
completedSynchronously) +173


--------------------------------------------------------------------------

--
----
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032


Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ger | last post by:
Hi, I have a problem with a Windows Service that I have created accessing System.Management.dll on a W2k3 environment. The Service runs fine on an XP machine but the same Service causes an error...
1
by: arunkv | last post by:
Hi Guys ... This problem has been bugging me for over 5 days now. I am trying to access a web service running in a Tomcat Server (a Linux box) via a C#.Net page and I get the following error: ...
4
by: Eugen Walcher | last post by:
Hello all, I've tried posting this same question on other newsgroups with no luck. This group seems to have a lot more activity so I apologize if you have seen it before. I'm trying to...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
5
by: Khalique | last post by:
Hi everyone, I Hope that someone will be able to give me a hint to the solution to my problem. I have developed a web service (vb.net) that needs to access the folders / files and copy files to...
4
by: Khalique | last post by:
I have built a web service whose purpose is to copy files from a secure place to client machine and vice versa. The problem I am having is perhaps related to permissions and access rights. For...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: Doug Caldwell | last post by:
Hi! ** Accessing the USGS Web Service Using Python ** I am trying to access the US Geological Survey's gazetteer SOAP web service using Python to find the locations of all the places with the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.