
package com.travelport.service.system_v9_0;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;

/**
 * This class was generated by Apache CXF 2.7.12
 * 2014-09-19T15:09:22.752-06:00
 * Generated source version: 2.7.12
 * 
 */
public final class SystemPingPortType_SystemPingPort_Client {

    private static final QName SERVICE_NAME = new QName("http://www.travelport.com/service/system_v9_0", "SystemService");

    private SystemPingPortType_SystemPingPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = SystemService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        SystemService ss = new SystemService(wsdlURL, SERVICE_NAME);
        SystemPingPortType port = ss.getSystemPingPort();  
        
        {
        System.out.println("Invoking service...");
        com.travelport.schema.system_v9_0.PingReq _service_parameters = null;
        try {
            com.travelport.schema.system_v9_0.PingRsp _service__return = port.service(_service_parameters);
            System.out.println("service.result=" + _service__return);

        } catch (SystemFaultMessage e) { 
            System.out.println("Expected exception: SystemFaultMessage has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
