Java Code Examples for com.sun.xml.internal.ws.api.message.Message#readPayloadAsJAXB()
The following examples show how to use
com.sun.xml.internal.ws.api.message.Message#readPayloadAsJAXB() .
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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: SOAPFaultBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 10
Source File: SOAPFaultBuilder.java From jdk8u60 with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 11
Source File: SOAPFaultBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 12
Source File: SOAPFaultBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 13
Source File: SOAPFaultBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 14
Source File: SOAPFaultBuilder.java From hottub with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 15
Source File: SOAPFaultBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }
Example 16
Source File: SOAPFaultBuilder.java From openjdk-8 with GNU General Public License v2.0 | 2 votes |
/** * Parses a fault {@link Message} and returns it as a {@link SOAPFaultBuilder}. * * @return always non-null valid object. * @throws JAXBException if the parsing fails. */ public static SOAPFaultBuilder create(Message msg) throws JAXBException { return msg.readPayloadAsJAXB(JAXB_CONTEXT.createUnmarshaller()); }