Error importing WSDL in SoapUI

I get this message when I try to create a new SoapUI project and import WSDL to simulate web services. The error message seems to be incomplete, because in fact it does not say that the tag is not closing.

Error loading [file: \ C: \ chad.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: does not close the tag

Here's the WSDL:

<wsdl:definitions name="Chad" targetNamespace="http://www.examples.com/wsdl/Chad.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/Chad.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:message name="SayHiRequest"> <wsdl:part name="text" type="xsd:string"/> </wsdl:message> <wsdl:message name="SayHiResponse"> <wsdl:part name="text" type="xsd:string"/> </wsdl:message> <wsdl:portType name="Hello_PortType"> <wsdl:operation name="sayHi"> <wsdl:input message="tns:SayHiRequest"/> <wsdl:output message="tns:SayHiResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Hello_Binding" type="tns:Hello_PortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHi"> <soap:operation soapAction="sayHi"/> <wsdl:input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:chadservice" use="encoded"/> </wsdl:input> <wsdl:output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:chadservice" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Hello_Service"> <wsdl:documentation>WSDL File for HelloService</documentation> <wsdl:port binding="tns:Hello_Binding" name="Hello_Port"> <soap:address location="http://www.examples.com/chad/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 

My WSDL seems to check.

I found some similar problems on the Internet where wsdl is imported from the http URL and the import results into the same error, but I import directly from my C drive (no more than http), so the proposed solutions did not work.

+8
wsdl soapui
source share
3 answers

The next line had a problem with the namespace

Original string

 <wsdl:documentation>WSDL File for HelloService</documentation> 

Changed to

 <wsdl:documentation>WSDL File for HelloService</wsdl:documentation> 

Here is the updated wsdl

 <?xml version='1.0' encoding="UTF-8"?> <wsdl:definitions name="Chad" targetNamespace="http://www.examples.com/wsdl/Chad.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.examples.com/wsdl/Chad.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <wsdl:message name="SayHiRequest"> <wsdl:part name="text" type="xsd:string"/> </wsdl:message> <wsdl:message name="SayHiResponse"> <wsdl:part name="text" type="xsd:string"/> </wsdl:message> <wsdl:portType name="Hello_PortType"> <wsdl:operation name="sayHi"> <wsdl:input message="tns:SayHiRequest"/> <wsdl:output message="tns:SayHiResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Hello_Binding" type="tns:Hello_PortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="sayHi"> <soap:operation soapAction="sayHi"/> <wsdl:input> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:chadservice" use="encoded"/> </wsdl:input> <wsdl:output> <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:chadservice" use="encoded"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Hello_Service"> <wsdl:documentation>WSDL File for HelloService</wsdl:documentation> <wsdl:port binding="tns:Hello_Binding" name="Hello_Port"> <soap:address location="http://www.examples.com/chad/"/> </wsdl:port> </wsdl:service> </wsdl:definitions> 
+2
source share

I managed to load the WSDL in soapUI 4.5.2 without getting the error you received. Although, I got an error below.

 Tue Aug 20 11:30:21 ADT 2013:ERROR:Could not find element [{https://something.com/service/types}IsAvailableRequest] specified in part [parameters] 
0
source share

I had the same error, but another reason:

 Instead of: https://sitename.com/prefix/app/services.asxm Use: https://sitename.com/prefix/app/services.asxm?WSDL 

I had not used SOAP before, and it did not immediately become apparent that I was missing WSDL from the URL. Posting just in case someone else has the same problem.

0
source share

All Articles