How to make WCF call from html file?

i am new to wcf and below is what the WCF WSDL returns, my question is, how to call a WCF service from html page?

 <wsdl:definitions name="MyService" targetNamespace="" xmlns:wsdl="" xmlns:soap="" xmlns:wsu="" xmlns:soapenc="" xmlns:wsam="" xmlns:tns="" xmlns:wsa="" xmlns:wsp="" xmlns:wsap="" xmlns:xsd="" xmlns:msc="" xmlns:wsaw="" xmlns:soap12="" xmlns:wsa10="" xmlns:wsx="">
  - <wsdl:types>
    - <xsd:schema targetNamespace="">
      <xsd:import schemaLocation="http://..../tools/MyService.svc?xsd=xsd0" namespace="" />
      <xsd:import schemaLocation="http://..../tools/MyService.svc?xsd=xsd1" namespace="" />
      <xsd:import schemaLocation="http://..../tools/MyService.svc?xsd=xsd2" namespace="" />


like so:

            url: "/tools/MyService.svc/Getist",
            type: "GET",
            context: document.body,
            contentType: 'application/json; charset=utf-8',
            datatype: 'json',
            success: function (data) {
                // do something

I am not sure about parameters - they will go after Getist in the URL, but I don't know their names - they are stored in /tools/MyService.svc?xsd=xsd0

You would need to use a javascript library such as jQuery to make an Ajax request to the web service. I recommend searching google along the lines of "jQuery WCF AJAX" and that should give you some useful examples.

Need Your Help

Set Method Values With prepareForSegue

ios objective-c variables uistoryboardsegue pushviewcontroller

Basically, i'm using the prepareForSegue method to transition to another view within my storyboard, my view had to be embedded in a navigation controller in order to display the navigation bar so I...

Unable to raise an application error message

oracle error-handling plsql oracle11g

For debugging purposes, I need to raise an application level message based on given flag. Here is exception code

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.