How to consume an ASMX web service from a pure HTML markup RRS feed

  • Question

  • User460266172 posted

    I have created a web service successfully and even tested it. Perfect. But after hosting the service and trying to consume it using an HTML form, I keep getting a "Runtime Error". What is there to be done, again, Please.

    This is a snippet of the HTML which calls the service

    <form action='http://www.trafficdey.com/user.asmx/Create' method="post">
             Username: <input type="text" name="userName"/><br />
             Password: <input type="text" name="password"/><br />
             First Name: <input type="text" name="firstName"/><br />
             Last Name: <input type="text" name="lastName"/><br />
             Mobile Number: <input type="text" name="mobileNumber"/><br />
            <button type="submit">Create user</button>

    Wednesday, November 6, 2013 4:21 AM


All replies