
package at.vvo.omds.types.omds3Types.r1_2_0.brokerservice;

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

import at.vvo.omds.types.omds3Types.r1_2_0.servicetypes.DeclareNewClaimStatusRequestType;
import at.vvo.omds.types.omds3Types.r1_2_0.servicetypes.DeclareNewClaimStatusResponseType;
import at.vvo.omds.types.omds3Types.r1_2_0.servicetypes.LossEventRegisteredResponseType;
import at.vvo.omds.types.omds3Types.r1_2_0.servicetypes.LossEventType;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;

/**
 * This class was generated by Apache CXF 3.2.0
 * 2019-06-12T15:15:48.778+02:00
 * Generated source version: 3.2.0
 * 
 */
public final class OmdsBrokerServicePortType_OmdsBrokerServicePort_Client {

    private static final QName SERVICE_NAME = new QName("urn:omds3ServicesBroker-1-1-0", "omdsBrokerService");

    private OmdsBrokerServicePortType_OmdsBrokerServicePort_Client() {
    }

    public static void main(String args[]) throws Exception {
        URL wsdlURL = OmdsBrokerService.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();
            }
        }
      
        OmdsBrokerService ss = new OmdsBrokerService(wsdlURL, SERVICE_NAME);
        OmdsBrokerServicePortType port = ss.getOmdsBrokerServicePort();  
        
        {
        System.out.println("Invoking lossEventRegistered...");
        LossEventType _lossEventRegistered_parameters = null;
        try {
            LossEventRegisteredResponseType _lossEventRegistered__return = port.lossEventRegistered(_lossEventRegistered_parameters);
            System.out.println("lossEventRegistered.result=" + _lossEventRegistered__return);

        } catch (BrokerServiceFaultMsg e) { 
            System.out.println("Expected exception: BrokerServiceFaultMsg has occurred.");
            System.out.println(e.toString());
        }
            }
        {
        System.out.println("Invoking declareNewClaimStatus...");
        DeclareNewClaimStatusRequestType _declareNewClaimStatus_parameters = null;
        try {
            DeclareNewClaimStatusResponseType _declareNewClaimStatus__return = port.declareNewClaimStatus(_declareNewClaimStatus_parameters);
            System.out.println("declareNewClaimStatus.result=" + _declareNewClaimStatus__return);

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

        System.exit(0);
    }

}
