Package org.apache.locator

Examples of org.apache.locator.LocatorService


    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
        W3CEndpointReferenceBuilder builder = new  W3CEndpointReferenceBuilder();
        W3CEndpointReference w3cEpr = builder.build();
        port.registerPeerManager(w3cEpr,
                                 new Holder<W3CEndpointReference>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, w3cEpr);

       
        port.deregisterEndpoint(null, w3cEpr);

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here


    public void testLookupEndpointAndVerifyWsdlLocationAndNamespace() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
       
        W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/1", "Number"));
        String eprString = epr.toString();
        assertTrue(eprString.contains("Metadata"));
        assertTrue(eprString.contains("wsdlLocation=\"http://service/1 wsdlLoc\""));
    }
View Full Code Here

    public void testLookupEndpointAndVerifyWsdlLocationOnly() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
       
        W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/2", "Number"));
        String eprString = epr.toString();
        assertTrue(eprString.contains("Metadata"));
        System.out.println(eprString);
        assertTrue(eprString.contains("wsdlLocation=\"wsdlLoc\""));
    }
View Full Code Here

    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();

       
        port.registerPeerManager(new org.apache.cxf.ws.addressing.EndpointReferenceType(),
                                 new Holder<org.apache.cxf.ws.addressing.EndpointReferenceType>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, new org.apache.cxf.ws.addressing.EndpointReferenceType());

       
        port.deregisterEndpoint(null, new org.apache.cxf.ws.addressing.EndpointReferenceType());

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here

    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();

       
        port.registerPeerManager(new org.apache.cxf.ws.addressing.EndpointReferenceType(),
                                 new Holder<org.apache.cxf.ws.addressing.EndpointReferenceType>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, new org.apache.cxf.ws.addressing.EndpointReferenceType());

       
        port.deregisterEndpoint(null, new org.apache.cxf.ws.addressing.EndpointReferenceType());

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here

    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
        W3CEndpointReferenceBuilder builder = new  W3CEndpointReferenceBuilder();
        W3CEndpointReference w3cEpr = builder.build();
        port.registerPeerManager(w3cEpr,
                                 new Holder<W3CEndpointReference>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, w3cEpr);

       
        port.deregisterEndpoint(null, w3cEpr);

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here

    public void testLookupEndpointAndVerifyWsdlLocationAndNamespace() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
       
        W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/1", "Number"));
        String eprString = epr.toString();
        assertTrue(eprString.contains("Metadata"));
        assertTrue(eprString.contains("wsdli:wsdlLocation=\"http://service/1 wsdlLoc\""));
    }
View Full Code Here

    public void testLookupEndpointAndVerifyWsdlLocationOnly() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
       
        W3CEndpointReference epr = port.lookupEndpoint(new QName("http://service/2", "Number"));
        String eprString = epr.toString();
        assertTrue(eprString.contains("Metadata"));
        assertTrue(eprString.contains("wsdli:wsdlLocation=\"wsdlLoc\""));
    }
View Full Code Here

    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();

        W3CEndpointReferenceBuilder builder = new  W3CEndpointReferenceBuilder();
        W3CEndpointReference w3cEpr = builder.build();
        port.registerPeerManager(w3cEpr,
                                 new Holder<W3CEndpointReference>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, w3cEpr);

       
        port.deregisterEndpoint(null, w3cEpr);

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here

    public void testLocatorService() throws Exception {
        URL wsdl = getClass().getResource("/wsdl/locator.wsdl");
        assertNotNull(wsdl);

        LocatorService_Service ss = new LocatorService_Service(wsdl, serviceName);
        LocatorService port = ss.getLocatorServicePort();
        updateAddressPort(port, PORT);
        W3CEndpointReferenceBuilder builder = new  W3CEndpointReferenceBuilder();
        W3CEndpointReference w3cEpr = builder.build();
        port.registerPeerManager(w3cEpr,
                                 new Holder<W3CEndpointReference>(),
                                 new Holder<java.lang.String>());

        port.deregisterPeerManager(new java.lang.String());

       
        port.registerEndpoint(null, w3cEpr);

       
        port.deregisterEndpoint(null, w3cEpr);

       
       
        port.lookupEndpoint(new javax.xml.namespace.QName("", ""));
           
        port.listEndpoints();

        port.queryEndpoints(new QueryEndpoints());

    }
View Full Code Here

TOP

Related Classes of org.apache.locator.LocatorService

Copyright © 2018 www.massapicom. 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.