Here’s a short write-up of the answer to a question I was posed by a colleague yesterday: how do you set the timeout for a web service import? The answer, as any good consultant would say, is that it depends…
If you’re using JAX-RPC bindings then you have a couple of options. To set the timeout at development time, right-click on the module in the Business Integration View of WebSphere Integration Developer and select Open Deployment Editor. Then select the Imports tab and then the slightly misleadingly named WS-Security Bindings tab. Select the import in question and then scroll down and expand the Port Qualified Name Binding Details. Here you will find the required property which is called Synchronization timeout. Alternatively, you can set the timeout after deployment of the module using the mechanism described in this technote.
If you’re using a JAX-WS binding then you need to take a different approach. In the server runtime, define a new policy set that contains a HTTP transport policy as described in the Application Server InfoCenter. This policy set has a Connection timeout property (in addition to many other settings). Export the policy set and then import it in to WebSphere Integration Developer (File > Import then Web services > WebSphere Policy Sets). At this point I then had to restart WebSphere Integration Developer to pick up the new policy set. Then select the import on the assembly diagram and on the Properties tab select the Binding > Policy Sets panel. Here you can select the default policy set for the binding.