Jump to content

Problem with calling webservice using javascript !!!


Recommended Posts

Hi all,I want to call a webservice from HTML page using javascript.But I encountered an error:"Object doesn't support this property or method".This error is caused by init function :function Init(){ service.useService("http://localhost/CNLTHD/UniInfoLookup/Service.asmx?WSDL","GetMarksService"); }In body tag,I added :<body onload="Init();" id="service" style="behavior(url:webservice.htc)" onresult="showResult()">My webservice is written in C# ,contained in file Service.asmx Can you help me ?Thank you so much !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...