Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello to all of you.

I'm trying to call web services using javacript but I am unable to access services class and their methodes in javascript code.

Can anybody please tell me what I have to do, or is there any need to import any namespace to use that class?

Waiting for fast reply.
Posted
Updated 27-Sep-10 21:25pm
v2
Comments
Dalek Dave 28-Sep-10 3:25am    
Minor Edit for Grammar.

See my small article on that,

http://www.codeproject.com/Tips/103215/Webservice-Using-Javascript.aspx[^]

Hope this will clear your doubts.

Please vote and Accept Answer if it Helped.
 
Share this answer
 
Comments
nilesh.d.mankar 28-Sep-10 5:46am    
Thanks Hiren
but my web services are in different application and i want to use that...
can u help me in that context???
Are you talking about using ScriptMethods in Asp.net Ajax? You know, ScriptMethods are the web service methods that are accessible by JavaScripts. The following link might help you to check out whether you wrote your scripts and codes correctly:

http://msdn.microsoft.com/en-us/magazine/cc163499.aspx[^]
 
Share this answer
 
Comments
Dalek Dave 28-Sep-10 3:25am    
Good Answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900