public @NotNull WSEndpointReference readAsEPR(AddressingVersion expected) throws XMLStreamException{ if(header != null){ return header.readAsEPR(expected); } throw new UnsupportedOperationException(); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
private WSEndpointReference getEPR(QName tag) throws XMLStreamException { if (packet.getMessage() == null) { return null; } Header h = packet.getMessage().getHeaders().get(tag, false); if(h==null) return null; return h.readAsEPR(addressingVersion); }
public static WSEndpointReference getFaultTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.faultToTag, true, sv); WSEndpointReference faultTo = null; if (h != null) { try { faultTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.FAULT_TO_CANNOT_PARSE(), e); } } return faultTo; }
public static WSEndpointReference getFaultTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.faultToTag, true, sv); WSEndpointReference faultTo = null; if (h != null) { try { faultTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.FAULT_TO_CANNOT_PARSE(), e); } } return faultTo; }
public static WSEndpointReference getFaultTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.faultToTag, true, sv); WSEndpointReference faultTo = null; if (h != null) { try { faultTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.FAULT_TO_CANNOT_PARSE(), e); } } return faultTo; }
public static WSEndpointReference getReplyTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.replyToTag, true, sv); WSEndpointReference replyTo; if (h != null) { try { replyTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.REPLY_TO_CANNOT_PARSE(), e); } } else { replyTo = av.anonymousEpr; } return replyTo; } public static String getTo(MessageHeaders headers, AddressingVersion av, SOAPVersion sv) {
public static WSEndpointReference getReplyTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.replyToTag, true, sv); WSEndpointReference replyTo; if (h != null) { try { replyTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.REPLY_TO_CANNOT_PARSE(), e); } } else { replyTo = av.anonymousEpr; } return replyTo; } public static String getTo(MessageHeaders headers, AddressingVersion av, SOAPVersion sv) {
public static WSEndpointReference getReplyTo(@NotNull MessageHeaders headers, @NotNull AddressingVersion av, @NotNull SOAPVersion sv) { if (av == null) { throw new IllegalArgumentException(AddressingMessages.NULL_ADDRESSING_VERSION()); } Header h = getFirstHeader(headers, av.replyToTag, true, sv); WSEndpointReference replyTo; if (h != null) { try { replyTo = h.readAsEPR(av); } catch (XMLStreamException e) { throw new WebServiceException(AddressingMessages.REPLY_TO_CANNOT_PARSE(), e); } } else { replyTo = av.anonymousEpr; } return replyTo; } public static String getTo(MessageHeaders headers, AddressingVersion av, SOAPVersion sv) {
try{ if (replyToFromRequestMsg != null){ replyTo = replyToFromRequestMsg.readAsEPR(av);
try{ if (replyToFromRequestMsg != null){ replyTo = replyToFromRequestMsg.readAsEPR(av);
try{ if (replyToFromRequestMsg != null){ replyTo = replyToFromRequestMsg.readAsEPR(av);