
package com.americamovil.dda._1.f.enviafactura;

/**
 * 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.6
 * 2017-06-02T09:31:24.924-05:00
 * Generated source version: 2.7.6
 * 
 */
public final class SIFacturasOut_HTTPSPort_Client {

    private static final QName SERVICE_NAME = new QName("http://americamovil.com/DDA/1/F/EnviaFactura", "SYS_AM_1_DDA_DEV_SI_Facturas_Out");

    private SIFacturasOut_HTTPSPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = SYSAM1DDADEVSIFacturasOut.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();
            }
        }
      
        SYSAM1DDADEVSIFacturasOut ss = new SYSAM1DDADEVSIFacturasOut(wsdlURL, SERVICE_NAME);
        SIFacturasOut port = ss.getHTTPSPort();  
        
        {
        System.out.println("Invoking enviaFactura...");
        com.americamovil.dda._1.f.enviafactura.DTFactura _enviaFactura_mtFacturas = null;
        com.americamovil.dda._1.f.enviafactura.DTFacturasRes _enviaFactura__return = port.enviaFactura(_enviaFactura_mtFacturas);
        System.out.println("enviaFactura.result=" + _enviaFactura__return);


        }
        {
        System.out.println("Invoking enviaNotaCredito...");
        com.americamovil.dda._1.f.enviafactura.DTNotaCredito _enviaNotaCredito_mtNotaCredito = null;
        com.americamovil.dda._1.f.enviafactura.DTFacturasRes _enviaNotaCredito__return = port.enviaNotaCredito(_enviaNotaCredito_mtNotaCredito);
        System.out.println("enviaNotaCredito.result=" + _enviaNotaCredito__return);


        }

        System.exit(0);
    }

}
