Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/07/2014, 20:44
jee92
 
Fecha de Ingreso: marzo-2007
Mensajes: 31
Antigüedad: 17 años, 1 mes
Puntos: 0
Enviar y recibir XML a Web Service con httpRequest

Hola a todos, espero me puedan ayudar un poco, estoy intentando enviar un xml para una reservacion a un Web Service, creo ya lo logre hacer ya que me piden que sea con httpRequest y cuando le doy en procesar me aparece:

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 171
Content-Type: application/xml; charset=utf-8
Server: Microsoft-IIS/8.0
X-Aspnet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 22 Jul 2014 02:33:21 GMT

101Cannot find table 0.System

Pero no se si esta bien, o que tengo que hacer para recibir el xml si es que lo hay.

Mi codigo es:

Código PHP:
$raw_xml_1 htmlentities(mi_xml);
$url 'http://laurldelws';
$headers = array('Content-length: '.strlen($raw_xml_1)); 
$options = array(headers => $headersprotocol => HTTP_VERSION_1_1);
//create the httprequest object               
$httpRequest_OBJ = new httpRequest($urlHTTP_METH_POST$options);
//add the content type
$httpRequest_OBJ->setContentType 'Content-Type: application/xml; charset=utf-8';
//add the raw post data
$httpRequest_OBJ->setRawPostData ($raw_xml_1);
//send the http request
$result $httpRequest_OBJ->send();
//print out the result
echo "<pre>"; print $result; echo "</pre>"
Ayuda por favor... gracias

Última edición por jee92; 21/07/2014 a las 20:45 Razón: Codigo mal copiado