Package client

Source Code of client.WSClient

/**
* Copyright (C) 2011 Talend Inc. - www.talend.com
*/
package client;

import org.example.contract.doubleit.DoubleItPortType;
import org.example.contract.doubleit.DoubleItService;

public class WSClient {
   
    public WSClient() {
        //
    }
   
    public WSClient(
        DoubleItPortType portType
    ) {
        doubleIt(portType, 10);
    }
   
    public static void main (String[] args) {
        DoubleItService service = new DoubleItService();
        DoubleItPortType port = service.getDoubleItPort();          

        doubleIt(port, 10);
    }
   
    public static void doubleIt(DoubleItPortType port,
            int numToDouble) {
        int resp = port.doubleIt(numToDouble);
        System.out.println("The number " + numToDouble + " doubled is " + resp);
    }
}
TOP

Related Classes of client.WSClient

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.