WCF (svc) Service but client wants to connect as if it was “.asmx”

后端 未结 2 1655
粉色の甜心
粉色の甜心 2020-12-22 10:30

I have this scenario. Client requested us to have a WebService. I created a WCF Service. After we sent them our url to the web service description, client says

2条回答
  •  春和景丽
    2020-12-22 11:08

    It is completely do-able. Just use an endpoint that exposes the service using basicHttpBinding or wsHttpBinding. The "file extension" of the URL doesn't make any difference to the client, only the content of the rerquest/response.

    Here's a reference to another SO question: REST / SOAP endpoints for a WCF service

提交回复
热议问题