Package javax.xml.ws

Examples of javax.xml.ws.Endpoint.publish()


        ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new KeystorePasswordCallback());
        ep.getProperties().put(SecurityConstants.ENCRYPT_PROPERTIES, "restricted/bob.properties");
        if (streaming) {
            ep.getProperties().put(SecurityConstants.ENABLE_STREAMING_SECURITY, "true");
        }
        ep.publish(url);
    }
   
    @WebService(targetNamespace = "http://WSSec/wssec11",
                serviceName = "PingService11",
                portName = "A_IPingService",
View Full Code Here


           
            GreeterImpl implementor = new GreeterImpl();
            String address = "http://localhost:" + PORT + "/SoapContext/GreeterPort";
           
            Endpoint ep = Endpoint.create(implementor);
            ep.publish(address);

            LOG.info("Published greeter endpoint.");
        }
        public static void main(String[] args) {
View Full Code Here

            String bindingId = SOAPBinding.SOAP11HTTP_BINDING;
            if (isCXF()) {
                bindingId = SOAPBinding.SOAP12HTTP_BINDING;
            }
            Endpoint endpoint = Endpoint.create(bindingId, service);
            endpoint.publish(address);
           
            try {
                if (mbeanServer != null
                    && service instanceof AbstractEndpoint) {
                    ObjectName on = ((AbstractEndpoint)service).getMBeanName();
View Full Code Here

    }

    @Override
    public Endpoint createAndPublishEndpoint(String url, Object implementor) {
        Endpoint ep = createEndpoint(null, implementor);
        ep.publish(url);
        return ep;
    }
    //new in 2.2
    public Endpoint createAndPublishEndpoint(String address,
                                             Object implementor, WebServiceFeature ... features) {
View Full Code Here

    }
    //new in 2.2
    public Endpoint createAndPublishEndpoint(String address,
                                             Object implementor, WebServiceFeature ... features) {
        Endpoint ep = createEndpoint(null, implementor, features);
        ep.publish(address);
        return ep;
    }

    public W3CEndpointReference createW3CEndpointReference(String address,
                                                           QName serviceName,
View Full Code Here

            ((EndpointImpl)ep).setWsdlLocation("wsdl_systest_jaxws/schemaValidation.wsdl");
            ((EndpointImpl)ep).setServiceName(new QName(
                                   "http://cxf.apache.org/jaxws/schemavalidation", "service"));
            ((EndpointImpl)ep).getInInterceptors().add(new LoggingInInterceptor());
            ((EndpointImpl)ep).getOutInterceptors().add(new LoggingOutInterceptor());
            ep.publish(address);
        }

        public static void main(String[] args) {
            try {
                Server s = new Server();
View Full Code Here

        String address = "http://localhost:" + PORT + "/SoapContext/GreeterPort";
        Endpoint ep = Endpoint.create(implementor);
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(WSDLGetUtils.WSDL_CREATE_IMPORTS, Boolean.TRUE);
        ep.setProperties(props);
        ep.publish(address);
        ((EndpointImpl)ep).getService().getInInterceptors().add(new URIMappingInterceptor());
    }

    public static void main(String[] args) {
        try {
View Full Code Here

        SampleEndpoint sample = new SampleEndpoint();
       
        Endpoint ep = Endpoint.create(sample);
        assertTrue("The returned Endpoint instance was null", ep != null);
       
        ep.publish("test");
        assertTrue("The endpoint was not published successfully", ep.isPublished());
        ep.stop();
    }
   
    public void testCreateAndPublishEndpoint() {
View Full Code Here

        SampleEndpoint sample = new SampleEndpoint();
       
        Endpoint ep = Endpoint.create(sample);
        assertTrue("The returned Endpoint instance was null", ep != null);
       
        ep.publish("test");
        assertTrue("The endpoint was not published successfully", ep.isPublished());
       
        String wsdlLocation = "http://test.wsdl.com/Test.wsdl"; // Dummy URL
        List<Source> metadata = new ArrayList<Source>();
        Source source = new StreamSource(new ByteArrayInputStream(new byte[0])); // Dummy content 
View Full Code Here

        ep.stop();
    }

    public void testCreateAndPublishOnAlternatePort() throws Exception {
        Endpoint ep = Endpoint.create(new SampleEndpoint());
        ep.publish("http://localhost:16060/SampleEndpoint");
        assertTrue("The returned Endpoint instance was null", ep != null);
        assertTrue("The endpoint was not published successfully", ep.isPublished());
        ep.stop();
    }
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.