Package org.jboss.soa.esb.samples.quickstart.webservicewsa

Examples of org.jboss.soa.esb.samples.quickstart.webservicewsa.StatefulEndpoint


* @author <a href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
*/
public class WSAClient {

    public static void main(String[] args) throws MalformedURLException, RemoteException {
        StatefulEndpoint endpointPort1 = getEndpointPort();
        StatefulEndpoint endpointPort2 = getEndpointPort();

        endpointPort1.addItem("Ice Cream");
        endpointPort1.addItem("Chocolate");

        endpointPort2.addItem("Water");
        endpointPort2.addItem("Bread");

        System.out.println("\nT1. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T1. endpointPort2 basket: " + endpointPort2.getItems());

        System.out.println("\nT2. endpointPort1 checks out...");
        endpointPort1.checkout();

        System.out.println("\nT3. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T3. endpointPort2 basket: " + endpointPort2.getItems());

        System.out.println("\nT4. endpointPort2 checks out...");
        endpointPort2.checkout();

        System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
    }
View Full Code Here


        System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
    }

    private static StatefulEndpoint getEndpointPort() throws MalformedURLException {
        StatefulEndpoint endpoint;
        QName serviceName = new QName("http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/", "WsaService");
        URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWsaService&protocol=http");

        Service service = Service.create(wsdlURL, serviceName);
        endpoint = service.getPort(StatefulEndpoint.class);
View Full Code Here

* @author <a href="mailto:mageshbk@jboss.com">mageshbk@jboss.com</a>
*/
public class WSAClient {

    public static void main(String[] args) throws MalformedURLException, RemoteException {
        StatefulEndpoint endpointPort1 = getEndpointPort();
        StatefulEndpoint endpointPort2 = getEndpointPort();

        endpointPort1.addItem("Ice Cream");
        endpointPort1.addItem("Chocolate");

        endpointPort2.addItem("Water");
        endpointPort2.addItem("Bread");

        System.out.println("\nT1. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T1. endpointPort2 basket: " + endpointPort2.getItems());

        System.out.println("\nT2. endpointPort1 checks out...");
        endpointPort1.checkout();

        System.out.println("\nT3. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T3. endpointPort2 basket: " + endpointPort2.getItems());

        System.out.println("\nT4. endpointPort2 checks out...");
        endpointPort2.checkout();

        System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
    }
View Full Code Here

        System.out.println("\nT5. endpointPort1 basket: " + endpointPort1.getItems());
        System.out.println("T5. endpointPort2 basket: " + endpointPort2.getItems());
    }

    private static StatefulEndpoint getEndpointPort() throws MalformedURLException {
        StatefulEndpoint endpoint;
        QName serviceName = new QName("http://webservice.webservicewsa.quickstart.samples.esb.soa.jboss.org/", "WsaService");
        URL wsdlURL = new URL("http://localhost:8080/contract/contract.jsp?serviceCat=MyServiceCategory&serviceName=MyWsaService&protocol=http");

        Service service = Service.create(wsdlURL, serviceName);
        endpoint = new AddressingPort(service.getPort(StatefulEndpoint.class, new AddressingFeature(true, true)));
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.samples.quickstart.webservicewsa.StatefulEndpoint

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.