use of com.sun.xml.ws.developer.MemberSubmissionEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class HelloLiteralTest method testDispatchWithPortsGetMSEPRFromClass.
// functionality needs to be clarrified
public void testDispatchWithPortsGetMSEPRFromClass() {
if (ClientServerTestUtil.useLocal()) {
System.out.println("http transport only exiting");
return;
}
EndpointReference epr = ((BindingProvider) getDispatchSourceWithPorts()).getEndpointReference(MemberSubmissionEndpointReference.class);
assertTrue(epr != null);
assertTrue(epr instanceof MemberSubmissionEndpointReference);
}
use of com.sun.xml.ws.developer.MemberSubmissionEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class HelloLiteralTest method testDispatchWithPortsGetMSEPRFromClass.
public void testDispatchWithPortsGetMSEPRFromClass() {
if (ClientServerTestUtil.useLocal()) {
System.out.println("http transport only exiting");
return;
}
EndpointReference epr = ((BindingProvider) getDispatchSourceWithPorts()).getEndpointReference(MemberSubmissionEndpointReference.class);
assertTrue(epr != null);
assertTrue(epr instanceof MemberSubmissionEndpointReference);
}
use of com.sun.xml.ws.developer.MemberSubmissionEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class HelloLiteralTest method testDispatchGetMSEPRFromClass.
// functionality needs to be clarrified
public void testDispatchGetMSEPRFromClass() {
EndpointReference epr = ((BindingProvider) getDispatchSource()).getEndpointReference(MemberSubmissionEndpointReference.class);
assertTrue(epr != null);
assertTrue(epr instanceof MemberSubmissionEndpointReference);
}
use of com.sun.xml.ws.developer.MemberSubmissionEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class ReferenceParametersTest method testReferenceParametersConversion2.
public void testReferenceParametersConversion2() throws Exception {
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
docFactory.setNamespaceAware(true);
DocumentBuilder db = docFactory.newDocumentBuilder();
Document doc = db.newDocument();
Element el1 = doc.createElementNS("http:foo.bar", "Element1");
Element el2 = doc.createElementNS("http:foo.bar", "Element1");
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
EndpointReference epr = builder.address("http://foo.bar").referenceParameter(el1).referenceParameter(el2).build();
System.out.println("EPR " + epr);
WSEndpointReference wsepr = new WSEndpointReference(epr);
MemberSubmissionEndpointReference translated = wsepr.toSpec(MemberSubmissionEndpointReference.class);
assert (translated.referenceParameters.elements.size() == 2);
}
use of com.sun.xml.ws.developer.MemberSubmissionEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class ReferenceParametersTest method testReferenceParametersConversion3.
public void testReferenceParametersConversion3() throws Exception {
DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();
docFactory.setNamespaceAware(true);
DocumentBuilder db = docFactory.newDocumentBuilder();
Document doc = db.newDocument();
Element el1 = doc.createElementNS("http:foo.bar", "Element1");
Element el2 = doc.createElementNS("http:foo.bar", "Element1");
Element el3 = doc.createElementNS("http:foo.bar", "Element1");
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
EndpointReference epr = builder.address("http://foo.bar").referenceParameter(el1).referenceParameter(el2).referenceParameter(el3).build();
System.out.println("EPR " + epr);
WSEndpointReference wsepr = new WSEndpointReference(epr);
MemberSubmissionEndpointReference translated = wsepr.toSpec(MemberSubmissionEndpointReference.class);
assert (translated.referenceParameters.elements.size() == 3);
}
Aggregations