Interpretar WSDL
Ejemplo práctico que muestra cómo se puede interpretar un archivo WSDL.
Dentro de uno de los ejemplos desarrollados se utiliza un archivo WSDL para generar mensajes SOAP para la herramienta SoapUI. El contenido de ese archivo es el siguiente:
<?xml version='1.0' encoding='UTF-8'?>
<!-- Published by JAX-WS RI (https://github.com/eclipse-ee4j/metro-jax-ws). RI's version is JAX-WS RI 3.0.2 git-revision#91dd558. -->
<!-- Generated by JAX-WS RI (https://github.com/eclipse-ee4j/metro-jax-ws). RI's version is JAX-WS RI 3.0.2 git-revision#91dd558. -->
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://biblioteca.soap.ws.pintegrativa.utpl.edu.ec/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://biblioteca.soap.ws.pintegrativa.utpl.edu.ec/" name="QueryServiceService">
<types>
<xsd:schema>
<xsd:import namespace="http://biblioteca.soap.ws.pintegrativa.utpl.edu.ec/" schemaLocation="http://localhost:8080/biblioteca/qryservice?xsd=1"/>
</xsd:schema>
</types>
<message name="exists">
<part name="parameters" element="tns:exists"/>
</message>
<message name="existsResponse">
<part name="parameters" element="tns:existsResponse"/>
</message>
<portType name="QueryService">
<operation name="exists">
<input wsam:Action="http://biblioteca.soap.ws.pintegrativa.utpl.edu.ec/QueryService/existsRequest" message="tns:exists"/>
<output wsam:Action="http://biblioteca.soap.ws.pintegrativa.utpl.edu.ec/QueryService/existsResponse" message="tns:existsResponse"/>
</operation>
</portType>
<binding name="QueryServicePortBinding" type="tns:QueryService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="exists">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="QueryServiceService">
<port name="QueryServicePort" binding="tns:QueryServicePortBinding">
<soap:address location="http://localhost:8080/biblioteca/qryservice"/>
</port>
</service>
</definitions>
Otros recursos valiosos se pueden encontrara en:
Basic WSDL Structure Understanding – (Web Service Description Language) Explained (https://crunchify.com/basic-wsdl-structure-understanding-wsdl-explained/) Aquí se explica un archivo WSDL generado usando SOAP 2.0.
Introduction to JAX-WS (https://www.baeldung.com/jax-ws)
Last updated