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);
}
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);
}
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);
}
Aggregations