Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/09/2012, 13:08
uchihah
 
Fecha de Ingreso: enero-2010
Ubicación: Barcelona, España
Mensajes: 57
Antigüedad: 14 años, 4 meses
Puntos: 3
Pregunta nusoap devuelve text/html y no text/xml

Hola otra vez, por favor ya no se que mas hacer el caso es que he logrado obtener esta respuesta de mi ws en nusoap:

Código HTML:
Ver original
  1. HTTP/1.1 200 OK
  2. Date: Wed, 12 Sep 2012 18:54:31 GMT
  3. Server: Apache/2.2.8 (Win32) PHP/5.2.6
  4. X-Powered-By: PHP/5.2.6
  5. X-SOAP-Server: NuSOAP/0.9.5 (1.123)
  6. Content-Length: 1268
  7. Connection: close
  8. Content-Type: text/xml; charset=UTF-8
  9.  
  10. <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><WmSocioRegistradoInsertarResponse xmlns="http://www.namespace.com/"><WmSocioRegistradoInsertarResult><oError><iError>1</iError><sMensaje></sMensaje></oError><oResp><iResp>1</iResp><sMensaje>Correcto</sMensaje></oResp></WmSocioRegistradoInsertarResult></WmSocioRegistradoInsertarResponse></soap:Body></soap:Envelope>

supuestamente es un xml no? pero realmente como la salida de mi funcion en el WS es de tipo xsd:string
Código PHP:
$server->register('WmSocioRegistradoInsertar',array('xmlstr' => 'xsd:string'),array('return' => 'xsd:string'),$ns); 
pues lo que realmente esta devolviendo es un string que contiene un xml y cuando trato de consumir el WS con un cliente .net que espera una respuesta xml pues me salta el mensaje de "se ha recibido un text/html y se esperaba un text/xml" ya he probado con el header() en el WS en fin cualquier ayuda o idea sera inmensamente agradecida.
un saludo