Load testing with SoapUI
When load testing with SoapUI this exceptions, SOAP UI Exception: java.net.BindException: Address already in use: connect, may occur on a windows based system. It typically is thrown when testing a service with a lot of request in a short amount of time.
To prevent this exception from being thrown you can change the TcpIp parameters in the windows registry:
Navigate to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters
Add a new DWORD key with the name “MaxUserPort” and a decimal value of 65534.
See also here
Test with SoapUI: modify the generated web.config
The web.config that is create when you create a new WCF service application does not work with SoapUI. Retrieving the WSDL will work fine but when you execute a operation on the service the following message will appear:
A solution to this problem (at least for testing purposes) is to add a custom wsHttpBinding. Create a new WCF Service application C# project. Delete all text from the web.config and add replace it with the markup below.
Important to note is that we have a custom wsHttpBinding with the security mode set to “None”. This is necessary for SoapUI to work with this service!
Now you have to create a new SoapUI project. Point it to the ?wsdl for this services and the project is created with a default request for all operations. Open the first request and press the WS-A button (on the bottom of the request editor). Check “Enable WS-A addressing”, “Add default wsa:Action” and “Add default wsa:To”.
Now execute the request and you get a proper response!