Java Code Examples for com.sun.xml.internal.ws.api.message.Message#readEnvelopeAsSource()

The following examples show how to use com.sun.xml.internal.ws.api.message.Message#readEnvelopeAsSource() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JAXBDispatch.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 2
Source File: JAXBDispatch.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 3
Source File: JAXBDispatch.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 4
Source File: JAXBDispatch.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 5
Source File: JAXBDispatch.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 6
Source File: JAXBDispatch.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 7
Source File: JAXBDispatch.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 8
Source File: JAXBDispatch.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
Object toReturnValue(Packet response) {
    try {
        Unmarshaller unmarshaller = jaxbcontext.createUnmarshaller();
        Message msg = response.getMessage();
        switch (mode) {
            case PAYLOAD:
                return msg.<Object>readPayloadAsJAXB(unmarshaller);
            case MESSAGE:
                Source result = msg.readEnvelopeAsSource();
                return unmarshaller.unmarshal(result);
            default:
                throw new WebServiceException("Unrecognized dispatch mode");
        }
    } catch (JAXBException e) {
        throw new WebServiceException(e);
    }
}
 
Example 9
Source File: SOAPSourceDispatch.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 10
Source File: SOAPSourceDispatch.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 11
Source File: SOAPSourceDispatch.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 12
Source File: SOAPSourceDispatch.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 13
Source File: SOAPSourceDispatch.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 14
Source File: SOAPSourceDispatch.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 15
Source File: SOAPSourceDispatch.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}
 
Example 16
Source File: SOAPSourceDispatch.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
Source toReturnValue(Packet response) {
    Message msg = response.getMessage();

    switch (mode) {
    case PAYLOAD:
        return msg.readPayloadAsSource();
    case MESSAGE:
        return msg.readEnvelopeAsSource();
    default:
        throw new WebServiceException("Unrecognized dispatch mode");
    }
}