public SOAPFactory getSOAPFactory() { return soapVersion.getSOAPFactory(); }
public SOAPFactory getSOAPFactory() { return soapVersion.getSOAPFactory(); }
public SOAPFactory getSOAPFactory() { return soapVersion.getSOAPFactory(); }
private static void addHeader(Message m, Set<QName> notUnderstoodHeaders) throws SOAPException { for (QName qname : notUnderstoodHeaders) { SOAPElement soapEl = SOAP_12.getSOAPFactory().createElement(MU_HEADER_DETAIL); soapEl.addNamespaceDeclaration("abc", qname.getNamespaceURI()); soapEl.setAttribute("qname", "abc:" + qname.getLocalPart()); Header header = new DOMHeader<Element>(soapEl); m.getHeaders().add(header); } } }
private static void addHeader(Message m, Set<QName> notUnderstoodHeaders) throws SOAPException { for (QName qname : notUnderstoodHeaders) { SOAPElement soapEl = SOAP_12.getSOAPFactory().createElement(MU_HEADER_DETAIL); soapEl.addNamespaceDeclaration("abc", qname.getNamespaceURI()); soapEl.setAttribute("qname", "abc:" + qname.getLocalPart()); Header header = new DOMHeader<Element>(soapEl); m.getHeaders().add(header); } } }
private static void addHeader(Message m, Set<QName> notUnderstoodHeaders) throws SOAPException { for (QName qname : notUnderstoodHeaders) { SOAPElement soapEl = SOAP_12.getSOAPFactory().createElement(MU_HEADER_DETAIL); soapEl.addNamespaceDeclaration("abc", qname.getNamespaceURI()); soapEl.setAttribute("qname", "abc:" + qname.getLocalPart()); Header header = new DOMHeader<Element>(soapEl); m.getHeaders().add(header); } } }
/** * @param notUnderstoodHeaders * @return SOAPfaultException with SOAPFault representing the MustUnderstand SOAP Fault. * notUnderstoodHeaders are added in the fault detail. */ final SOAPFaultException createMUSOAPFaultException(Set<QName> notUnderstoodHeaders) { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault( MUST_UNDERSTAND_FAULT_MESSAGE_STRING, soapVersion.faultCodeMustUnderstand); fault.setFaultString("MustUnderstand headers:" + notUnderstoodHeaders + " are not understood"); return new SOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } }
/** * @param notUnderstoodHeaders * @return SOAPfaultException with SOAPFault representing the MustUnderstand SOAP Fault. * notUnderstoodHeaders are added in the fault detail. */ final SOAPFaultException createMUSOAPFaultException(Set<QName> notUnderstoodHeaders) { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault( MUST_UNDERSTAND_FAULT_MESSAGE_STRING, soapVersion.faultCodeMustUnderstand); fault.setFaultString("MustUnderstand headers:" + notUnderstoodHeaders + " are not understood"); return new SOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } }
/** * @param notUnderstoodHeaders * @return SOAPfaultException with SOAPFault representing the MustUnderstand SOAP Fault. * notUnderstoodHeaders are added in the fault detail. */ final SOAPFaultException createMUSOAPFaultException(Set<QName> notUnderstoodHeaders) { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault( MUST_UNDERSTAND_FAULT_MESSAGE_STRING, soapVersion.faultCodeMustUnderstand); fault.setFaultString("MustUnderstand headers:" + notUnderstoodHeaders + " are not understood"); return new SOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeServer); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeClient); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeServer); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
private SOAPFaultException createDuplicateHeaderException() { try { SOAPFault fault = soapVersion.getSOAPFactory().createFault(); fault.setFaultCode(soapVersion.faultCodeServer); fault.setFaultString(ServerMessages.DUPLICATE_PORT_KNOWN_HEADER(headerName)); return new SOAPFaultException(fault); } catch(SOAPException e) { throw new WebServiceException(e); } }
protected Throwable getProtocolException() { try { SOAPFault fault = SOAPVersion.SOAP_11.getSOAPFactory().createFault(faultstring, faultcode); fault.setFaultActor(faultactor); if(detail != null){ Detail d = fault.addDetail(); for(Element det : detail.getDetails()){ Node n = fault.getOwnerDocument().importNode(det, true); d.appendChild(n); } } return new ServerSOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } } }
protected Throwable getProtocolException() { try { SOAPFault fault = SOAPVersion.SOAP_11.getSOAPFactory().createFault(faultstring, faultcode); fault.setFaultActor(faultactor); if(detail != null){ Detail d = fault.addDetail(); for(Element det : detail.getDetails()){ Node n = fault.getOwnerDocument().importNode(det, true); d.appendChild(n); } } return new ServerSOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } } }
protected Throwable getProtocolException() { try { SOAPFault fault = SOAPVersion.SOAP_11.getSOAPFactory().createFault(faultstring, faultcode); fault.setFaultActor(faultactor); if(detail != null){ Detail d = fault.addDetail(); for(Element det : detail.getDetails()){ Node n = fault.getOwnerDocument().importNode(det, true); d.appendChild(n); } } return new ServerSOAPFaultException(fault); } catch (SOAPException e) { throw new WebServiceException(e); } } }
public SOAPFault createInvalidAddressingHeaderFault(InvalidAddressingHeaderException e, AddressingVersion av) { QName name = e.getProblemHeader(); QName subsubcode = e.getSubsubcode(); QName subcode = av.invalidMapTag; String faultstring = String.format(av.getInvalidMapText(), name, subsubcode); try { SOAPFactory factory; SOAPFault fault; if (soapVer == SOAPVersion.SOAP_12) { factory = SOAPVersion.SOAP_12.getSOAPFactory(); fault = factory.createFault(); fault.setFaultCode(SOAPConstants.SOAP_SENDER_FAULT); fault.appendFaultSubcode(subcode); fault.appendFaultSubcode(subsubcode); getInvalidMapDetail(name, fault.addDetail()); } else { factory = SOAPVersion.SOAP_11.getSOAPFactory(); fault = factory.createFault(); fault.setFaultCode(subsubcode); } fault.setFaultString(faultstring); return fault; } catch (SOAPException se) { throw new WebServiceException(se); } }
public SOAPFault createInvalidAddressingHeaderFault(InvalidAddressingHeaderException e, AddressingVersion av) { QName name = e.getProblemHeader(); QName subsubcode = e.getSubsubcode(); QName subcode = av.invalidMapTag; String faultstring = String.format(av.getInvalidMapText(), name, subsubcode); try { SOAPFactory factory; SOAPFault fault; if (soapVer == SOAPVersion.SOAP_12) { factory = SOAPVersion.SOAP_12.getSOAPFactory(); fault = factory.createFault(); fault.setFaultCode(SOAPConstants.SOAP_SENDER_FAULT); fault.appendFaultSubcode(subcode); fault.appendFaultSubcode(subsubcode); getInvalidMapDetail(name, fault.addDetail()); } else { factory = SOAPVersion.SOAP_11.getSOAPFactory(); fault = factory.createFault(); fault.setFaultCode(subsubcode); } fault.setFaultString(faultstring); return fault; } catch (SOAPException se) { throw new WebServiceException(se); } }