473,378 Members | 1,422 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,378 software developers and data experts.

HTTP Get Invoked Web Service

Hi there,

This might be a bit of a stupid question, but I am trying to invoke a
web service via a HTTP Get rather than an HTTP Post, the method has no
parameters but I need to examine the Get Header before I return my data from
the web service.

Is this possible? And if so how would one do this?

Nick.
Dec 12 '06 #1
2 1657
According to

http://www.15seconds.com/issue/010430.htm

the syntax is

http://server/webServiceName.asmx/fu...parameterValue

Unfortunately I just recieve an error, and this syntax looks exactly the
same as if I were to right click the invoke button in the test page and copy
the shortcut...

http://server/myservice.asmx/mymethod

Request format is unrecognized for URL unexpectedly ending in '/mymethod'.

Any ideas on what I might be doing wrong?

This is the same result if deployed to a web server or being run in VS 2005.

Nick.

"NickP" <ni**@nick.comwrote in message
news:ed**************@TK2MSFTNGP04.phx.gbl...
Hi there,

This might be a bit of a stupid question, but I am trying to invoke a
web service via a HTTP Get rather than an HTTP Post, the method has no
parameters but I need to examine the Get Header before I return my data
from the web service.

Is this possible? And if so how would one do this?

Nick.

Dec 12 '06 #2
it's okay, got it now, added the following section to the config file...

<webServices>
<protocols>
<add name="HttpGet"/>
</protocols>
</webServices>

Sorted :-)

Nick.

"NickP" <ni**@nick.comwrote in message
news:Ok**************@TK2MSFTNGP03.phx.gbl...
According to

http://www.15seconds.com/issue/010430.htm

the syntax is

http://server/webServiceName.asmx/fu...parameterValue

Unfortunately I just recieve an error, and this syntax looks exactly the
same as if I were to right click the invoke button in the test page and
copy the shortcut...

http://server/myservice.asmx/mymethod

Request format is unrecognized for URL unexpectedly ending in '/mymethod'.

Any ideas on what I might be doing wrong?

This is the same result if deployed to a web server or being run in VS
2005.

Nick.

"NickP" <ni**@nick.comwrote in message
news:ed**************@TK2MSFTNGP04.phx.gbl...
>Hi there,

This might be a bit of a stupid question, but I am trying to invoke a
web service via a HTTP Get rather than an HTTP Post, the method has no
parameters but I need to examine the Get Header before I return my data
from the web service.

Is this possible? And if so how would one do this?

Nick.


Dec 12 '06 #3

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

Similar topics

4
by: Jonas | last post by:
Good day, I have a .bat script I'm invoking thru a cgi script (PERL) with (NT/IIS) on a internal network. The .bat script is having problems accessing network drives, it keeps saying "Invalid...
0
by: George | last post by:
Hello, I'm running an ASPX application "WebApplication1" which consumes a web service (service1.asmx) hosted on a machine with IP (128.1.7.x) . The web service is located in the intranet. The...
0
by: fred carter | last post by:
I would like to be able to set an arbitrary http header from a SoapExtension when said extension is acting on behalf of a client. I have not seen a means for doing so. For incoming messages or...
1
by: Rachel | last post by:
I have created a simple web service in VC# that adds two numbers. It returns an integer value to the client once invoked. I used Visual Studio .NET 2003, Windows XP Pro and .NET 1.1. I created a...
0
by: Gardar | last post by:
I have a Web Service which is invoked through a HTTP GET binding. The Web Method is of the form MyWebMethod(String param1, String param2, String param3, String param4) some of these message...
2
by: Harry Whitehouse | last post by:
I'm coming from an ISAPI background and migrating code to Webservices. In the ISAPI world, there are sections of code that are invoked only once when the DLL is loaded by IIS. It's a place...
2
by: Neo The One | last post by:
This is about ASP.NET 1.0, but it may still applies to 1.1 and 2.0. We have a very large web application, some part of the code calls EXE files to do jobs. It all worked fine on Windows 2000...
0
by: dmihailescu | last post by:
the P/Invoke SetWindowLong failed with 'Access is denied' when invoked from a windows service. The service runs under the System account with the 'allow user to interact with the desktop' checked....
9
by: Nick | last post by:
Hi there, I would like to perform something like the following from my vb.net web service, being invoked via HTTP Post Call HttpContext.Current.Response.Redirect("myprotocol://myurl") ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.