Hi

I've reviewed the mailing lists and tried the samples but I am still having an 
issue getting Basic Auth to work within my J2ee container using Axis 1.2.

I believe I have the roles, groups and users setup on the web service side.  
When I make a request into my container I am receiving: Axis fault: 
(401)Unauthorized

Which leads me to believe I have things enabled correctly.

On the client side I have setup my code as follows:

String endpoint = "http://localhost:8080/axis/services/somemessage";;
Service service = new Service();
Call    call    = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("addSomeMessage"));
call.setUsername("test");
call.setPassword("abcd");

Now, whenever I make this call I get the 401 message back to my client.  

Is there some additonal deployment configuration I need to modify to enable 
this auth to happen?

<service name="somemessage" provider="java:RPC" style="rpc" use="encoded">
   <requestFlow><handler type="soapmonitor" /></requestFlow>
   <responseFlow><handler type="soapmonitor" /></responseFlow>
...
</service>

It is my hope that I can somehow access the soap header information and perform 
what ever auth action is required to either allow the clients call to continue 
or fail.  Would this auth code be found in the generated 
somemessageSoapBindingImpl file?

Any and all advice would be most welcomed.

Reg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to