WEBSERVICE ASMX NÃO RETORNA JSON, SOMENTE XML
                    Queria resolver esse problema, o retorno de minha webservice, retorna com o corpo em JSON, mas o cabeçalho em XML. como faço para retornar a estrutura em JSON ?
já li toda a internet e não consigo entender, vi uns scripts jQuery com ASP.NET mas minha aplicação tá em C#, alguém tem alguma ideia ?
segue retorno de minha consulta:
            já li toda a internet e não consigo entender, vi uns scripts jQuery com ASP.NET mas minha aplicação tá em C#, alguém tem alguma ideia ?
segue retorno de minha consulta:
Citação:
<?xml version=[Ô]1.0[Ô] encoding=[Ô]UTF-8[Ô]?>
<string xmlns=[Ô]http://tempuri.org/[Ô]>[{[Ô]id_produto[Ô]:[Ô]27[Ô],[Ô]nr_referencia[Ô]:[Ô]1[Ô],[Ô]nm_produto[Ô]:[Ô]SKOL 600ML[Ô],[Ô]path_foto[Ô]:[Ô][Ô],[Ô]qtd_estoque[Ô]:
                    Talvez isso possa ajudar, basta pegar o endereço que está no meio desse seu arquivo:
http://pt.stackoverflow.com/questions/13777/ler-um-json-a-partir-de-uma-url
                
            http://pt.stackoverflow.com/questions/13777/ler-um-json-a-partir-de-uma-url
                    Espero que esse post ajude a quem precisa.
                
            using System;
using System.Collections.Generic;
using System.Data;
using System.Web.Services;
using System.Web.Script.Services;
using System.Web.Script.Serialization;
namespace wsService
{
    [WebService(Namespace = [Ô]http://tempuri.org/[Ô])]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    [System.Web.Script.Services.ScriptService]
    
    public class WebService1 : System.Web.Services.WebService
    {
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json, UseHttpGet = true)]
        public void MeuMetodo()
        {
            Clientes MinhaClasse = new Clientes();
 
            JavaScriptSerializer js = new JavaScriptSerializer();
            string ret = js.Serialize(MinhaClasse);
            Context.Response.Clear();
            Context.Response.ContentType = [Ô]application/json[Ô];
            Context.Response.Flush();
            Context.Response.Write(ret);
        }
}
}
                    JABA
Muito obrigado pela força cara.
            Muito obrigado pela força cara.
                        Tópico encerrado , respostas não são mais permitidas