¿Cómo puedo asegurarme de que el enlace web http de WCF siempre emita información de tipo para JSON?
Frecuentes
Visto 69 equipos
0
I am using the WebHttpBinding provided by WCF. When making requests in Json, the response does not contain any type information.
How can I ensure that type information is emitted when using the WebHttpBinding for Json requests?
Muchas Gracias
1 Respuestas
0
Ya sea:
1 User proper Aceptar encabezado (= "application/json") on client side. Framework should work it out automatically.
o bien:
2 Specify OperationContract with attribute: WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, ...)
Respondido 10 Feb 14, 11:02
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas json wcf webhttpbinding or haz tu propia pregunta.
I am using that. Its just that type information is not getting emitted on the service side by the serializer. - Principiante de SharePoint