Closed
Description
Jeff Peterson opened SWS-153 and commented
A great deal of important classes are package private. While writing an interceptor, I discovered that I would need access to some of these classes in order to appropriately process the message.
For example, I was trying to add some header elements to an outgoing message.
// create header element
SoapMessage msg = (SoapMessage) messageContext.getResponse();
SoapHeaderElement security = msg.getEnvelope().getHeader().addHeaderElement(WSSE_SECURITY);
// add child elements
// but I can't do this because SaajSoapHeaderElement is package-private
((SaajSoapHeaderElement) security).getSaajHeaderElement().addChildElement(...);
When I was poking around in the SVN i noticed a ton of package-private classes. May i suggest that they be made public?
org.springframework.ws.soap.saaj.*
org.springframework.ws.soap.axiom.*
...
Affects: 1.0 M3
Attachments:
- SWS-153.patch (16.86 kB)
Issue Links:
- AxiomSoapHeaderElement has no convenient way to access child elements of the header element [SWS-243] #396 AxiomSoapHeaderElement has no convenient way to access child elements of the header element