Boa tarde, executei toda a Aula 1 em casa e tudo funcionou normalmente incluindo o teste com o SOAPUI. Zipei o projeto e trouxe pro trabalho pra dar continuidade. O projeto executa normalmente e o serviço é chamado no browser sem erros.
Mas ao criar um new SOAP Project no SOAPUI dá o erro abaixo: A versão do SOAPUI é a mesma que usei em casa, 5.4
Agradeço desde já.
Project Name: estoquews-client Initial WSDL: http://localhost:8080/estoquews?wsdl
Error loading WSDL
There was something wrong with the WSDL you are trying to import
WSDLException (at /HTML): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl/}definitions'.
Abaixo o retorno no browser.
<!--
Published by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e.
-->
<!--
Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is JAX-WS RI 2.2.9-b130926.1035 svn-revision#5f6196f2b90e9460065a4c2f4e30e065b245e51e.
-->
<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://ws.estoque.caelum.com.br/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.estoque.caelum.com.br/" name="EstoqueWSService">
<types>
<xsd:schema>
<xsd:import namespace="http://ws.estoque.caelum.com.br/" schemaLocation="http://localhost:8080/estoquews?xsd=1"/>
</xsd:schema>
</types>
<message name="getItens">
<part name="parameters" element="tns:getItens"/>
</message>
<message name="getItensResponse">
<part name="parameters" element="tns:getItensResponse"/>
</message>
<portType name="EstoqueWS">
<operation name="getItens">
<input wsam:Action="http://ws.estoque.caelum.com.br/EstoqueWS/getItensRequest" message="tns:getItens"/>
<output wsam:Action="http://ws.estoque.caelum.com.br/EstoqueWS/getItensResponse" message="tns:getItensResponse"/>
</operation>
</portType>
<binding name="EstoqueWSPortBinding" type="tns:EstoqueWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getItens">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="EstoqueWSService">
<port name="EstoqueWSPort" binding="tns:EstoqueWSPortBinding">
<soap:address location="http://localhost:8080/estoquews"/>
</port>
</service>
</definitions>