¿Cómo puedo asegurarme de que el enlace web http de WCF siempre emita información de tipo para JSON?

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

preguntado el 10 de febrero de 14 a las 08:02

1 Respuestas

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

I am using that. Its just that type information is not getting emitted on the service side by the serializer. - Principiante de SharePoint

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.