• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Web Service Clients in Spring

 
Yashwant Palkar
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently we are using spring web service client configured in spring configuration.xml.
I have to add another web service client and it needs to be configured in same configuration file.
Both webservices have different credentials for them.
i have configured 2 different webservicetemplate for them and 2 different messageSenders.




In this credentials of second web service teamplate are overridden by credential of first web service template. Whereas I have created all proprties different from first one.
is there any other way to set credentials of second web service client.

Thanks
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try pulling this bean out and giving it an id. Then for the property use the ref tag to refer to it.



I believe that Spring names those beans automatically using the class name and if there is more than one bean of the same class it appends a number to them. But its worth a try just to make sure that is not causing your problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic