Java Reference
In-Depth Information
Additional workarounds
In the event that your provider insists on defining implicit headers that don't make it into your
generated code, and you can't or don't want to use one of the methods just specified, perhaps
you can use one of the following workarounds:
▪ Modify the generated SEIs by adding the parameters to their methods. In general,
however, you want to avoid modifying generated code because then you will need to
maintain it under version control. And this solution is not feasible if you regenerate this
code during builds. Therefore, this is probably not something you would ever really want
to do.
▪ Kick it old school and use the SAAJ API.
▪ Use your vendor's IDE to add headers.
▪ Add the headers to their own message, that is, send them prior to sending your actual con-
tent message. This is possible with multiple vendor implementations, including Apache
CXF, but it is optional in the JAX-WS specification, and is therefore not recommended.
See Also
Adding Headers to a SOAP Request .
Search WWH ::




Custom Search