Package org.jibx.ws

Examples of org.jibx.ws.WsException


        XmlReaderWrapper rdr = XmlReaderWrapper.createXmlReaderWrapper(xmlReader);
        try {
            rdr.parsePastStartTag(null, ELEMENT_NAME);
            content = rdr.parseContentText(null, ELEMENT_NAME);
        } catch (JiBXException e) {
            throw new WsException("Unable to parse exception: ", e);
        }
        return content;
    }
View Full Code Here


     * attributeName specified in the constructor.
     */
    public void invoke(OutContext context, IXMLWriter xmlWriter) throws IOException, WsException {
        Object payload = context.getAttribute(m_attributeName);
        if (payload == null) {
            throw new WsException("Unable to write header data since attribute " + m_attributeName
                + " is null in OutContext");
        }
        m_marshaller.invoke(xmlWriter, payload);
    }
View Full Code Here

     * @param faultActor URI for fault origination (optional, may be <code>null</code>).
     * @throws WsException if SOAP Fault details violate the SOAP specification
     */
    public SoapFault(QName faultCode, String faultString, String faultActor) throws WsException {
        if (faultCode == null || faultString == null) {
            throw new WsException("faultCode and faultString must be non-null");
        }
        if (faultCode.getUri() == null) {
            throw new WsException("faultCode URI must be non-null");
        }
        if (!faultCode.getUri().equals(SoapConstants.SOAP_URI)) {
            if (faultCode.getPrefix() == null) {
                throw new WsException("faultCode prefix must be non-null for custom URIs");
            }
        }
        m_faultCode = faultCode;
        m_faultString = faultString;
        m_faultActor = faultActor;
View Full Code Here

                }
            } catch (IOException e) {
                throw new WsConfigurationException("Error reading WSDL file '" + sdef.getWsdlFilepath() + "'");
            }
        } catch (InstantiationException e) {
            throw new WsException("Error creating endpoint service object", e);
        } catch (IllegalAccessException e) {
            throw new WsException("Unable to create endpoint service object", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.jibx.ws.WsException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.