473,503 Members | 9,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling WS from Javascript

Hi Experts,

I have written a .net Web Service. I want to invoke a web method from the
webservice, pass parameters to the webservice and get the resultant value
from the web service using javascript.

Can anyone tell me how to achieve this task?

Please Help....

Thanking you in advance

Regards
Ganesh
Nov 19 '05 #1
5 1199
Take a look at:

http://builder.com.com/5100-6389-105...ml#Listing%20B
"Ganesh Ramamurthy" <ga****@kottsoftware.com> wrote in message
news:OH**************@TK2MSFTNGP12.phx.gbl...
Hi Experts,

I have written a .net Web Service. I want to invoke a web method from the
webservice, pass parameters to the webservice and get the resultant value
from the web service using javascript.

Can anyone tell me how to achieve this task?

Please Help....

Thanking you in advance

Regards
Ganesh

Nov 19 '05 #2
> I have written a .net Web Service. I want to invoke a web method from the
webservice, pass parameters to the webservice and get the resultant value
from the web service using javascript.

You can use Microsofts WebService Behavior found here:
http://msdn.microsoft.com/library/de...e/overview.asp

If you need to pass complex datatypes check out my article on serializing
objects between javascript and an XML webservice here:
http://dotnetjunkies.com/WebLog/anor.../13/21962.aspx

You might also be interested in these slides explaining different methods
for javascript based browser -> server communication (including web
services):
http://dotnetjunkies.com/WebLog/anor.../27/29972.aspx

Anders Norås
http://dotnetjunkies.com/weblog/anoras
Nov 19 '05 #3
Thanx Prateek for your reply.

I tried the same code out

Request format is unrecognized.

Can you tell me what this is??

Thanx in Advance
Regards
Ganesh

"Prateek" <pr******@grapecity.com> wrote in message
news:ef**************@tk2msftngp13.phx.gbl...
Take a look at:

http://builder.com.com/5100-6389-105...ml#Listing%20B
"Ganesh Ramamurthy" <ga****@kottsoftware.com> wrote in message
news:OH**************@TK2MSFTNGP12.phx.gbl...
Hi Experts,

I have written a .net Web Service. I want to invoke a web method from the webservice, pass parameters to the webservice and get the resultant value from the web service using javascript.

Can anyone tell me how to achieve this task?

Please Help....

Thanking you in advance

Regards
Ganesh


Nov 19 '05 #4
use webService.htc behavior or xmlhttp. i prefer xmlhttp. you will need to
find more document in msdn spending some time
Nov 19 '05 #5
Thanx Hobug for the reply

"hobug" <ho***@126.com.(donotspam)> wrote in message
news:05**********************************@microsof t.com...
use webService.htc behavior or xmlhttp. i prefer xmlhttp. you will need to
find more document in msdn spending some time

Nov 19 '05 #6

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

Similar topics

7
4496
by: Julia Briggs | last post by:
Hello World - I admit I'm new to javascript but I've tried for days to find a solution to my problem. Basically I have 3 unique javascript files that do different screen display events that I...
18
12635
by: Simula | last post by:
I am developing an HTML javascript application and I want to preserve state in a way that can be book-marked. I chose HTML anchors as a means of preserving state. When the application changes...
5
51475
by: Krishna | last post by:
Hi all, Can i call my javascript functions from the web controls.Any appropriate site which will be tell more on this will be helpfull. Regards.., Krishna
1
1924
by: desmcc | last post by:
Hi, I am launching a modal dialog through the usual javascript (window.showmodaldialog). When the modal dialog is complete (ie user selects OK), the calling page then refreshes itself by setting...
4
6298
by: Martin Feuersteiner | last post by:
Dear Group I'm using VB to write an aspnet application. I would like to call a javascript function from within a VB Sub or VB Function, is it possible? My code is something like this: VB...
13
6663
by: ukrbend | last post by:
I'm new to Javascript and to html and am trying to make the following code snippet work but it doesn't. It refuses to call the getPage() function and I always get a 404 error. I know the code is...
3
3560
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
4
2799
by: Adam Smith | last post by:
Hello, How can I call or trigger an external javascript twice in a form? I have <script language="JavaScript" src="country_state.js" name="Country_State"> <script type="text/javascript"...
5
3233
by: Newbie Coder | last post by:
Hello all I have 3 functions in a javacrip file (MyScript.js), which is added to an ASP.NET 2.0 project 1) no right-click 2) no select text (copy...) 3) History.Back()' How do I call...
6
10616
by: Ajit Goel | last post by:
Hi; We have a Javascript function which I have been tasked to move to a CSharp class. This javascript function uses Regular expression extensively. This function has a string input parameter and...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6975
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...
0
5562
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.