Executing a web service based SmartObject from inside a View is slower than executing it from the SMO Tester Tool
kbt132886
PRODUCTIssue
When you open a Form or View in Runtime and execute any method on a SmartObject that pulls data from a web service, it will take about 9 seconds or longer. For example, when you use a Picker Control that retrieves values from a web service, or when transferring data from a SmartObject into a Data Field, etc.
When you use the SmartObject Services Tester Tool, then it will take 1 second or less.
Symptoms
This specific scenario happens in one environment but not in a different environment, which means there is a configuration difference.
Use tools like F12 Dev Tools in any browser or Fiddler to analyse the packets and their delay.
The general symptoms are that this takes a long time when executing from inside a web browser, but is very quick when executing from within the SmartObject Services Tester Tool.
Resolution
1. Open the following config file in Notepad:
2. Make sure you add the Application Pool account for K2 SmartForms to that file, like the following:
<allowedCallers>
<clear />
<add value="DOMAINK2SmartFormsApplicationPoolAccount" />
</allowedCallers>
3. Save the file
4. Restart the K2 Claims to Windows Token Service
5. Restart the K2 Blackpearl Service
6. Restart IIS Service (IISRESET)
The execution time on a Form should be the same as on the SmartObjects Services Tester Tool.