Quantcast
Channel: Respuesta Web Service
Viewing all articles
Browse latest Browse all 6

Respuesta Web Service

$
0
0

hola:

estoy consumiendo un Web Service realizado en PhP, y la respuesta es de tipo String, pero al recibir esta me aparece el siguiente error "El cliente encontró el tipo de contenido de respuesta 'text/html', pero se esperaba 'text/xm", adjunto el codigo..

 protected void Page_Load(object sender, EventArgs e)
    {

string parametro= "Procesado"

WS_Nombre.WebServiceCoche Servicio = new WS_Nombre.WebServiceCoche();
        parametro = Servicio.Autenti(user, pwd, parametro_xml);

        if (parametro == "No Procesado")
        {

            Response.Write("1.- " + parametro);
        }
        else
        {
            Response.Write("2.-" + parametro);
        }  

 }

Quiero saber si el error es de la aplicacion que consume el WS ó es del WS, y alguna ayuda para solucionar el inconveniente.

PD: esta es la respuesta a traves del soapUI 

<return xsi:type="xsd:string"><![CDATA[<Retorno><NroGuia>274</NroGuia><Estado>1</Estado><Descripcion>Registro Ingresado Satisfactoriamente</Descripcion><Fecha>2012-06-19 17:23:03</Fecha></Retorno>]]></return>

gracias.

crifali



Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images