@Test public void parseFault() throws Exception { ProxyMessageDecoder decoder = createDecoder(MimeTypes.TEXT_XML); decoder.parse(getQuery("fault.query")); assertNotNull(callback.getFault()); }
private void parseFault(InputStream is) throws Exception { Soap soap = new SaxSoapParserImpl().parse(MimeTypes.TEXT_XML_UTF8, is); if (!(soap instanceof SoapFault)) { throw new CodedException(X_INVALID_MESSAGE, "Expected fault message, but got reqular SOAP message"); } callback.fault((SoapFault) soap); }
ProxyMessageDecoder { private void parseFault(InputStream is) throws Exception { Soap soap = new SaxSoapParserImpl().parse(MimeTypes.TEXT_XML_UTF8, is); if (!(soap instanceof SoapFault)) { throw new CodedException(X_INVALID_MESSAGE, "Expected fault message, but got reqular SOAP message"); } callback.fault((SoapFault) soap); } }
ProxyMessageDecoder { private void parseFault(InputStream is) throws Exception { Soap soap = new SaxSoapParserImpl().parse(MimeTypes.TEXT_XML_UTF8, is); if (!(soap instanceof SoapFault)) { throw new CodedException(X_INVALID_MESSAGE, "Expected fault message, but got reqular SOAP message"); } callback.fault((SoapFault) soap); } ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, String hashAlgoId);  ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, boolean faultAllowed, String hashAlgoId); }
ProxyMessageDecoder { private void parseFault(InputStream is) throws Exception { Soap soap = new SaxSoapParserImpl().parse(MimeTypes.TEXT_XML_UTF8, is); if (!(soap instanceof SoapFault)) { throw new CodedException(X_INVALID_MESSAGE, "Expected fault message, but got reqular SOAP message"); } callback.fault((SoapFault) soap); } ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, String hashAlgoId);  ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, boolean faultAllowed, String hashAlgoId); void parse(InputStream is); void verify(ClientId sender, SignatureData signatureData); int getAttachmentCount(); }
ProxyMessageDecoder { private void parseFault(InputStream is) throws Exception { Soap soap = new SaxSoapParserImpl().parse(MimeTypes.TEXT_XML_UTF8, is); if (!(soap instanceof SoapFault)) { throw new CodedException(X_INVALID_MESSAGE, "Expected fault message, but got reqular SOAP message"); } callback.fault((SoapFault) soap); } ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, String hashAlgoId);  ProxyMessageDecoder(ProxyMessageConsumer callback,
                               String contentType, boolean faultAllowed, String hashAlgoId); void parse(InputStream is); void verify(ClientId sender, SignatureData signatureData); int getAttachmentCount();  }