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

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

import at.vvo.omds.types.omds3Types.r1_3_0.servicetypes.DeclareNewClaimStatusRequestType;
import at.vvo.omds.types.omds3Types.r1_3_0.servicetypes.DeclareNewClaimStatusResponseType;
import at.vvo.omds.types.omds3Types.r1_3_0.servicetypes.LossEventRegisteredResponseType;
import at.vvo.omds.types.omds3Types.r1_3_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:56:19.237+02:00
 * Generated source version: 3.2.0
 * 
 */
public final class OmdsServicePortType_OmdsServicePort_Client {

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

    private OmdsServicePortType_OmdsServicePort_Client() {
    }

    public static void main(String args[]) throws Exception {
        URL wsdlURL = OmdsService.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();
            }
        }
      
        OmdsService ss = new OmdsService(wsdlURL, SERVICE_NAME);
        OmdsServicePortType port = ss.getOmdsServicePort();  
        
        {
        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 (ServiceFaultMsg e) { 
            System.out.println("Expected exception: ServiceFaultMsg 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 (ServiceFaultMsg e) { 
            System.out.println("Expected exception: ServiceFaultMsg has occurred.");
            System.out.println(e.toString());
        }
            }

        System.exit(0);
    }

}
