Hi,

I am trying to add a HTTP(S) request header when I am creating my SOAP client 
(from autogenerated code by wsdl2java).

The client is created easily enough:

SSNLookupService ssnLookupService = new SSNLookupService(ssnUrl);
ssnLookupServiceClient = 
ssnLookupService.getBasicHttpBindingISSNLookupService();         

Problem is, during these two lines, a request is sent to get the WSDL, but for 
that WSDL to be returned, I need to add a custom HTTP header.

I have not been able to find the path to do this.

I expect I have to interact with ssnLookupService (SSNLookupService extends 
javax.xml.ws.Service) but having search for a while, I can find no examples on 
how to do this.

I ask here as I think this could be CXF specific, but I honestly don't know.

Thank you,

/Bernhard

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to