Home > Net >  The output format is json webservice. What should I call?
The output format is json webservice. What should I call?

Time:10-10

When I add service reference tip HTML document does not contain Web service discovery information,
Metadata include cannot resolve a reference to: "http://10.100.8.65/dthealth/web/WLYY.WebService.Surgery.cls",
The content of the response message type text/HTML and binding (application/soap + XML; Charset=utf-8) content types do not match, if you use a custom encoder, please ensure the correct implementation IsContentTypeSupported method,
Don't refer to

CodePudding user response:

Webservice is returned XML, json is how could you? You use not webservice, are you? Are ordinary webapi interface?

CodePudding user response:

Direct call ah, you input the address in the browser, if you need parameter simulation a look at the return result is a what?

CodePudding user response:

WebService if Web Get/post call, need to be defined in the interface definition HttpPost/HttpGet

CodePudding user response:

Add the ws reference not line?
  • Related