Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/04/2012, 18:42
loganbsdavila
 
Fecha de Ingreso: octubre-2011
Mensajes: 12
Antigüedad: 12 años, 7 meses
Puntos: 0
error de lectura XML

hola estoy tratando de comsumir un servicio web que he hecho y me esta dando este error

Error de lectura XML: contenido incorrecto tras un elemento XML del documento
Ubicación: http://10.8.110.232:5802/tesis/modulo_busqueda/web/app_dev.php/servicio/ServicioBusqueda?wsdl
Número de línea 2, columna 1:<font size='1'><table class='xdebug-error' dir='ltr' border='1' cellspacing='0' cellpadding='1'>
^

este es el xml

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="ServicioBusquedaWSDL" targetNamespace="http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio/">
<wsdl:types>
<xsd:schema targetNamespace="http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio/">
<xsd:element name="ServicioMotorBusqueda">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="ServicioMotorBusquedaInputResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NewOperation">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="NewOperationResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="ServicioMotorBusquedaRequest">
<wsdl:part name="DBHost" type="xsd:string" />
<wsdl:part name="DBPort" type="xsd:string"></wsdl:part>
<wsdl:part name="DBName" type="xsd:string"></wsdl:part>
<wsdl:part name="DBUser" type="xsd:string"></wsdl:part>
<wsdl:part name="DBPass" type="xsd:string"></wsdl:part>
<wsdl:part name="busqueda" type="xsd:string"></wsdl:part>
<wsdl:part name="valor1" type="xsd:string"></wsdl:part>
<wsdl:part name="valor2" type="xsd:string"></wsdl:part>
<wsdl:part name="valor3" type="xsd:string"></wsdl:part>
</wsdl:message>
<wsdl:message name="ServicioMotorBusquedaResponse">
<wsdl:part name="resultado" type="xsd:Array" />
</wsdl:message>
<wsdl:message name="NewOperationRequest">
<wsdl:part name="parameters" element="tns:NewOperation"></wsdl:part>
</wsdl:message>
<wsdl:message name="NewOperationResponse">
<wsdl:part name="parameters" element="tns:NewOperationResponse"></wsdl:part>
</wsdl:message>
<wsdl:portType name="ServicioBusquedaWSDL">
<wsdl:operation name="ServicioMotorBusqueda">
<wsdl:input message="tns:ServicioMotorBusquedaRequest" name="ServicioMotorBusquedaInput"/>
<wsdl:output message="tns:ServicioMotorBusquedaResponse" name="ServicioMotorBusquedaOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServicioBusquedaWSDLSOAP" type="tns:ServicioBusquedaWSDL">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="ServicioMotorBusqueda">
<soap:operation soapAction="http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio/ServicioBusqueda/ServicioMotorBusqueda"/>
<wsdl:input name="ServicioMotorBusquedaInput">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="ServicioMotorBusquedaOutput">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ServicioBusquedaWSDL">
<wsdl:port binding="tns:ServicioBusquedaWSDLSOAP" name="ServicioBusquedaWSDLSOAP">
<soap:address location="http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio/ServicioBusqueda"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


y esta es la pagina del servicio

<?php

// define PHP functions that maps to WSDL operations
/**
* Service function ServicioMotorBusqueda
* @param anyType $input
* @return anyType
*/
function ServicioMotorBusqueda($DBHost, $DBPort, $DBName, $DBUser, $DBPass, $busqueda, $valor1, $valor2, $valor3) {
// TODO: fill in the business logic
// NOTE: $input is of type anyType
// NOTE: should return an object of (type: anyType)
$objeto = new MotorBusquedaController();
$resultado = $objeto->ServicioMotorBusqueda($DBHost, $DBPort, $DBName, $DBUser, $DBPass, $busqueda, $valor1, $valor2, $valor3);
return "funciona";
}

// define the operations map
$operations = array(
"ServicioMotorBusqueda" => "ServicioMotorBusqueda");

// define the actions => operations map
$actions = array(
"http://10.8.110.232:5802/tesis/modulo_busqueda/web/app.php/servicio/ServicioBusqueda/ServicioMotorBusqueda" => "ServicioMotorBusqueda");

// create service in WSDL mode
$service = new WSService(array("wsdl" => "ServicioBusquedaWSDL.wsdl",
"actions" => $actions,
"operations" => $operations));

// process client requests and reply
$service->reply();
?>




saludos y gracias de antemano