Ask a Question

SoapUI: Connection refused when accessing mock SOAP API

New Member

SoapUI: Connection refused when accessing mock SOAP API

Hi all,


I've got a working WDSL file, and going to http://localhost:8088/myservicename?WDSL displays that WDSL file.  All is working fine up to that point.


However, if I write a simple python script like this, which should display the list of available methods


    from suds.client import Client
    client = Client('http://localhost:8088/myservicename?WDSL')


I get a "Connection refused" error.  The same happens if I try to call a specific function specified in the WDSL file, or if I type `wget http://localhost:8088/myservicename?WDSL` at the command line.


To me, the obvious answer was that for some reason I couldn't connect to that port.  I tried adding a rule to Windows Defender Firewall to permit any traffic to port 8088, but still experienced the same problem.  I also tried turning off the proxy in SoapUI, but again still get the same "connection refused" error.


I'm sure this is a very basic, n00b question but I've exhausted all the help I could find in the documentation and on StackOverflow!


[nb: I've used the same address as it mentions in the soap:address element in the WDSL response.  I did think it was maybe that I was using the wrong address, but that's not it either!]


All the best


Community Hero

Re: SoapUI: Connection refused when accessing mock SOAP API

Hey @algy,

Connection refused sounds like authentication/authorisation.

Have you looked into if theres any auth details you need to include in your requests?


if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
Showing results for 
Search instead for 
Did you mean: