I want send SOAP headers using WSBindingProvider. I saw an example where it's used a JAXBRIContext to create headers but I don't understand how get an instance of this class. This is the example:
...
HelloService helloService = new HelloService();
HelloPort port = helloService.getHelloPort();
WSBindingProvider bp = (WSBindingProvider)port;
bp.setOutboundHeaders(
Headers.create(JAXBRIContext context, Object o)
);
...
The method createInstance of JAXBRIContext take various parameter that I don't understand. This is the signature of the method:
public static JAXBRIContext newInstance(Class[] classes,
Collection<TypeReference> typeRefs,
Map<Class, Class> subclassReplacements,
String defaultNamespaceRemap,
boolean c14nSupport,
RuntimeAnnotationReader ar) throws JAXBException
Someone can explain me the parameter that I should pass to this method. Thanks everybody in advance and sorry for my english.