Home > Net >  Vb.net to write good webservice changes the value of the content-type
Vb.net to write good webservice changes the value of the content-type

Time:10-03

Vb.net written webservice, where will the value of the content-type from modify text/XML to json, thank you

CodePudding user response:

Add in the webconfig really? Which had to add the words of a concurrent, thank you very much

CodePudding user response:

If "written by vb.net webservice" high quality, the client added a may Accept head returns json,

 Accept: application/json 

CodePudding user response:

Accept the content-type and 2, you can understand,

CodePudding user response:

refer to the second floor github_36000833 response:
if "written by vb.net webservice" high quality, the client added a may Accept head returns json,

 Accept: application/json 
thank you, but there is a mandatory client not make any changes, use the postman tool, in the content-type to text/XML can pass, but json is an error

CodePudding user response:

reference 3 floor XBodhi. Response:
the accept and the content-type 2, you can see,
check a lot of information, the feeling is a word, but I don't know to what position, thank you teach

CodePudding user response:

One great god to give directions, thank you??
  • Related