String address = "http://localhost:9104/SoapHeaderContext/SoapHeaderPort";
endpoint = (EndpointImpl) Endpoint.publish(address, implementor);
endpoint.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
endpoint.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
implementor = new TestRPCHeaderImpl();
address = "http://localhost:9104/SoapHeaderRPCContext/SoapHeaderRPCPort";
rpcEndpoint = (EndpointImpl)Endpoint.publish(address, implementor);
rpcEndpoint.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
rpcEndpoint.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
}