How to create a WCF response service for testing AJAX modules

I want to create a WCF service that simply answers the query string, the HTTP headers and the HTTP verb used in the received request.

I want to use it for unteest AJAX enabled JavaScript framework that I create, so I can verify that the HTTP headers and HTTP words are set correctly.

Basically, I need a way to bind a WCF service to HTTP GET, POST, PUT and DELETE, and I need a way to capture all the headers, etc. and return them.

Any input is much appreciated, Egil.

+3
source share
2 answers

, HTTP , WCF. : Ping/Reply AJAX/XHR. , .

+1

Source: https://habr.com/ru/post/1763242/


All Articles