Examples of EndpointReferenceType


Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

                                          javax.wsdl.Port.class,
                                         JMSAddressPolicyType.class);

        QName serviceName = new QName("http://celtix.objectweb.org/hello_world_jms", "HelloWorldService");

        EndpointReferenceType ref =
            EndpointReferenceUtils.getEndpointReference(neturl, serviceName, "");

        assertNotNull("Unable to create EndpointReference ", ref);

        Port port = EndpointReferenceUtils.getPort(wsdlManager, ref);
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    public void testPublishUsingEndpointReferenceTypeContext() throws Exception {
       
        assertNotNull(endpoint);
        assertTrue(!endpoint.isPublished());
            
        EndpointReferenceType context =
            EndpointReferenceUtils.getEndpointReference("http://localhost:8080/test");
        endpoint.publish(context);
       
        assertTrue(endpoint.isPublished());      
    }
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        Binding b = sb.getBinding();
        assertNotNull(b);
        TestServerBinding tsb = (TestServerBinding)sb;
        ServerTransport st = tsb.getTransport();
        assertNull(st);
        EndpointReferenceType ref = ei.getEndpointReferenceType();
        assertNull(ref.getAddress());

    }
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        assert target != null : "null target received";
       
        URL url = resolveWSDL(portInfo.getWsdlFile(), target.getClass().getClassLoader());
        assert url != null;
       
        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(url,
                QName.valueOf(portInfo.getServiceName()),
                portInfo.getPortName());

        GeronimoTransportFactory tfactory = getTransportFactory();
        assert tfactory != null : "failed to get transport factory";
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        try {
            sb.activate();
        } catch (NullPointerException ex) {
            // ignore
        }
        EndpointReferenceType ref = ei.getEndpointReferenceType();
        EndpointReferenceUtils.setAddress(ref, "test://localhost:7777/test");
        sb.activate();
        TestServerBinding tsb = (TestServerBinding)sb;
        ServerTransport st = tsb.getTransport();
        assertNotNull(st);
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

        URL wsdlURL = getClass().getResource("/wsdl/basic_callback.wsdl");
       
        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
        ServerPortType port = ss.getSOAPPort();
      
        EndpointReferenceType ref = null;
        try {
            ref = EndpointReferenceUtils.getEndpointReference(new WSDLManagerImpl(bus), implementor);
        } catch (BusException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    }

    public void testDispatch() throws Exception {
        ServerBinding sb = ei.getServerBinding();
        EndpointReferenceType ref = ei.getEndpointReferenceType();
        EndpointReferenceUtils.setAddress(ref, "test://localhost:7777/test");
        sb.activate();
        TestServerBinding tsb = (TestServerBinding)sb;
        ei.setExecutor(new Executor() {
            public void execute(Runnable command) {
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    }

    private ClientTransport createClientTransport(TransportFactory factory, URL wsdlUrl,
                                                  QName serviceName, String portName)
        throws WSDLException, IOException {
        EndpointReferenceType ref = EndpointReferenceUtils
            .getEndpointReference(wsdlUrl, serviceName, portName);
        ClientTransport transport =
            factory.createClientTransport(ref, new TestClientBinding(bus, ref));

        return transport;
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    private ServerTransport createServerTransport(TransportFactory factory, URL wsdlUrl, QName serviceName,
                                                  String portName, String address) throws WSDLException,
        IOException {

        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(wsdlUrl, serviceName,
                                                                                portName);
        EndpointReferenceUtils.setAddress(ref, address);
        return factory.createServerTransport(ref);
    }
View Full Code Here

Examples of org.objectweb.celtix.ws.addressing.EndpointReferenceType

    private void createConfiguration(URL wsdlUrl, QName serviceName,
                          String portName) throws WSDLException,
                          IOException, BusException {
        assert bus != null;
        EndpointReferenceType ref = EndpointReferenceUtils.getEndpointReference(wsdlUrl, serviceName,
                                                                                portName);
        Configuration busCfg = bus.getConfiguration();
        assert null != busCfg;
        String id = EndpointReferenceUtils.getServiceName(ref).toString();
        ConfigurationBuilder cb = ConfigurationBuilderFactory.getBuilder(null);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.