use of com.sun.xml.stream.buffer.XMLStreamBufferException in project metro-jax-ws by eclipse-ee4j.
the class OutboundStreamHeader method writeTo.
public void writeTo(SOAPMessage saaj) throws SOAPException {
try {
SOAPHeader header = saaj.getSOAPHeader();
if (header == null)
header = saaj.getSOAPPart().getEnvelope().addHeader();
infoset.writeTo(header);
} catch (XMLStreamBufferException e) {
throw new SOAPException(e);
}
}
use of com.sun.xml.stream.buffer.XMLStreamBufferException in project metro-jax-ws by eclipse-ee4j.
the class OutboundReferenceParameterHeader method writeTo.
@Override
public void writeTo(SOAPMessage saaj) throws SOAPException {
// which leads to NPE.
try {
SOAPHeader header = saaj.getSOAPHeader();
if (header == null) {
header = saaj.getSOAPPart().getEnvelope().addHeader();
}
Element node = (Element) infoset.writeTo(header);
node.setAttributeNS(AddressingVersion.W3C.nsUri, AddressingVersion.W3C.getPrefix() + ":" + IS_REFERENCE_PARAMETER, TRUE_VALUE);
} catch (XMLStreamBufferException e) {
throw new SOAPException(e);
}
}
Aggregations