Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package co.com.tennis.Main;
- import co.com.tennis.DAO.daoDatosServicio;
- import co.com.tennis.DAO.daoDatosServicioImpl;
- import co.com.tennis.DAO.datosServicio;
- import co.com.tennis.Proxy.IEnvioDatosWs;
- import co.com.tennis.Proxy.envioDatosWsImpl;
- import java.math.BigDecimal;
- import java.util.ArrayList;
- import java.util.Date;
- import java.util.GregorianCalendar;
- import javax.xml.datatype.DatatypeConfigurationException;
- import javax.xml.datatype.DatatypeFactory;
- import javax.xml.datatype.XMLGregorianCalendar;
- public class Main {
- private static String Valor;
- public static void main(String[] args) throws DatatypeConfigurationException, Exception {
- // daoDatosServicio objDao = new daoDatosServicioImpl();
- // String returnVal = null;
- // ArrayList<datosServicio> arrDatos = objDao.consultar();
- //
- // for (int i = 0; i < arrDatos.size(); i++) {
- // datosServicio obj_datos = arrDatos.get(i);
- //
- // try {
- //
- // obj_datos.getcNroOrden();
- // obj_datos.getdFechaEmision();
- // obj_datos.getdFechaEstimadaEntrega();
- // obj_datos.getNitImportador();
- // obj_datos.getNombreImportador();
- // obj_datos.getDireccionImportador();
- // obj_datos.getDepartamentoImportador();
- // obj_datos.getCiudadImportador();
- // obj_datos.getTelefonoImportador();
- // obj_datos.getFaxImportador();
- // obj_datos.getNombreRepresentanteLegal();
- // obj_datos.getCedulaRepresentanteLegal();
- // obj_datos.getNombreProveedor();
- // obj_datos.getDireccionProveedor();
- // obj_datos.getTelefonoProveedor();
- // obj_datos.getMonedaProveedor();
- // obj_datos.getPaisProveedor();
- // obj_datos.getCiudadProveedor();
- // obj_datos.getCorreoProveedor();
- // obj_datos.getContactoProveedor();
- // obj_datos.getCodigoMonedaOrdenCompra();
- // obj_datos.getDescripcionMonedaOrdenCompra();
- // obj_datos.getObservaciones();
- // obj_datos.getEstado();
- // obj_datos.getReferencia();
- // obj_datos.getCodigoInternoInsumo();
- // obj_datos.getNombreInsumo();
- // obj_datos.getPosicionAranlariaInsumo();
- // obj_datos.getUnidadInsumo();
- // obj_datos.getPaisOrigenItem();
- // obj_datos.getCantidadItem();
- // obj_datos.getUnidadItem();
- // obj_datos.getValorUnitarioItem();
- // obj_datos.getValorUnitarioItemOtraMoneda();
- //
- // } catch (java.lang.IndexOutOfBoundsException ex) {
- // } catch (Exception ex) {
- // } catch (Throwable t) {
- // }
- //****
- /*
- -Dhttp.proxyHost=10.10.5.4
- -Dhttp.proxyPort=3128
- -Dhttp.proxyUser=oalopez
- -Dhttp.proxyPassword=oaco20
- */
- IEnvioDatosWs objWso = new envioDatosWsImpl();
- GregorianCalendar gcal = new GregorianCalendar();
- XMLGregorianCalendar fec = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcal);
- XMLGregorianCalendar hor = DatatypeFactory.newInstance().newXMLGregorianCalendar(gcal);
- String fecha_actual = "2010/04/26";
- String hora_actual = "17:45:20";
- String[] fec_part = fecha_actual.split("/");
- String[] hor_part = hora_actual.split(":");
- hor.setHour(Integer.parseInt(hor_part[0]));
- hor.setMinute(Integer.parseInt(hor_part[1]));
- hor.setSecond(Integer.parseInt(hor_part[2]));
- fec.setYear(Integer.parseInt(fec_part[0]));
- fec.setMonth(Integer.parseInt(fec_part[1]));
- fec.setDay(Integer.parseInt(fec_part[2]));
- BigDecimal Value = new BigDecimal(1);
- System.out.print(objWso.trasladar("1",
- null,
- null,
- "1",
- "nombreim",
- "direccionim",
- "departamentoim",
- "ciudadimportador",
- "telefonoImportador",
- "Faximportador",
- "nombreRepresentante",
- "CedulaRepresentante",
- "nombreProveedor",
- "direccionProveedor",
- "telefonoProvedor",
- "monedaProvedor",
- "paisProvedor",
- "ciudadProvedor",
- "correoProvedor",
- "contactoProvedor",
- "codigMonedaPo",
- "DescripcionMonedaPo",
- "Observaciones",
- "Estado",
- "1",
- "1",
- "nombreInsumo",
- "posicionArancelaria",
- "UnidadInsumo",
- "PaisOrigen",
- Value,
- "UnidadItem",
- Value,
- Value));
- // }
- //
- }
- }
Add Comment
Please, Sign In to add comment