Invoking WCF service method through a browser

前端 未结 3 1294
一生所求
一生所求 2020-12-01 05:40

I\'ve a WCF service which uses basic http binding. How do I invoke its operations/methods through a browser?

3条回答
  •  自闭症患者
    2020-12-01 05:53

    I would recommend setting up multiple endpoints for the Service. Add an endpoint using webHttpBinding to get an XML version of the service. If this is done correctly the response you will get from the service is identical to the basicHttpBinding endpoint, but without the SOAP overhead.

    Other than that, you can't call a SOAP web service directly from the browser because it requires a form post. You could use a tool to test it using SOAP though, I recommend Soap UI. Its written in Java but I try not to hold that against it. :)

提交回复
热议问题