14 years ago
http_version ignored by mockservicerunner
Hi,
HttpSettings seem to be ignored by mockservicerunner SoapUI. I specify HTTP version 1.0 but mockservicerunner still uses HTTP/1.1. Moreover, I try to switch off chunking (no chunking_threshold setting, chunking_threshold=0, chunking_threshold=<very large value>) and mockservicerunner keeps sending chunked responses.
Any idea what is wrong with SoapUI or my approach?
Here is a snippet from my /opt/soapui/soapui-settings.xml:
<con:setting id="HttpSettings@include_request_in_time_taken">true</con:setting>
<con:setting id="HttpSettings@include_response_in_time_taken">true</con:setting>
<con:setting id="HttpSettings@max_connections_per_host">500</con:setting>
<con:setting id="HttpSettings@max_total_connections">2000</con:setting>
<con:setting id="HttpSettings@user-agent">SoapUI, dude</con:setting>
<con:setting id="HttpSettings@http_version">1.0</con:setting>
<con:setting id="HttpSettings@chunking_threshold">100000</con:setting>
<con:setting id="HttpSettings@enable_mock_wire_log">true</con:setting>
Below are the first lines of the log from mockservicerunner start. I run the mockservice runner with: ./mockservicerunner.sh -s ../soapui-settings.xml /home/sg/soapui/projects/soapui-project.xml:
================================
soapUI 4.0.0 MockService Runner
Configuring log4j from [/opt/soapui/bin/soapui-log4j.xml]
12:10:00,378 INFO [DefaultSoapUICore] initialized soapui-settings from [/opt/soapui/bin/../soapui-settings.xml]
12:10:01,189 DEBUG [DefaultHttpParams] Set parameter http.useragent = Jakarta Commons-HttpClient/3.1
12:10:01,190 DEBUG [DefaultHttpParams] Set parameter http.protocol.version = HTTP/1.1
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.cookie-policy = default
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.element-charset = US-ASCII
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.content-charset = ISO-8859-1
12:10:01,193 DEBUG [DefaultHttpParams] Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@67c7980c
12:10:01,194 DEBUG [DefaultHttpParams] Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
12:10:01,199 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=500}
12:10:01,199 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.max-total = 2000
12:10:01,200 DEBUG [HttpClient] Java version: 1.6.0_20
12:10:01,200 DEBUG [HttpClient] Java vendor: Sun Microsystems Inc.
...
Best regards,
Marek
HttpSettings seem to be ignored by mockservicerunner SoapUI. I specify HTTP version 1.0 but mockservicerunner still uses HTTP/1.1. Moreover, I try to switch off chunking (no chunking_threshold setting, chunking_threshold=0, chunking_threshold=<very large value>) and mockservicerunner keeps sending chunked responses.
Any idea what is wrong with SoapUI or my approach?
Here is a snippet from my /opt/soapui/soapui-settings.xml:
<con:setting id="HttpSettings@include_request_in_time_taken">true</con:setting>
<con:setting id="HttpSettings@include_response_in_time_taken">true</con:setting>
<con:setting id="HttpSettings@max_connections_per_host">500</con:setting>
<con:setting id="HttpSettings@max_total_connections">2000</con:setting>
<con:setting id="HttpSettings@user-agent">SoapUI, dude</con:setting>
<con:setting id="HttpSettings@http_version">1.0</con:setting>
<con:setting id="HttpSettings@chunking_threshold">100000</con:setting>
<con:setting id="HttpSettings@enable_mock_wire_log">true</con:setting>
Below are the first lines of the log from mockservicerunner start. I run the mockservice runner with: ./mockservicerunner.sh -s ../soapui-settings.xml /home/sg/soapui/projects/soapui-project.xml:
================================
soapUI 4.0.0 MockService Runner
Configuring log4j from [/opt/soapui/bin/soapui-log4j.xml]
12:10:00,378 INFO [DefaultSoapUICore] initialized soapui-settings from [/opt/soapui/bin/../soapui-settings.xml]
12:10:01,189 DEBUG [DefaultHttpParams] Set parameter http.useragent = Jakarta Commons-HttpClient/3.1
12:10:01,190 DEBUG [DefaultHttpParams] Set parameter http.protocol.version = HTTP/1.1
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.class = class org.apache.commons.httpclient.SimpleHttpConnectionManager
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.cookie-policy = default
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.element-charset = US-ASCII
12:10:01,192 DEBUG [DefaultHttpParams] Set parameter http.protocol.content-charset = ISO-8859-1
12:10:01,193 DEBUG [DefaultHttpParams] Set parameter http.method.retry-handler = org.apache.commons.httpclient.DefaultHttpMethodRetryHandler@67c7980c
12:10:01,194 DEBUG [DefaultHttpParams] Set parameter http.dateparser.patterns = [EEE, dd MMM yyyy HH:mm:ss zzz, EEEE, dd-MMM-yy HH:mm:ss zzz, EEE MMM d HH:mm:ss yyyy, EEE, dd-MMM-yyyy HH:mm:ss z, EEE, dd-MMM-yyyy HH-mm-ss z, EEE, dd MMM yy HH:mm:ss z, EEE dd-MMM-yyyy HH:mm:ss z, EEE dd MMM yyyy HH:mm:ss z, EEE dd-MMM-yyyy HH-mm-ss z, EEE dd-MMM-yy HH:mm:ss z, EEE dd MMM yy HH:mm:ss z, EEE,dd-MMM-yy HH:mm:ss z, EEE,dd-MMM-yyyy HH:mm:ss z, EEE, dd-MM-yyyy HH:mm:ss z]
12:10:01,199 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.max-per-host = {HostConfiguration[]=500}
12:10:01,199 DEBUG [DefaultHttpParams] Set parameter http.connection-manager.max-total = 2000
12:10:01,200 DEBUG [HttpClient] Java version: 1.6.0_20
12:10:01,200 DEBUG [HttpClient] Java vendor: Sun Microsystems Inc.
...
Best regards,
Marek