Java 8 WebServiceException - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 WebServiceException class.

This code example shows how to use the following methods:
            arg1.createMarshaller().marshal(arg0, writer);
            Source source = new DOMSource(writer.getDocument().getDocumentElement());            
             
            setPayload(source);
        } catch (JAXBException e) {
            throw new WebServiceException(e);
        } 
    } 
    
    private void write(Source source, Node n) {
        try { 
            if (source instanceof DOMSource && ((DOMSource)source).getNode() == null) {
                return; 
            } 
 
            XMLStreamWriter writer = new W3CDOMStreamWriter((Element)n);
            StaxUtils.copy(source, writer);
        } catch (XMLStreamException e) {
            throw new Fault(e);
        } 
8
CodeRank
This code example shows how to use the following methods:
		} catch (ServiceInvocationException e) { 
			throw new WebServiceException(e); 
		} 
 
		if (outParams.size() == 0) { 
			throw new WebServiceException(new ServiceException(ErrorDataFactory.createErrorData( 
					ErrorConstants.SVC_RT_MSG_ACCESS_VOID_DATA, ErrorConstants.ERRORDOMAIN))); 
		} 
 
		return outParams.size() > 0 ? outParams.get(0) : null; 
	} 
 
	@Override 
	protected InboundMessageImpl preProcessMessageForDispatch(String opName, 
			Object inArg) throws ServiceException { 
 
		Object[] inParams = getInParam(inArg); 
 
		return preProcessMessage(opName, false, false, inParams, null, null, 
				null, true); 
8
CodeRank
This code example shows how to use the following methods:
 
    public Source invoke(Source source) {
        try { 
            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.PAYLOAD);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public DataSource invoke(DataSource dataSource) {
        try { 
            return MessageUtils.createResponseHTTPDataSource(); 
        } catch (IOException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public Source invoke(Source source) {
        try { 
            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.MESSAGE);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public Source invoke(Source source) throws WebServiceException {
        try { 
            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.PAYLOAD);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public SOAPMessage invoke(SOAPMessage soapMessage) {
        try { 
            return MessageUtils.createResponseSOAPMessage(SOAPConstants.SOAP_1_2_PROTOCOL);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public Source invoke(Source source) throws WebServiceException {
        try { 
            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_1_PROTOCOL, Service.Mode.MESSAGE);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public SOAPMessage invoke(SOAPMessage soapMessage) throws WebServiceException {
        try { 
            return MessageUtils.createResponseSOAPMessage(SOAPConstants.SOAP_1_1_PROTOCOL);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
This code example shows how to use the following methods:
 
    public Source invoke(Source source) {
        try { 
            return MessageUtils.createResponseSOAPSource(SOAPConstants.SOAP_1_2_PROTOCOL, Service.Mode.MESSAGE);
        } catch (SOAPException e) {
            throw new WebServiceException(e);
        } 
    } 
} 
8
CodeRank
See Code Examples for Java 8 WebServiceException Methods: