34
Views
4
Comments
Configure Soap Web service timeout at runtime
Application Type
Traditional Web
Service Studio Version
10.0.911.0
Platform Version
10.0.1005.2

Hi

I am looking for option to set the timeout value of a consumed SOAP service method at runtime. 

I am aware of the 'Timeout in Seconds' property on the method, but this doesn't accept a site property or other variable which can be set dynamically.

I found the extension 'EnhancedWebReferences', i think this can be used to set timeout value but not sure how. If someone can help me here highly appreciate it. Thanks in advance.

UserImage.jpg
Alexandre Yip

Hi Ashwathram N, 

Use the Api httprequesthandler_api 

https://success.outsystems.com/documentation/11/reference/outsystems_apis/httprequesthandler_api/

Set Request Timeout method 

Check also this post 

https://www.outsystems.com/forums/discussion/65302/setrequesttimeout/

Regards 

UserImage.jpg
Ashwathram N

Hi @Alexandre Yip 

I am trying to test this feature, but i was told that using this action will work only for our exposed web services.

I am consuming the web service in my case, will the same work ? 

UserImage.jpg
Alexandre Yip

Hi Ashwathram N, 

Yes it will work 

Regards 

UserImage.jpg
Ashwathram N

Hi @Alexandre Yip 

I tried the same but using HttpRequestHandler is not working, we still seeing 100s getting applied even if setRequestTimeout is set to 30, before the connection is timeout.

If I set the TimeoutInSeconds field under webservice method for the consumed SOAP wsdl, its working fine. However in this approach i can have a dynamic value allowing to configure timeout based on other criteria, hence looking for alternatives like HttpRequestHandler.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.