Forum Discussion

ikari2k's avatar
13 years ago

Setting socket timeout for soapui-maven plugin

Hello,

I am using soapui plugin for maven to run my test with hudson. I get Socket Timeout exception which I would like to get rid of by specifying my own socket timeout value. I wonder how can I do it with mentioned setup. Is there any parameter I do not know I can provide to maven. Or should I use settingsFile? If that is the case then how to declare this option in settings file so that I can safely say nothing else is overwritten?

My maven plugin and soapui version is 4.5.1 (free edition).

Can anybody send me example of pom file and settings file they where using to set this up? Also what is current default value (60000ms?)?

Regards!

1 Reply

  • redfish4ktc2's avatar
    redfish4ktc2
    Super Contributor
    Create a settings file with this content


    <con:soapui-settings xmlns:con="http://eviware.com/soapui/config">
    <con:setting id="HttpSettings@socket_timeout">10000</con:setting>
    </con:soapui-settings>


    use this file in your plugin configuration

            <plugin>
    ...
    <configuration>
    <settingsFile>path_to_the_settings_file</settingsFile>
    </configuration>
    </plugin>