For example, for a client using Java JAX-WS stack you need to add the following method, and invoke it
before executing any operation.
import java.util.Map;
import javax.xml.ws.BindingProvider;
//...
private static void addHttpBasicAuthentication(PapiWebService papiWebServicePort) {
Map<String,Object> requestContext = ((BindingProvider) papiWebServicePort).getRequestContext();
requestContext.put(BindingProvider.USERNAME_PROPERTY, "test");
requestContext.put(BindingProvider.PASSWORD_PROPERTY, "test");
}
//...