Search in sources :

Example 6 with JAXBResult

use of jakarta.xml.bind.util.JAXBResult in project metro-jax-ws by eclipse-ee4j.

the class EprMarshalUnmarshalTester method testMSEprMarshalling1.

public void testMSEprMarshalling1() throws Exception {
    JAXBContext ctx = JAXBContext.newInstance(com.sun.xml.ws.developer.MemberSubmissionEndpointReference.class);
    JAXBResult res = new JAXBResult(ctx);
    com.sun.xml.ws.developer.MemberSubmissionEndpointReference mepr = new com.sun.xml.ws.developer.MemberSubmissionEndpointReference();
    mepr.writeTo(res);
}
Also used : MemberSubmissionEndpointReference(com.sun.xml.ws.developer.MemberSubmissionEndpointReference) JAXBContext(jakarta.xml.bind.JAXBContext) MemberSubmissionEndpointReference(com.sun.xml.ws.developer.MemberSubmissionEndpointReference) JAXBResult(jakarta.xml.bind.util.JAXBResult)

Example 7 with JAXBResult

use of jakarta.xml.bind.util.JAXBResult in project metro-jax-ws by eclipse-ee4j.

the class EprMarshalUnmarshalTest method testMSEprMarshalling1.

public void testMSEprMarshalling1() throws Exception {
    JAXBContext ctx = JAXBContext.newInstance(com.sun.xml.ws.developer.MemberSubmissionEndpointReference.class);
    JAXBResult res = new JAXBResult(ctx);
    com.sun.xml.ws.developer.MemberSubmissionEndpointReference mepr = new com.sun.xml.ws.developer.MemberSubmissionEndpointReference();
    mepr.writeTo(res);
}
Also used : MemberSubmissionEndpointReference(com.sun.xml.ws.developer.MemberSubmissionEndpointReference) JAXBContext(jakarta.xml.bind.JAXBContext) MemberSubmissionEndpointReference(com.sun.xml.ws.developer.MemberSubmissionEndpointReference) JAXBResult(jakarta.xml.bind.util.JAXBResult)

Example 8 with JAXBResult

use of jakarta.xml.bind.util.JAXBResult in project metro-jax-ws by eclipse-ee4j.

the class EprMarshalUnmarshalTest method testW3CEprMarshalling.

public void testW3CEprMarshalling() throws Exception {
    JAXBContext ctx = JAXBContext.newInstance(W3CEndpointReference.class);
    JAXBResult res = new JAXBResult(ctx);
    W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
    builder.address("http://example.com");
    W3CEndpointReference epr = builder.build();
    // You will get the NPE
    epr.writeTo(res);
}
Also used : W3CEndpointReferenceBuilder(jakarta.xml.ws.wsaddressing.W3CEndpointReferenceBuilder) W3CEndpointReference(jakarta.xml.ws.wsaddressing.W3CEndpointReference) JAXBContext(jakarta.xml.bind.JAXBContext) JAXBResult(jakarta.xml.bind.util.JAXBResult)

Aggregations

JAXBResult (jakarta.xml.bind.util.JAXBResult)8 JAXBContext (jakarta.xml.bind.JAXBContext)4 MemberSubmissionEndpointReference (com.sun.xml.ws.developer.MemberSubmissionEndpointReference)2 JAXBException (jakarta.xml.bind.JAXBException)2 W3CEndpointReference (jakarta.xml.ws.wsaddressing.W3CEndpointReference)2 W3CEndpointReferenceBuilder (jakarta.xml.ws.wsaddressing.W3CEndpointReferenceBuilder)2 SAXException (org.xml.sax.SAXException)2 JAXBElement (jakarta.xml.bind.JAXBElement)1 Marshaller (jakarta.xml.bind.Marshaller)1 Unmarshaller (jakarta.xml.bind.Unmarshaller)1 AttachmentMarshaller (jakarta.xml.bind.attachment.AttachmentMarshaller)1