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

How to access a webservice from a browser?

I have made my first webservice whic can be called in a browser:
http://localhost/webquote/calc.asmx?op=QuoteParams

I get a screen with input for parameters and a Invoke-button.
After pressing it gives me the result (=cost price).
This works fine for testing.

Now I want to call this webservice from a browser.
Something like:
http://localhost/webquote/calc.asmx/...t&Quantity=100

This throws me the following error:
Exception Details: System.InvalidOperationException: Request format is
unrecognized.

How can I call this webservice from a browser using parameters?
(next step will be calling the webservice with a xml-file with QuoteXML, in
which an xmlString is required).

Thanks for your help,
Frans

Feb 1 '06 #1
1 11863
In the web.config I added:
<webServices>
<protocols>
<add name="HttpGet" />
<add name="HttpPost" />
</protocols>
</webServices>

Now I don't get an error anymore.

"Frans" wrote:
I have made my first webservice whic can be called in a browser:
http://localhost/webquote/calc.asmx?op=QuoteParams

I get a screen with input for parameters and a Invoke-button.
After pressing it gives me the result (=cost price).
This works fine for testing.

Now I want to call this webservice from a browser.
Something like:
http://localhost/webquote/calc.asmx/...t&Quantity=100

This throws me the following error:
Exception Details: System.InvalidOperationException: Request format is
unrecognized.

How can I call this webservice from a browser using parameters?
(next step will be calling the webservice with a xml-file with QuoteXML, in
which an xmlString is required).

Thanks for your help,
Frans

Feb 1 '06 #2

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

Similar topics

3
by: Jon Glazer | last post by:
I was looking for thoughts on having a piece of a web page updated when a button or drop down is selected. The update would have to be via the results of a database lookup/query. Any ideas on...
0
by: Lothar Steidle | last post by:
Hi, I want to access a webservice with SSL through a proxy (like squid) which needs authentication. If the webservice also needs authentication i am unsure how to do this. Thanks for any...
1
by: Marc Eggenberger | last post by:
Hi there .. I have the following scenario. I have a Webservice which is running under Win2003/IIS6 with .Net1.1 The Service itselfs connects to a database which is a SQL 2000 on a Server in...
1
by: kamig | last post by:
Hey! guys i have this annoying question i have upgrade my webService project from visual studion.NET 2003 to 2005 but the problem is tht i cant access my webService directly from iis mmc by click...
0
by: quocvuong2005 | last post by:
Hi all ! I have a webservice that contains a Helloworld() method (This return a string type ) and a asp.net application . I call Helloworld method from webservice , it works fine . but when i call...
1
by: praveenrn | last post by:
Hi, Iam running a webservice in my local machine and wrote dii client to contact it. it was able to do it. But the problem is when i try to contact the server which is at some other location...
0
by: =?Utf-8?B?Q8Op?= | last post by:
Something got all messed up, whenever i make a webservice, and run it. I can access it in my browser if i use "localhost" or "127.0.0.1" eg: http://localhost:1087/WebSite1/Service.asmx works fine...
3
by: PerumalSamy | last post by:
Hi, I need to create a form with browse button, to browse and copy the files in local system to my webpage textbox. how can i write codings? I am in asp.net platform and using vb coding to...
2
by: Jay | last post by:
Hello, I have created a simple web service and I have deployeed it in IIS server. I have 2 versions of ASP.NET 1.1.4322 and 2.0. But when I access webservice I get error.. Server Application...
1
by: gihan | last post by:
Hi, I have a problem accessing remote webservice from my asp code. Instead of returning results, it returns list of web methods it has. Wonder where i'm doing wrong. Also note that, this is a...
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:
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.