Package javax.xml.ws

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


    }

    public Endpoint createAndPublishEndpoint(String address, Object implementor, WebServiceFeature... features) {
        Endpoint endpoint = new EndpointImpl(
            BindingID.parse(implementor.getClass()), implementor, features);
        endpoint.publish(address);
        return endpoint;
    }

    public Endpoint createEndpoint(String bindingId, Class implementorClass, Invoker invoker, WebServiceFeature... features) {
        return new EndpointImpl(
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

        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

        } else if (url.contains("MutualCert")) {
            ep.getProperties().put(SecurityConstants.ENCRYPT_PROPERTIES + ".sct", "etc/bob.properties");
            ep.getProperties().put(SecurityConstants.SIGNATURE_PROPERTIES + ".sct", "etc/alice.properties");
            ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new KeystorePasswordCallback());
        }
        ep.publish(url);
    }
   
    public static void main(String args[]) throws Exception {
        new Server("http://localhost:9001/");
        System.out.println("Server ready...");
View Full Code Here

  private static final Element[] ZERO_LENGTH_ARRAY = new Element[0];

    @Override
    public Endpoint createAndPublishEndpoint(String s, Object obj) {
        Endpoint ep = new EndpointImpl(obj);
        ep.publish(s);
        return ep;
    }

    @Override
    public Endpoint createEndpoint(String binding, Object obj) {
View Full Code Here

        ep.setMetadata(metadata);
        Map<String, Object> props = new HashMap<String, Object>();
        props.put(Endpoint.WSDL_SERVICE, new QName(tgtNmspc, svcNm));
        props.put(Endpoint.WSDL_PORT, new QName(tgtNmspc, portNm));
        ep.setProperties(props);
        ep.publish(addr);
    }

    public DOMSource invoke(DOMSource request) {
        DOMSource response = new DOMSource();
        Context cx = ContextFactory.getGlobal().enterContext();
View Full Code Here

       
        if (url.contains("X10_I")) {
            ep.getProperties().put(SecurityConstants.SIGNATURE_PROPERTIES + ".sct", "etc/bob.properties");
            ep.getProperties().put(SecurityConstants.ENCRYPT_PROPERTIES + ".sct", "etc/alice.properties");
        }
        ep.publish(url);
    }
   
    public static void main(String args[]) throws Exception {
        new Server("http://localhost:9001/");
        System.out.println("Server ready...");
View Full Code Here

                "bob.properties");
            ep.getProperties().put(SecurityConstants.SIGNATURE_PROPERTIES + ".sct",
                "alice.properties");
            ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new KeystorePasswordCallback());
        }
        ep.publish(url);
    }
   
    @WebService(targetNamespace = "http://WSSec/wssc",
                serviceName = "PingService",
                portName = "SecureConversation_MutualCertificate10SignEncrypt_IPingService",
View Full Code Here

        ep.getProperties().put(SecurityConstants.ENCRYPT_PROPERTIES,
                "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

                "bob.properties");
            ep.getProperties().put(SecurityConstants.SIGNATURE_PROPERTIES + ".sct",
                "alice.properties");
            ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new KeystorePasswordCallback());
        }
        ep.publish(url);
    }
   
    @WebService(targetNamespace = "http://WSSec/wssc",
                serviceName = "PingService",
                portName = "SecureConversation_MutualCertificate10SignEncrypt_IPingService",
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.