Calling Web Service Using JavaScript Ajax || Part-22

preview_player
Показать описание
Learn how to Call Web Service Using JavaScript Ajax || Part-22.

In order to Call Web Service Using JavaScript Ajax follow these steps:
-----------------------------------------------------------------------------------------------------------
1. Import Jquery 3.1.0 min version in to root of Client Application.
2. Call the Webservice using JavaScript Ajax.
3. Display the response in the alert message or any HTML tag.

-----------------------------------------------------------------------------------------------------------
WEBSERVICE Link
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
PREVIOUS Videos
-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
Important synopsis discussed in this video
-----------------------------------------------------------------------------------------------------------
1. Call the service from JavaScript Ajax by HTTP POST Request
2. Cross Origin Request/Resource Sharing (CORs)
3. Configurations required in Web Service to respond to JavaScript
or Ajax requests from browser/client application.

-----------------------------------------------------------------------------------------------------------
Stay tuned and Subscribe to my Youtube Channel
-----------------------------------------------------------------------------------------------------------

-----------------------------------------*************----------------------------------------------
Рекомендации по теме
Комментарии
Автор

hello its me again thanks its a very helpful video, but i have a question, how i pass the parameters required for the service response if "data" property in ajax call is used with auth params?

Автор

When clicking the "brnGetResponse" button does nothing, the ajax function probably gives error.
If you click the url: "http:
Give an errorServer error in application '/ AuthenticationInWebservice'.

The request format is not recognized for the URL terminated unexpectedly in '/ HelloWorld'.
   Description: Unhandled exception while executing the current Web request. See the stack trace for more information about the error and its source point in the code.  Exception Details: The request format is not recognized for the URL terminated unexpectedly in '/ HelloWorld'.

Can you help me

josefidalgo