Hi All,
I am trying to configure a
SOAP client to connect and authenticate to a WS. This uses http basic authentication. The client is a Maven-Spring-Axis2 project.
My
Java code is:
My app-context.xml causes errors:
The xml editor shows errors for the <http>, <authentication-manager>, <context:component-scan> tags. Obviously, the namespace is incorrect. I copied the <beans> starting element and the above mentioned elements from here:
http://static.springsource.org/spring-security/site/docs/3.1.x/reference/ns-config.html
and i also tried several Google hits from the net. None of them worked. My actual app-context.xml is:
My original app-context.xml was OK, but when i added the security related tags, it caused the same problem. Without them i got of course a 401 - Unauthorized error. Not xml related error.
Could anyone please answer with a valid app-context.xml (whatever it's name is) with http basic authentication?