public W3CEndpointReference getEpr() { if (this.endpoint == null) { return null; } return this.endpoint.getEndpointReference(W3CEndpointReference.class); }
public W3CEndpointReference getEpr(Endpoint endpoint) { return endpoint.getEndpointReference(W3CEndpointReference.class); } }
public W3CEndpointReference getEpr() { return this.endpoint.getEndpointReference(W3CEndpointReference.class); }
public W3CEndpointReference getEpr() { return endpoint.getEndpointReference(W3CEndpointReference.class); }
@Override public EndpointReference getEndpointReference(Element... referenceParameters) { ClassLoader origClassLoader = getContextClassLoader(); boolean restoreTCCL = false; try { restoreTCCL = checkAndFixContextClassLoader(origClassLoader); return delegate.getEndpointReference(referenceParameters); } finally { if (restoreTCCL) setContextClassLoader(origClassLoader); } }
@Override public <T extends EndpointReference> T getEndpointReference(Class<T> clazz, Element... referenceParameters) { ClassLoader origClassLoader = getContextClassLoader(); boolean restoreTCCL = false; try { restoreTCCL = checkAndFixContextClassLoader(origClassLoader); return delegate.getEndpointReference(clazz, referenceParameters); } finally { if (restoreTCCL) setContextClassLoader(origClassLoader); } }
@Test public void testCallback() throws Exception { Object implementor = new CallbackImpl(); String address = "http://localhost:" + CB_PORT + "/CallbackContext/CallbackPort"; Endpoint ep = Endpoint.publish(address, implementor); URL wsdlURL = getClass().getResource("/wsdl/basic_callback_test.wsdl"); SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME); ServerPortType port = ss.getPort(PORT_NAME, ServerPortType.class); updateAddressPort(port, PORT); EndpointReference w3cEpr = ep.getEndpointReference(); String resp = port.registerCallback((W3CEndpointReference)w3cEpr); assertEquals("registerCallback called", resp); ep.stop(); }