Consuming SOAP WS returns Error 401 unauthorized
问题 I am trying to consume a SOAP webservice using spring-ws. I am able to successfully consume this web service from SOAP UI. However I receive an unauthorized exception: org.springframework.ws.client.WebServiceTransportException: Unauthorized [401] at org.springframework.ws.client.core.WebServiceTemplate.handleError(WebServiceTemplate.java:699) How do I successfully authenticate? My code is as follows: WebServiceTemplate configuration: @Bean public WebServiceTemplate webServiceTemplate