I use a Maven plugin (org.codehaus.mojo
> axistools-maven-plugin
) + a WSDL file to generate a Soap Web Service.
Genarated files in target/generated-source/wsdl2java/com.comp.proj are:
- Foo.java (java interface)
- FooServiceLocator.java
- FooSoapBindingImpl.java (java empty implementation)
- FooSoapBindingSkeleton.java
- FooSoapBindingStub.java
In my project, i create FooSoapBindingImpl.java
in a package with the same name + add my custom code in this java implementation.
This Web services is ready for use in production.
So, today I add Basic authentication on my client (header => Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==)
How to add a check on this Basic authentication in my Axis Web Service?