/**
 ** Please don't modify this file.
 ** This file was generated by the Software AG, EntireX Java Wrapper
 ** from the IDL file C:/Documents and Settings/Admin/Bureau/Brokers logistique/nwlwvom2/nwlwvom2.idl.
 **
 ** @author    Software AG
 ** @version   EntireX Wrapper, Version: 7.2.1.50, Date: 06 Mar 2006 (1.71.2.2)
 **
 **/

import java.util.Date;
import java.math.BigDecimal;
import com.softwareag.entirex.aci.*;

public class Jwlwvom2 extends RPCService {

	public static final String DEFAULT_BROKERID = "10.78.28.40:2200";
	public static final String DEFAULT_SERVER = "RPC/SRV1/CALLNAT";

	public Jwlwvom2() {
		super();
	}

	public Jwlwvom2(Broker broker) {
		this(broker, DEFAULT_SERVER);
	}

	public Jwlwvom2(BrokerService bs) {
		this(bs.getBroker(), bs.toString());
	}

	public Jwlwvom2(Broker broker, String serverAddr) {
		super(broker, serverAddr, "Jwlwvom2", true);
	}

	public static String getStubVersion() {
		return "EntireX RPC for Java Stub Version=7.2.1, Patch Level=50";
	}

	private Nwlwvom2Axwebent nwlwvom2Axwebent;

	public void setNwlwvom2Axwebent(Nwlwvom2Axwebent p) {
		nwlwvom2Axwebent = p;
	}

	public Nwlwvom2Axwebent getNwlwvom2Axwebent() {
		return nwlwvom2Axwebent;
	}

	private Nwlwvom2Awlwvom2 nwlwvom2Awlwvom2;

	public void setNwlwvom2Awlwvom2(Nwlwvom2Awlwvom2 p) {
		nwlwvom2Awlwvom2 = p;
	}

	public Nwlwvom2Awlwvom2 getNwlwvom2Awlwvom2() {
		return nwlwvom2Awlwvom2;
	}

	private final static byte[] NWLWVOM2_FORMAT =
			( "MG1,1MN3,0MA2,0MA8,0MN8,0MA8,0MA8,0MA8,0MA15,0MA2,0MA3,0MA3,"
			  + "0MA11,0MA8,0MA8,0MA1,0MN2,0MN1,0MG2,1,5MA4,0MA65,0MA1,0MN2,"
			  + "0MG2,0MG1,0MG1,1MG2,1MA5,0MP9,0MP9,0MA5,0MA7,0MP9,0MA1,0MA5,"
			  + "0MA5,0MA7,0MA1,0MA4,0MA1,0MA1,0MA5,0,500MP5,0,500MA4,0,"
			  + "500MA4,0,500MA4,0,500MG2,0MG1,0." ).getBytes();

	public void nwlwvom2() throws BrokerException {

		buildHeader (NWLWVOM2_FORMAT, "48", 12040, 0, "NWLWVOM2", true, 1110, true, false, 2000);
if (nwlwvom2Axwebent == null) nwlwvom2Axwebent = new Nwlwvom2Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom2Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwvom2Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwvom2Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwvom2Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwvom2Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwvom2Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwvom2Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwvom2Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwvom2Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwvom2Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwvom2Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwvom2Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwvom2Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwvom2Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwvom2Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwvom2Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwvom2Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwvom2Axwebent.nb_ano, 1, 0);
		if (nwlwvom2Axwebent.t_ano == null) nwlwvom2Axwebent.t_ano = new Nwlwvom2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom2Axwebent.t_ano[i0] == null) nwlwvom2Axwebent.t_ano[i0] = new Nwlwvom2AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom2Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom2Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom2Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwvom2Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwvom2Awlwvom2 == null) nwlwvom2Awlwvom2 = new Nwlwvom2Awlwvom2();
		if ( getVersion() >= 2000 ) {
			nwlwvom2Awlwvom2.add();
		} else {
if (nwlwvom2Awlwvom2.demande == null) nwlwvom2Awlwvom2.demande = new Nwlwvom2Awlwvom2Demande();
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.code_insee, 5);
		super.marshal.addDataN(nwlwvom2Awlwvom2.demande.voi_id, 9, 0);
		super.marshal.addDataN(nwlwvom2Awlwvom2.demande.matricule_mere, 9, 0);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.no_voie_creat, 5);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.no_ordre_creat, 7);
		super.marshal.addDataN(nwlwvom2Awlwvom2.demande.matricule_voie, 9, 0);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.top_choix_voie, 1);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.borne_inf, 5);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.borne_sup, 5);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.num_ordre_inf, 7);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.top_filtre, 1);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.zpo_affectation, 4);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.type_affectation, 1);
		super.marshal.addDataA(nwlwvom2Awlwvom2.demande.top_action, 1);
				if (nwlwvom2Awlwvom2.demande.num_voie == null) nwlwvom2Awlwvom2.demande.num_voie = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwvom2Awlwvom2.demande.num_voie[i0], 5);
				if (nwlwvom2Awlwvom2.demande.num_ordre == null) nwlwvom2Awlwvom2.demande.num_ordre = new BigDecimal[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataN(nwlwvom2Awlwvom2.demande.num_ordre[i0], 5, 0);
				if (nwlwvom2Awlwvom2.demande.cd_zpo_n == null) nwlwvom2Awlwvom2.demande.cd_zpo_n = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwvom2Awlwvom2.demande.cd_zpo_n[i0], 4);
				if (nwlwvom2Awlwvom2.demande.cd_zpo_r == null) nwlwvom2Awlwvom2.demande.cd_zpo_r = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwvom2Awlwvom2.demande.cd_zpo_r[i0], 4);
				if (nwlwvom2Awlwvom2.demande.cd_zpo_t == null) nwlwvom2Awlwvom2.demande.cd_zpo_t = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwvom2Awlwvom2.demande.cd_zpo_t[i0], 4);
		}

		callServer();

		if (nwlwvom2Axwebent == null) nwlwvom2Axwebent = new Nwlwvom2Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom2Axwebent.get();
		} else {
		nwlwvom2Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwvom2Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwvom2Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwvom2Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwvom2Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwvom2Axwebent.transaction = super.marshal.getDataA(8);
		nwlwvom2Axwebent.fonction = super.marshal.getDataA(8);
		nwlwvom2Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwvom2Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwvom2Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwvom2Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwvom2Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwvom2Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwvom2Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwvom2Axwebent.type_user = super.marshal.getDataA(1);
		nwlwvom2Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwvom2Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwvom2Axwebent.t_ano == null) nwlwvom2Axwebent.t_ano = new Nwlwvom2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom2Axwebent.t_ano[i0] == null) nwlwvom2Axwebent.t_ano[i0] = new Nwlwvom2AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwvom2Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwvom2Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwvom2Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwvom2Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwvom2Awlwvom2 == null) nwlwvom2Awlwvom2 = new Nwlwvom2Awlwvom2();
		if ( getVersion() >= 2000 ) {
			nwlwvom2Awlwvom2.get();
		} else {
		if (nwlwvom2Awlwvom2.demande == null) nwlwvom2Awlwvom2.demande = new Nwlwvom2Awlwvom2Demande();
		nwlwvom2Awlwvom2.demande.code_insee = super.marshal.getDataA(5);
		nwlwvom2Awlwvom2.demande.voi_id = super.marshal.getDataN(9, 0);
		nwlwvom2Awlwvom2.demande.matricule_mere = super.marshal.getDataN(9, 0);
		nwlwvom2Awlwvom2.demande.no_voie_creat = super.marshal.getDataA(5);
		nwlwvom2Awlwvom2.demande.no_ordre_creat = super.marshal.getDataA(7);
		nwlwvom2Awlwvom2.demande.matricule_voie = super.marshal.getDataN(9, 0);
		nwlwvom2Awlwvom2.demande.top_choix_voie = super.marshal.getDataA(1);
		nwlwvom2Awlwvom2.demande.borne_inf = super.marshal.getDataA(5);
		nwlwvom2Awlwvom2.demande.borne_sup = super.marshal.getDataA(5);
		nwlwvom2Awlwvom2.demande.num_ordre_inf = super.marshal.getDataA(7);
		nwlwvom2Awlwvom2.demande.top_filtre = super.marshal.getDataA(1);
		nwlwvom2Awlwvom2.demande.zpo_affectation = super.marshal.getDataA(4);
		nwlwvom2Awlwvom2.demande.type_affectation = super.marshal.getDataA(1);
		nwlwvom2Awlwvom2.demande.top_action = super.marshal.getDataA(1);
		for (int i0=0; i0<500; i0++) nwlwvom2Awlwvom2.demande.num_voie[i0] = super.marshal.getDataA(5);
		for (int i0=0; i0<500; i0++) nwlwvom2Awlwvom2.demande.num_ordre[i0] = super.marshal.getDataN(5, 0);
		for (int i0=0; i0<500; i0++) nwlwvom2Awlwvom2.demande.cd_zpo_n[i0] = super.marshal.getDataA(4);
		for (int i0=0; i0<500; i0++) nwlwvom2Awlwvom2.demande.cd_zpo_r[i0] = super.marshal.getDataA(4);
		for (int i0=0; i0<500; i0++) nwlwvom2Awlwvom2.demande.cd_zpo_t[i0] = super.marshal.getDataA(4);
		}

	}

	public class Nwlwvom2Axwebent {
		public BigDecimal dbid;
		public String cible_exploitant;
		public String groupe_exploitant;
		public BigDecimal numero_session;
		public String utilisateur;
		public String transaction;
		public String fonction;
		public String date_time_deb;
		public String cd_cible;
		public String cd_stegrp;
		public String cd_titre;
		public String num_cli_ref;
		public String mot_passe_appl;
		public String cd_application;
		public String type_user;
		public BigDecimal code_retour;
		public BigDecimal nb_ano;
		public Nwlwvom2AxwebentT_ano[] t_ano;
		public void add() throws BrokerException {
			Jwlwvom2.super.marshal.addDataN(dbid, 3, 0);
			Jwlwvom2.super.marshal.addDataA(cible_exploitant, 2);
			Jwlwvom2.super.marshal.addDataA(groupe_exploitant, 8);
			Jwlwvom2.super.marshal.addDataN(numero_session, 8, 0);
			Jwlwvom2.super.marshal.addDataA(utilisateur, 8);
			Jwlwvom2.super.marshal.addDataA(transaction, 8);
			Jwlwvom2.super.marshal.addDataA(fonction, 8);
			Jwlwvom2.super.marshal.addDataA(date_time_deb, 15);
			Jwlwvom2.super.marshal.addDataA(cd_cible, 2);
			Jwlwvom2.super.marshal.addDataA(cd_stegrp, 3);
			Jwlwvom2.super.marshal.addDataA(cd_titre, 3);
			Jwlwvom2.super.marshal.addDataA(num_cli_ref, 11);
			Jwlwvom2.super.marshal.addDataA(mot_passe_appl, 8);
			Jwlwvom2.super.marshal.addDataA(cd_application, 8);
			Jwlwvom2.super.marshal.addDataA(type_user, 1);
			Jwlwvom2.super.marshal.addDataN(code_retour, 2, 0);
			Jwlwvom2.super.marshal.addDataN(nb_ano, 1, 0);
			if (t_ano == null) t_ano = new Nwlwvom2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwvom2AxwebentT_ano();
			for (int i0=0; i0<5; i0++) t_ano[i0].add();
		}
		public void get() throws BrokerException {
			dbid = Jwlwvom2.super.marshal.getDataN(3, 0);
			cible_exploitant = Jwlwvom2.super.marshal.getDataA(2);
			groupe_exploitant = Jwlwvom2.super.marshal.getDataA(8);
			numero_session = Jwlwvom2.super.marshal.getDataN(8, 0);
			utilisateur = Jwlwvom2.super.marshal.getDataA(8);
			transaction = Jwlwvom2.super.marshal.getDataA(8);
			fonction = Jwlwvom2.super.marshal.getDataA(8);
			date_time_deb = Jwlwvom2.super.marshal.getDataA(15);
			cd_cible = Jwlwvom2.super.marshal.getDataA(2);
			cd_stegrp = Jwlwvom2.super.marshal.getDataA(3);
			cd_titre = Jwlwvom2.super.marshal.getDataA(3);
			num_cli_ref = Jwlwvom2.super.marshal.getDataA(11);
			mot_passe_appl = Jwlwvom2.super.marshal.getDataA(8);
			cd_application = Jwlwvom2.super.marshal.getDataA(8);
			type_user = Jwlwvom2.super.marshal.getDataA(1);
			code_retour = Jwlwvom2.super.marshal.getDataN(2, 0);
			nb_ano = Jwlwvom2.super.marshal.getDataN(1, 0);
			if (t_ano == null) t_ano = new Nwlwvom2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwvom2AxwebentT_ano();
			for (int i0=0; i0<5; i0++) {
				t_ano[i0].get();
			}
		}
	}

	public class Nwlwvom2AxwebentT_ano {
		public String code_ano;
		public String lib_ano;
		public String type_ano;
		public BigDecimal num_data;
		public void add() throws BrokerException {
			Jwlwvom2.super.marshal.addDataA(code_ano, 4);
			Jwlwvom2.super.marshal.addDataA(lib_ano, 65);
			Jwlwvom2.super.marshal.addDataA(type_ano, 1);
			Jwlwvom2.super.marshal.addDataN(num_data, 2, 0);
		}
		public void get() throws BrokerException {
			code_ano = Jwlwvom2.super.marshal.getDataA(4);
			lib_ano = Jwlwvom2.super.marshal.getDataA(65);
			type_ano = Jwlwvom2.super.marshal.getDataA(1);
			num_data = Jwlwvom2.super.marshal.getDataN(2, 0);
		}
	}

	public class Nwlwvom2Awlwvom2 {
		public Nwlwvom2Awlwvom2Demande demande;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwlwvom2Awlwvom2Demande();
			demande.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwlwvom2Awlwvom2Demande();
							demande.get();
		}
	}

	public class Nwlwvom2Awlwvom2Demande {
		public String code_insee;
		public BigDecimal voi_id;
		public BigDecimal matricule_mere;
		public String no_voie_creat;
		public String no_ordre_creat;
		public BigDecimal matricule_voie;
		public String top_choix_voie;
		public String borne_inf;
		public String borne_sup;
		public String num_ordre_inf;
		public String top_filtre;
		public String zpo_affectation;
		public String type_affectation;
		public String top_action;
		public String[] num_voie;
		public BigDecimal[] num_ordre;
		public String[] cd_zpo_n;
		public String[] cd_zpo_r;
		public String[] cd_zpo_t;
		public void add() throws BrokerException {
			Jwlwvom2.super.marshal.addDataA(code_insee, 5);
			Jwlwvom2.super.marshal.addDataN(voi_id, 9, 0);
			Jwlwvom2.super.marshal.addDataN(matricule_mere, 9, 0);
			Jwlwvom2.super.marshal.addDataA(no_voie_creat, 5);
			Jwlwvom2.super.marshal.addDataA(no_ordre_creat, 7);
			Jwlwvom2.super.marshal.addDataN(matricule_voie, 9, 0);
			Jwlwvom2.super.marshal.addDataA(top_choix_voie, 1);
			Jwlwvom2.super.marshal.addDataA(borne_inf, 5);
			Jwlwvom2.super.marshal.addDataA(borne_sup, 5);
			Jwlwvom2.super.marshal.addDataA(num_ordre_inf, 7);
			Jwlwvom2.super.marshal.addDataA(top_filtre, 1);
			Jwlwvom2.super.marshal.addDataA(zpo_affectation, 4);
			Jwlwvom2.super.marshal.addDataA(type_affectation, 1);
			Jwlwvom2.super.marshal.addDataA(top_action, 1);
			if (num_voie == null) num_voie = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwvom2.super.marshal.addDataA(num_voie[i0], 5);
			if (num_ordre == null) num_ordre = new BigDecimal[500];
			for (int i0=0; i0<500; i0++) Jwlwvom2.super.marshal.addDataN(num_ordre[i0], 5, 0);
			if (cd_zpo_n == null) cd_zpo_n = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwvom2.super.marshal.addDataA(cd_zpo_n[i0], 4);
			if (cd_zpo_r == null) cd_zpo_r = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwvom2.super.marshal.addDataA(cd_zpo_r[i0], 4);
			if (cd_zpo_t == null) cd_zpo_t = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwvom2.super.marshal.addDataA(cd_zpo_t[i0], 4);
		}
		public void get() throws BrokerException {
			code_insee = Jwlwvom2.super.marshal.getDataA(5);
			voi_id = Jwlwvom2.super.marshal.getDataN(9, 0);
			matricule_mere = Jwlwvom2.super.marshal.getDataN(9, 0);
			no_voie_creat = Jwlwvom2.super.marshal.getDataA(5);
			no_ordre_creat = Jwlwvom2.super.marshal.getDataA(7);
			matricule_voie = Jwlwvom2.super.marshal.getDataN(9, 0);
			top_choix_voie = Jwlwvom2.super.marshal.getDataA(1);
			borne_inf = Jwlwvom2.super.marshal.getDataA(5);
			borne_sup = Jwlwvom2.super.marshal.getDataA(5);
			num_ordre_inf = Jwlwvom2.super.marshal.getDataA(7);
			top_filtre = Jwlwvom2.super.marshal.getDataA(1);
			zpo_affectation = Jwlwvom2.super.marshal.getDataA(4);
			type_affectation = Jwlwvom2.super.marshal.getDataA(1);
			top_action = Jwlwvom2.super.marshal.getDataA(1);
			if (num_voie == null) num_voie = new String[500];
			for (int i0=0; i0<500; i0++) num_voie[i0] = Jwlwvom2.super.marshal.getDataA(5);
			if (num_ordre == null) num_ordre = new BigDecimal[500];
			for (int i0=0; i0<500; i0++) num_ordre[i0] = Jwlwvom2.super.marshal.getDataN(5, 0);
			if (cd_zpo_n == null) cd_zpo_n = new String[500];
			for (int i0=0; i0<500; i0++) cd_zpo_n[i0] = Jwlwvom2.super.marshal.getDataA(4);
			if (cd_zpo_r == null) cd_zpo_r = new String[500];
			for (int i0=0; i0<500; i0++) cd_zpo_r[i0] = Jwlwvom2.super.marshal.getDataA(4);
			if (cd_zpo_t == null) cd_zpo_t = new String[500];
			for (int i0=0; i0<500; i0++) cd_zpo_t[i0] = Jwlwvom2.super.marshal.getDataA(4);
		}
	}

}
