Error loading java.io.IOException: ... Attempted read from closed stream

Originally posted by elsaadj on July 04, 2018

SoupUI 5.2.0

Error loading [https://wlstapapp4.wadoldc.com:8755/TAS/WebServices/MFET/?wsdl]: java.io.IOException: Attempted read from closed stream

We get this error when trying to load WSDL file, can’t figure out what is causing this error. Any help will be appreciated

Originally posted by Lucian on July 05, 2018

Moved to the SoapUI Open Source forum.

Originally posted by HimanshuTayal on July 05, 2018

Hi elsaadj

I think you need to get your WSDL check with the developer, there might be a issue with WSDL file, it you are trying learning SOAPui then please go for another WSDL file.

Originally posted by elsaadj on July 07, 2018

The WSDL file is ok, it works with C# client. Also you can view it in the browser. We use SoapUI for other WSDL and it works fine.

So, we know how to use SoapUI and we know the WSDL file is good. It is just we can’t figure out the SoapUI settings that will get ready of this error. Looking for help figuring that out.

Originally posted by JLTook11 on August 07, 2018

Guesing that you have the same issue I did – the WSDL is referencing localhost as the service url.

  • open the WSDL in a browser and save to a file
  • edit the WSDL – replace localhost with the server url
  • reference this local file via browse to create the project in SoapUI

…Bazinga!

Originally posted by elsaadj on August 07, 2018

The file has the correct URLs, there is no localhost. https://wadol.gentax.com/WLS/WebServices/MFET/

Originally posted by sbjustin on October 22, 2018

JLTook11 - I signed up just to give you kudos and tell you that you’re the man!

Alternatively, I just updated my hostfile to point to same IP but with the URL in the WSDL.