Как позвонить в WCF Сервис в пост человеко пост запрос

Как вызвать службу WCF в PostMan или любом другом программном обеспечении WebService. Пожалуйста, помогите мне этот код C#

POST URL: http://localhost:20826/Service1.svc?wsdl

 public class Service1 : System.Web.Services.WebService , IService1
   {

            [WebMethod]
           public GetResponse RequestApiToken(string CallerId)
          {
          GetResponse response = new GetResponse();
          string CallerIdget = CallerId
          return response;
          }
    }

Тело запроса

  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <RequestApiToken xmlns="http://localhost:20826/">
          <CallerId>sadassdasdasdsadsd</CallerId>
        </RequestApiToken>
      </soap:Body>
    </soap:Envelope>

0 ответов

Другие вопросы по тегам