//
if (toURI == null)
{
Object[] filler = { WsaConstants.TO_QNAME };
throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
}
if (_action == null)
{
Object[] filler = { WsaConstants.ACTION_QNAME };
throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
}
//
// wsa:To is a URI, but we want to access it as an EPR
//
_to = new EndpointReference(URI.create(toURI));
//
// read in optional EPR values that tell us where to send replies
//
_faultTo = getEPR(soapHeaders, WsaConstants.FAULT_TO_QNAME);
_from = getEPR(soapHeaders, WsaConstants.FROM_QNAME);
_replyTo = getEPR(soapHeaders, WsaConstants.REPLY_TO_QNAME);
if (_messageID == null && (_from != null || _replyTo != null))
throw new SoapFault(_MESSAGES.get("MessageIDMissing"));
Element[] children = XmlUtils.getAllElements(soapHeaders);
//
// NOTE: add all elements to the ReferenceProperties, since WS-A