com.sun.xml.internal.ws.message.jaxb.JAXBMessage Java Examples

The following examples show how to use com.sun.xml.internal.ws.message.jaxb.JAXBMessage. 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: SOAPFaultBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #2
Source File: SOAPFaultBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #3
Source File: SOAPFaultBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #4
Source File: SOAPFaultBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #5
Source File: SOAPFaultBuilder.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #6
Source File: SOAPFaultBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #7
Source File: SOAPFaultBuilder.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #8
Source File: SOAPFaultBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #9
Source File: SOAPFaultBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #10
Source File: SOAPFaultBuilder.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #11
Source File: SOAPFaultBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #12
Source File: SOAPFaultBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #13
Source File: SOAPFaultBuilder.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #14
Source File: SOAPFaultBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public static Message createSOAPFaultMessage(SOAPVersion soapVersion, SOAPFault fault) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(fault), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(fault), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #15
Source File: SOAPFaultBuilder.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #16
Source File: SOAPFaultBuilder.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private static Message createSOAPFaultMessage(SOAPVersion soapVersion, String faultString, QName faultCode, Element detail) {
    switch (soapVersion) {
        case SOAP_11:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP11Fault(faultCode, faultString, null, detail), soapVersion);
        case SOAP_12:
            return JAXBMessage.create(JAXB_CONTEXT, new SOAP12Fault(faultCode, faultString, detail), soapVersion);
        default:
            throw new AssertionError();
    }
}
 
Example #17
Source File: BodyBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
final Message createMessage(Object[] methodArgs) {
    return JAXBMessage.create( bridge, build(methodArgs), soapVersion );
}
 
Example #18
Source File: EndpointResponseMessageBuilder.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public final Message createMessage(Object[] methodArgs, Object returnValue) {
    return JAXBMessage.create( bridge, build(methodArgs, returnValue), soapVersion );
}
 
Example #19
Source File: LogicalMessageImpl.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) {
    return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments);
}
 
Example #20
Source File: LogicalMessageImpl.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) {
    return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments);
}
 
Example #21
Source File: BodyBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
final Message createMessage(Object[] methodArgs) {
    return JAXBMessage.create( bridge, build(methodArgs), soapVersion );
}
 
Example #22
Source File: EndpointResponseMessageBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public final Message createMessage(Object[] methodArgs, Object returnValue) {
    return JAXBMessage.create( bridge, build(methodArgs, returnValue), soapVersion );
}
 
Example #23
Source File: BodyBuilder.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
final Message createMessage(Object[] methodArgs) {
    return JAXBMessage.create( bridge, build(methodArgs), soapVersion );
}
 
Example #24
Source File: LogicalMessageImpl.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) {
    return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments);
}
 
Example #25
Source File: EndpointResponseMessageBuilder.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public final Message createMessage(Object[] methodArgs, Object returnValue) {
    return JAXBMessage.create( bridge, build(methodArgs, returnValue), soapVersion );
}
 
Example #26
Source File: BodyBuilder.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
final Message createMessage(Object[] methodArgs) {
    return JAXBMessage.create( bridge, build(methodArgs), soapVersion );
}
 
Example #27
Source File: LogicalMessageImpl.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) {
    return JAXBMessage.create(BindingContextFactory.create(ctxt), o,binding.getSOAPVersion(), headers,attachments);
}
 
Example #28
Source File: BodyBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
final Message createMessage(Object[] methodArgs) {
    return JAXBMessage.create( bridge, build(methodArgs), soapVersion );
}
 
Example #29
Source File: EndpointResponseMessageBuilder.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public final Message createMessage(Object[] methodArgs, Object returnValue) {
    return JAXBMessage.create( bridge, build(methodArgs, returnValue), soapVersion );
}
 
Example #30
Source File: EndpointResponseMessageBuilder.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public final Message createMessage(Object[] methodArgs, Object returnValue) {
    return JAXBMessage.create( bridge, build(methodArgs, returnValue), soapVersion );
}