use of com.sun.xml.ws.api.addressing.WSEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class WSDLEprExtensionsTest method testEprWithDispatchWithWSDL.
/**
* Tests client-side access to EPR extensions specified in WSDL
* @throws Exception
*/
public void testEprWithDispatchWithWSDL() throws Exception {
Service service = new HelloService();
Dispatch dispatch = service.createDispatch(portName, Source.class, Service.Mode.PAYLOAD);
WSEndpointReference wsepr = ((WSBindingProvider) dispatch).getWSEndpointReference();
assertTrue(wsepr.getEPRExtensions().size() == 1);
WSEndpointReference.EPRExtension idExtn = wsepr.getEPRExtension(new QName("http://schemas.xmlsoap.org/ws/2006/02/addressingidentity", "Identity"));
assertTrue(idExtn != null && idExtn.getQName().equals(new QName("http://schemas.xmlsoap.org/ws/2006/02/addressingidentity", "Identity")));
}
use of com.sun.xml.ws.api.addressing.WSEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class WSDLEprExtensionsTest method testEprWithSEI.
/**
* Tests client-side access to EPR extensions specified in WSDL
* @throws Exception
*/
public void testEprWithSEI() throws Exception {
HelloService service = new HelloService();
Hello hello = service.getHelloPort();
WSEndpointReference wsepr = ((WSBindingProvider) hello).getWSEndpointReference();
assertTrue(wsepr.getEPRExtensions().size() == 1);
WSEndpointReference.EPRExtension idExtn = wsepr.getEPRExtension(new QName("http://schemas.xmlsoap.org/ws/2006/02/addressingidentity", "Identity"));
assertTrue(idExtn != null && idExtn.getQName().equals(new QName("http://schemas.xmlsoap.org/ws/2006/02/addressingidentity", "Identity")));
}
use of com.sun.xml.ws.api.addressing.WSEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class EprExtensionsContributorTest method testEprWithDispatchWithWSDL.
/**
* Tests client-side access to EPR extensions specified in WSDL
*
* @throws Exception
*/
public void testEprWithDispatchWithWSDL() throws Exception {
Service service = new HelloService();
Dispatch dispatch = service.createDispatch(portName, Source.class, Service.Mode.PAYLOAD);
WSEndpointReference wsepr = ((WSBindingProvider) dispatch).getWSEndpointReference();
assertTrue(wsepr.getEPRExtensions().size() == 2);
WSEndpointReference.EPRExtension idExtn = wsepr.getEPRExtension(new QName("http://example.com/addressingidentity", "Identity"));
assertTrue(idExtn != null && idExtn.getQName().equals(new QName("http://example.com/addressingidentity", "Identity")));
}
use of com.sun.xml.ws.api.addressing.WSEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class EprExtensionsContributorTest method testEprWithSEI.
/**
* Tests client-side access to EPR extensions specified in WSDL
*
* @throws Exception
*/
public void testEprWithSEI() throws Exception {
HelloService service = new HelloService();
Hello hello = service.getHelloPort();
WSEndpointReference wsepr = ((WSBindingProvider) hello).getWSEndpointReference();
assertTrue(wsepr.getEPRExtensions().size() == 2);
WSEndpointReference.EPRExtension idExtn = wsepr.getEPRExtension(new QName("http://example.com/addressingidentity", "Identity"));
assertTrue(idExtn != null && idExtn.getQName().equals(new QName("http://example.com/addressingidentity", "Identity")));
}
use of com.sun.xml.ws.api.addressing.WSEndpointReference in project metro-jax-ws by eclipse-ee4j.
the class EprExtensionsContributorTest method testEprOnServerSide.
/**
* Tests server-side access to EPR extensions specified in WSDL
*
* @throws Exception
*/
public void testEprOnServerSide() throws Exception {
HelloService service = new HelloService();
Hello hello = service.getHelloPort();
W3CEndpointReference serverEpr = hello.getW3CEPR();
// printEPR(serverEpr);
WSEndpointReference wsepr = new WSEndpointReference(serverEpr);
assertTrue(wsepr.getEPRExtensions().size() == 2);
WSEndpointReference.EPRExtension idExtn = wsepr.getEPRExtension(new QName("http://example.com/addressingidentity", "Identity"));
assertTrue(idExtn != null && idExtn.getQName().equals(new QName("http://example.com/addressingidentity", "Identity")));
}
Aggregations