Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
How can I get Metadata for my application
namespace MyService
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class MyAjaxService
    {
        
        [OperationContract]
        public double Sum(double a, double b)
        {
            double result = a + b; return result;
        }

        
    }
}

$(document).ready(function() {
  $("#btn").click(function() {
    var num1 = $("#txt1").val();
    var num2 = $("#txt2").val();

    $.ajax({
      url: "MyAJAXService.svc/Sum",
      type: "POST",
      contentType: "application/json; charset=utf-8",
      data: JSON.stringify({
        a: num1,
        b: num2
      }),
      dataType: "json",
      success: function(data) {
        $("#txt3").val(data.d);
      },
      error: function(err) {
        alert(err);
      }
    });
  });

});
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MyService._Default" %>

  <asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <input id="txt1" type="text" /><br />
    <br />
    <input id="txt2" type="text" /><br />
    <br />
    <input id="btn" type="button" value="Add Numbers" /><br />
    <br />
    <input id="txt3" type="text" />

  </asp:Content>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!