Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/04/2012, 21:46
julianrb90
 
Fecha de Ingreso: marzo-2012
Mensajes: 21
Antigüedad: 12 años, 1 mes
Puntos: 1
Respuesta: Web service php para obtencion de datos de la base de datos postgresql

Cita:
Iniciado por GatorV Ver Mensaje
Prueba cargar la URL: [url]http://localhost:9090/Prueba/ws.php?wsdl[/url] y verifica sí el XML generado es correcto o no.

Saludos.
Este es el XML que mostro:

Cita:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost:9090/Prueba" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost:9090/Prueba">
<types>
<xsd:schema targetNamespace="http://localhost:9090/Prueba">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="producto">
<xsd:all>
<xsd:element name="idProducto" type="xsd:int"/>
<xsd:element name="titulo" type="xsd:string"/>
<xsd:element name="descripcion" type="xsd:string"/>
<xsd:element name="precio" type="xsd:int"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<message name="obtenerProductoRequest">
<part name="idProducto" type="xsd:int"/>
</message>
<message name="obtenerProductoResponse">
<part name="return" type="tns:producto"/>
</message>
<portType name="obtenerProductoPortType">
<operation name="obtenerProducto">
<input message="tns:obtenerProductoRequest"/>
<output message="tns:obtenerProductoResponse"/>
</operation>
</portType>
<binding name="obtenerProductoBinding" type="tns:obtenerProductoPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="obtenerProducto">
<soap:operation soapAction="http://localhost/Prueba/ws.php/obtenerProducto" style="rpc"/>
<input>
<soap:body use="encoded" namespace="http://localhost:9090/Prueba" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://localhost:9090/Prueba" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="obtenerProducto">
<port name="obtenerProductoPort" binding="tns:obtenerProductoBinding">
<soap:address location="http://localhost:9090/Prueba/ws.php"/>
</port>
</service>
</definitions>
Gracias