Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Web Service Client - how do I set basic Authentication userid / password

  1. #11
    Join Date
    Jan 2010
    Posts
    1

    Default

    Quote Originally Posted by Arjen Poutsma View Post
    No bug , but you need to call afterPropertiesSet() on the CommonsHttpMessageSender. This sets the credentials on the client. Invoking afterPropertiesSet() is automatically done by the Spring container, so if you create a bean definition for the message sender, and inject it into the web service template, this is all taken care off.
    Thanks a lot, that fixed my problem.

  2. #12
    Join Date
    Mar 2011
    Posts
    3

    Thumbs up

    Quote Originally Posted by Arjen Poutsma View Post
    No bug , but you need to call afterPropertiesSet() on the CommonsHttpMessageSender. This sets the credentials on the client. Invoking afterPropertiesSet() is automatically done by the Spring container, so if you create a bean definition for the message sender, and inject it into the web service template, this is all taken care off.
    Thanks for the response!! After three or four days trying to solve this; i decided to check at the forums and found your quickly and concrete response

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •