Please let me know how to read custom SOAP headers from within the webservice code. Using the following I can get the Identities and Profiles from the Header
IServiceContext svcContext = ContextFactory.getInstance().getContext();
Iterator identityItr = svcContext.getIdentities();
Iterator profileItr = svcContext.getProfiles();