Hi,
Can anybody tell me how to get information from the SOAP header while I'm in
my SOAP method.
import org.apache.soap.rpc.*;
import org.apache.soap.*;
import org.w3c.dom.*;
public class Foo
{
public void Bar(SOAPContext sc) {
String user_name=null;
// Get username from header
if (!IsAuthorized(user_name,"Bar")) {
throw IllegalAccessException("user does not have proper
authorization");
}
Bar_Impl();
}
private void Bar_Impl() {
// do something
}
}
I need to get the username from the SOAP header.
Thanks.
Pay