jeudi 7 avril 2016

how to create the service and add it to the client web application?

In my index page below the code is in present. I have written simple login form. In that form response the Welcome message. That present in the login.html. Welcome message get from GET property of AJAX technology.

index.html:

<html>
  <head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF8">
  <title>Calculator Service</title>
        <script>

            function login(){
                $.get("login.html",function(data){
                    document.documentElement.innerHTML = data;
                })
            }
        </script>
    </head>
    <body>
        <h1>Calculator Service</h1>
        <form name="Submit" action="login()">&nbsp;
            <input type="text" name="uname" placeholder="User Name" size="45"/>+
            <input type="text" name="pwd" placeholder="Password" size="25"/>=
            <input type="submit" value="Login" name="Login" />
        </form>
    </body>
</html>

login.html/ login.cgi [c++]

<html>
    <head>
        <title> Login Service</title>

    </head>
    <body>
        <h1>Hai Welcome to First Web Page!</h1>
    </body>
</html>

In case i include the login function in form submit action. Form action should ExecCgi. In this Executable cgi make from c/c++. How will i add service in server and include web service reference in client. How do i make it?




Aucun commentaire:

Enregistrer un commentaire