Mar 25th, 2009, 08:28 AM
Spring WS Client Performance Issue
We've run into performance issue with our application using Spring-WS Clients. We are using the WebServiceTemplate with AxiomMessageFactory and CommonsHttpMessageSender and Wss4jSecurityInterceptor for signing service requests and validating service responses. We have to go with payloadCaching due to WS Security.
We have multiple WebServiceTemplates for different service calls that use the same AxiomMessageFactory, MessageSender and Interceptors.
Our application runs on Web Sphere and we enabled Wily Interscope to see which pieces may be attributing to the poor response times. It looks like on the client side the two methods that contribute the most to the response times are:
AxiomUtils toDocument method when validating the responses from the service.
I understand that the Wss4jInterceptor needs to build the document tree for validation and for large messages this may be an issue. But is there any way around this?
Also, the onSendAfterWriteMethod is where the http post method is being executed. So is it that all the time that this method takes is the network and the service processing time?