Forum Discussion
MattLaw
16 years agoNew Contributor
Hi Ole,
Thanks for getting back in touch. We are using SoapUI to test our service, and the timeout is an essential piece of this, as we're also looking to see how the service handles timeout operations.
In order to protect the inner workings of our service, I've only attached the Test Suite, not the project, hope this is OK?
The datatype is defined in the WSDL as:
<xs:element name="Timeout" type="ser:duration"/>
xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/"
Here is the soap request:
I've emboldened the part that is causing the issue.
I've also attached the raw response.
<s:Envelope xmlns:s="">
<s:Header>
<RequestedDate>${SoapTestProperties#StartTime}</RequestedDate>
</s:Header>
<s:Body>
<SearchInputMessage xmlns="">
<Request xmlns:a="" xmlns:i="">
<a:Options xmlns:b="">
<b:DebugMode>false</b:DebugMode>
<b:MultiThreading>true</b:MultiThreading>
<b:UseCache>${SoapTestProperties#CacheOn}</b:UseCache>
</a:Options>
<a:Originator xmlns:b="">
<b:UrlReferer i:nil="true"/>
<b:UserAgent i:nil="true"/>
</a:Originator>
<a:SearchQueries xmlns:b="">
<b:TheQuery>
<b:Id>Alpha</b:Id>
<b:Timeout>${SoapTestProperties#TimeOut}</b:Timeout>
<b:CacheSeconds>30</b:CacheSeconds>
<b:Parameters><![CDATA[<Parameters>
<ThreadSleep>${SoapTestProperties#ThreadSleep}</ThreadSleep>
<Action>${SoapTestProperties#ActionType}</Action>
</Parameters>]]></b:Parameters>
<b:LoadParametersFromRepository>false</b:LoadParametersFromRepository>
</b:TheQuery>
</a:SearchQueries>
</Request>
<Extension i:nil="true" xmlns:a="" xmlns:i=""/>
</SearchInputMessage>
</s:Body>
</s:Envelope>
-- RAW REQUEST 000
<s:Envelope xmlns:s="">
<s:Header>
<RequestedDate>2010-11-12T10:25:31.992</RequestedDate>
</s:Header>
<s:Body>
<SearchInputMessage xmlns="">
<Request xmlns:a="" xmlns:i="">
<a:Options xmlns:b="">
<b:DebugMode>false</b:DebugMode>
<b:UseCache>false</b:UseCache>
</a:Options>
<a:Originator xmlns:b="">
<b:UrlReferer i:nil="true"/>
<b:UserAgent i:nil="true"/>
</a:Originator>
<a:SearchQueries xmlns:b="">
<b:TheQuery>
<b:Id>Alpha</b:Id>
<b:Timeout>PT1S</b:Timeout>
<b:CacheSeconds>30</b:CacheSeconds>
<b:Parameters><![CDATA[<Parameters>
<ThreadSleep>500</ThreadSleep>
<Action>Dummy Resultset</Action>
</Parameters>]]></b:Parameters>
<b:LoadParametersFromRepository>false</b:LoadParametersFromRepository>
</b:TheQuery>
</a:SearchQueries>
</Request>
<Extension i:nil="true" xmlns:a="" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
</SearchInputMessage>
</s:Body>
</s:Envelope>
Thanks for getting back in touch. We are using SoapUI to test our service, and the timeout is an essential piece of this, as we're also looking to see how the service handles timeout operations.
In order to protect the inner workings of our service, I've only attached the Test Suite, not the project, hope this is OK?
The datatype is defined in the WSDL as:
<xs:element name="Timeout" type="ser:duration"/>
xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/"
Here is the soap request:
I've emboldened the part that is causing the issue.
I've also attached the raw response.
<s:Envelope xmlns:s="">
<s:Header>
<RequestedDate>${SoapTestProperties#StartTime}</RequestedDate>
</s:Header>
<s:Body>
<SearchInputMessage xmlns="">
<Request xmlns:a="" xmlns:i="">
<a:Options xmlns:b="">
<b:DebugMode>false</b:DebugMode>
<b:MultiThreading>true</b:MultiThreading>
<b:UseCache>${SoapTestProperties#CacheOn}</b:UseCache>
</a:Options>
<a:Originator xmlns:b="">
<b:UrlReferer i:nil="true"/>
<b:UserAgent i:nil="true"/>
</a:Originator>
<a:SearchQueries xmlns:b="">
<b:TheQuery>
<b:Id>Alpha</b:Id>
<b:Timeout>${SoapTestProperties#TimeOut}</b:Timeout>
<b:CacheSeconds>30</b:CacheSeconds>
<b:Parameters><![CDATA[<Parameters>
<ThreadSleep>${SoapTestProperties#ThreadSleep}</ThreadSleep>
<Action>${SoapTestProperties#ActionType}</Action>
</Parameters>]]></b:Parameters>
<b:LoadParametersFromRepository>false</b:LoadParametersFromRepository>
</b:TheQuery>
</a:SearchQueries>
</Request>
<Extension i:nil="true" xmlns:a="" xmlns:i=""/>
</SearchInputMessage>
</s:Body>
</s:Envelope>
-- RAW REQUEST 000
<s:Envelope xmlns:s="">
<s:Header>
<RequestedDate>2010-11-12T10:25:31.992</RequestedDate>
</s:Header>
<s:Body>
<SearchInputMessage xmlns="">
<Request xmlns:a="" xmlns:i="">
<a:Options xmlns:b="">
<b:DebugMode>false</b:DebugMode>
<b:UseCache>false</b:UseCache>
</a:Options>
<a:Originator xmlns:b="">
<b:UrlReferer i:nil="true"/>
<b:UserAgent i:nil="true"/>
</a:Originator>
<a:SearchQueries xmlns:b="">
<b:TheQuery>
<b:Id>Alpha</b:Id>
<b:Timeout>PT1S</b:Timeout>
<b:CacheSeconds>30</b:CacheSeconds>
<b:Parameters><![CDATA[<Parameters>
<ThreadSleep>500</ThreadSleep>
<Action>Dummy Resultset</Action>
</Parameters>]]></b:Parameters>
<b:LoadParametersFromRepository>false</b:LoadParametersFromRepository>
</b:TheQuery>
</a:SearchQueries>
</Request>
<Extension i:nil="true" xmlns:a="" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
</SearchInputMessage>
</s:Body>
</s:Envelope>