/**
 ** 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/PatrickR/Bureau/brokers_portage_modif/MOM1/nwbwmom1.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 Jwbwmom1 extends RPCService {

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

	public Jwbwmom1() {
		super();
	}

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

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

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

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

	private Nwlwmom1Axwebent nwlwmom1Axwebent;

	public void setNwlwmom1Axwebent(Nwlwmom1Axwebent p) {
		nwlwmom1Axwebent = p;
	}

	public Nwlwmom1Axwebent getNwlwmom1Axwebent() {
		return nwlwmom1Axwebent;
	}

	private Nwlwmom1Awlwmom1 nwlwmom1Awlwmom1;

	public void setNwlwmom1Awlwmom1(Nwlwmom1Awlwmom1 p) {
		nwlwmom1Awlwmom1 = p;
	}

	public Nwlwmom1Awlwmom1 getNwlwmom1Awlwmom1() {
		return nwlwmom1Awlwmom1;
	}

	private final static byte[] NWLWMOM1_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,1MN9,0MN8,0MN8,0MA50,0MA4,0MG2,1MA1,0,20MA4,"
			  + "0,20MG3,1,20MA4,0MG3,0MA30,0,20MA30,0,20MG2,0MG1,0." ).getBytes();

	public void nwlwmom1() throws BrokerException {

		buildHeader (NWLWMOM1_FORMAT, "41", 1930, 0, "NWLWMOM1", true, 1110, true, false, 2000);
if (nwlwmom1Axwebent == null) nwlwmom1Axwebent = new Nwlwmom1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwmom1Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwmom1Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwmom1Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwmom1Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwmom1Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwmom1Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwmom1Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwmom1Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwmom1Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwmom1Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwmom1Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwmom1Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwmom1Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwmom1Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwmom1Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwmom1Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwmom1Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwmom1Axwebent.nb_ano, 1, 0);
		if (nwlwmom1Axwebent.t_ano == null) nwlwmom1Axwebent.t_ano = new Nwlwmom1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwmom1Axwebent.t_ano[i0] == null) nwlwmom1Axwebent.t_ano[i0] = new Nwlwmom1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwmom1Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwmom1Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwmom1Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwmom1Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwmom1Awlwmom1 == null) nwlwmom1Awlwmom1 = new Nwlwmom1Awlwmom1();
		if ( getVersion() >= 2000 ) {
			nwlwmom1Awlwmom1.add();
		} else {
		super.marshal.addDataN(nwlwmom1Awlwmom1.id_meteo, 9, 0);
		super.marshal.addDataN(nwlwmom1Awlwmom1.dt_debut, 8, 0);
		super.marshal.addDataN(nwlwmom1Awlwmom1.dt_fin, 8, 0);
		super.marshal.addDataA(nwlwmom1Awlwmom1.lig_info, 50);
		super.marshal.addDataA(nwlwmom1Awlwmom1.cd_prt, 4);
if (nwlwmom1Awlwmom1.liste_loc == null) nwlwmom1Awlwmom1.liste_loc = new Nwlwmom1Awlwmom1Liste_loc();
				if (nwlwmom1Awlwmom1.liste_loc.type_portage == null) nwlwmom1Awlwmom1.liste_loc.type_portage = new String[20];
		for (int i0=0; i0<20; i0++) super.marshal.addDataA(nwlwmom1Awlwmom1.liste_loc.type_portage[i0], 1);
				if (nwlwmom1Awlwmom1.liste_loc.cd_zpo == null) nwlwmom1Awlwmom1.liste_loc.cd_zpo = new String[20];
		for (int i0=0; i0<20; i0++) super.marshal.addDataA(nwlwmom1Awlwmom1.liste_loc.cd_zpo[i0], 4);
		if (nwlwmom1Awlwmom1.liste_loc.liste_tournee == null) nwlwmom1Awlwmom1.liste_loc.liste_tournee = new Nwlwmom1Awlwmom1Liste_locListe_tournee[20];
		for (int i0=0; i0<20; i0++) if (nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0] == null) nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0] = new Nwlwmom1Awlwmom1Liste_locListe_tournee();
		for (int i0=0; i0<20; i0++) super.marshal.addDataA(nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0].id_tournee, 4);
				if (nwlwmom1Awlwmom1.liste_loc.lib_zpo == null) nwlwmom1Awlwmom1.liste_loc.lib_zpo = new String[20];
		for (int i0=0; i0<20; i0++) super.marshal.addDataA(nwlwmom1Awlwmom1.liste_loc.lib_zpo[i0], 30);
				if (nwlwmom1Awlwmom1.liste_loc.lib_tournee == null) nwlwmom1Awlwmom1.liste_loc.lib_tournee = new String[20];
		for (int i0=0; i0<20; i0++) super.marshal.addDataA(nwlwmom1Awlwmom1.liste_loc.lib_tournee[i0], 30);
		}

		callServer();

		if (nwlwmom1Axwebent == null) nwlwmom1Axwebent = new Nwlwmom1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwmom1Axwebent.get();
		} else {
		nwlwmom1Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwmom1Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwmom1Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwmom1Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwmom1Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwmom1Axwebent.transaction = super.marshal.getDataA(8);
		nwlwmom1Axwebent.fonction = super.marshal.getDataA(8);
		nwlwmom1Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwmom1Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwmom1Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwmom1Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwmom1Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwmom1Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwmom1Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwmom1Axwebent.type_user = super.marshal.getDataA(1);
		nwlwmom1Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwmom1Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwmom1Axwebent.t_ano == null) nwlwmom1Axwebent.t_ano = new Nwlwmom1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwmom1Axwebent.t_ano[i0] == null) nwlwmom1Axwebent.t_ano[i0] = new Nwlwmom1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwmom1Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwmom1Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwmom1Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwmom1Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwmom1Awlwmom1 == null) nwlwmom1Awlwmom1 = new Nwlwmom1Awlwmom1();
		if ( getVersion() >= 2000 ) {
			nwlwmom1Awlwmom1.get();
		} else {
		nwlwmom1Awlwmom1.id_meteo = super.marshal.getDataN(9, 0);
		nwlwmom1Awlwmom1.dt_debut = super.marshal.getDataN(8, 0);
		nwlwmom1Awlwmom1.dt_fin = super.marshal.getDataN(8, 0);
		nwlwmom1Awlwmom1.lig_info = super.marshal.getDataA(50);
		nwlwmom1Awlwmom1.cd_prt = super.marshal.getDataA(4);
		if (nwlwmom1Awlwmom1.liste_loc == null) nwlwmom1Awlwmom1.liste_loc = new Nwlwmom1Awlwmom1Liste_loc();
		for (int i0=0; i0<20; i0++) nwlwmom1Awlwmom1.liste_loc.type_portage[i0] = super.marshal.getDataA(1);
		for (int i0=0; i0<20; i0++) nwlwmom1Awlwmom1.liste_loc.cd_zpo[i0] = super.marshal.getDataA(4);
				if (nwlwmom1Awlwmom1.liste_loc.liste_tournee == null) nwlwmom1Awlwmom1.liste_loc.liste_tournee = new Nwlwmom1Awlwmom1Liste_locListe_tournee[20];
		for (int i0=0; i0<20; i0++) if (nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0] == null) nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0] = new Nwlwmom1Awlwmom1Liste_locListe_tournee();
		for (int i0=0; i0<20; i0++) nwlwmom1Awlwmom1.liste_loc.liste_tournee[i0].id_tournee = super.marshal.getDataA(4);
		for (int i0=0; i0<20; i0++) nwlwmom1Awlwmom1.liste_loc.lib_zpo[i0] = super.marshal.getDataA(30);
		for (int i0=0; i0<20; i0++) nwlwmom1Awlwmom1.liste_loc.lib_tournee[i0] = super.marshal.getDataA(30);
		}

	}

	public class Nwlwmom1Axwebent {
		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 Nwlwmom1AxwebentT_ano[] t_ano;
		public void add() throws BrokerException {
			Jwbwmom1.super.marshal.addDataN(dbid, 3, 0);
			Jwbwmom1.super.marshal.addDataA(cible_exploitant, 2);
			Jwbwmom1.super.marshal.addDataA(groupe_exploitant, 8);
			Jwbwmom1.super.marshal.addDataN(numero_session, 8, 0);
			Jwbwmom1.super.marshal.addDataA(utilisateur, 8);
			Jwbwmom1.super.marshal.addDataA(transaction, 8);
			Jwbwmom1.super.marshal.addDataA(fonction, 8);
			Jwbwmom1.super.marshal.addDataA(date_time_deb, 15);
			Jwbwmom1.super.marshal.addDataA(cd_cible, 2);
			Jwbwmom1.super.marshal.addDataA(cd_stegrp, 3);
			Jwbwmom1.super.marshal.addDataA(cd_titre, 3);
			Jwbwmom1.super.marshal.addDataA(num_cli_ref, 11);
			Jwbwmom1.super.marshal.addDataA(mot_passe_appl, 8);
			Jwbwmom1.super.marshal.addDataA(cd_application, 8);
			Jwbwmom1.super.marshal.addDataA(type_user, 1);
			Jwbwmom1.super.marshal.addDataN(code_retour, 2, 0);
			Jwbwmom1.super.marshal.addDataN(nb_ano, 1, 0);
			if (t_ano == null) t_ano = new Nwlwmom1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwmom1AxwebentT_ano();
			for (int i0=0; i0<5; i0++) t_ano[i0].add();
		}
		public void get() throws BrokerException {
			dbid = Jwbwmom1.super.marshal.getDataN(3, 0);
			cible_exploitant = Jwbwmom1.super.marshal.getDataA(2);
			groupe_exploitant = Jwbwmom1.super.marshal.getDataA(8);
			numero_session = Jwbwmom1.super.marshal.getDataN(8, 0);
			utilisateur = Jwbwmom1.super.marshal.getDataA(8);
			transaction = Jwbwmom1.super.marshal.getDataA(8);
			fonction = Jwbwmom1.super.marshal.getDataA(8);
			date_time_deb = Jwbwmom1.super.marshal.getDataA(15);
			cd_cible = Jwbwmom1.super.marshal.getDataA(2);
			cd_stegrp = Jwbwmom1.super.marshal.getDataA(3);
			cd_titre = Jwbwmom1.super.marshal.getDataA(3);
			num_cli_ref = Jwbwmom1.super.marshal.getDataA(11);
			mot_passe_appl = Jwbwmom1.super.marshal.getDataA(8);
			cd_application = Jwbwmom1.super.marshal.getDataA(8);
			type_user = Jwbwmom1.super.marshal.getDataA(1);
			code_retour = Jwbwmom1.super.marshal.getDataN(2, 0);
			nb_ano = Jwbwmom1.super.marshal.getDataN(1, 0);
			if (t_ano == null) t_ano = new Nwlwmom1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (t_ano[i0] == null) t_ano[i0] = new Nwlwmom1AxwebentT_ano();
			for (int i0=0; i0<5; i0++) {
				t_ano[i0].get();
			}
		}
	}

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

	public class Nwlwmom1Awlwmom1 {
		public BigDecimal id_meteo;
		public BigDecimal dt_debut;
		public BigDecimal dt_fin;
		public String lig_info;
		public String cd_prt;
		public Nwlwmom1Awlwmom1Liste_loc liste_loc;
		public void add() throws BrokerException {
			Jwbwmom1.super.marshal.addDataN(id_meteo, 9, 0);
			Jwbwmom1.super.marshal.addDataN(dt_debut, 8, 0);
			Jwbwmom1.super.marshal.addDataN(dt_fin, 8, 0);
			Jwbwmom1.super.marshal.addDataA(lig_info, 50);
			Jwbwmom1.super.marshal.addDataA(cd_prt, 4);
			if (liste_loc == null) liste_loc = new Nwlwmom1Awlwmom1Liste_loc();
			liste_loc.add();
		}
		public void get() throws BrokerException {
			id_meteo = Jwbwmom1.super.marshal.getDataN(9, 0);
			dt_debut = Jwbwmom1.super.marshal.getDataN(8, 0);
			dt_fin = Jwbwmom1.super.marshal.getDataN(8, 0);
			lig_info = Jwbwmom1.super.marshal.getDataA(50);
			cd_prt = Jwbwmom1.super.marshal.getDataA(4);
			if (liste_loc == null) liste_loc = new Nwlwmom1Awlwmom1Liste_loc();
							liste_loc.get();
		}
	}

	public class Nwlwmom1Awlwmom1Liste_loc {
		public String[] type_portage;
		public String[] cd_zpo;
		public Nwlwmom1Awlwmom1Liste_locListe_tournee[] liste_tournee;
		public String[] lib_zpo;
		public String[] lib_tournee;
		public void add() throws BrokerException {
			if (type_portage == null) type_portage = new String[20];
			for (int i0=0; i0<20; i0++) Jwbwmom1.super.marshal.addDataA(type_portage[i0], 1);
			if (cd_zpo == null) cd_zpo = new String[20];
			for (int i0=0; i0<20; i0++) Jwbwmom1.super.marshal.addDataA(cd_zpo[i0], 4);
			if (liste_tournee == null) liste_tournee = new Nwlwmom1Awlwmom1Liste_locListe_tournee[20];
		for (int i0=0; i0<20; i0++) if (liste_tournee[i0] == null) liste_tournee[i0] = new Nwlwmom1Awlwmom1Liste_locListe_tournee();
			for (int i0=0; i0<20; i0++) liste_tournee[i0].add();
			if (lib_zpo == null) lib_zpo = new String[20];
			for (int i0=0; i0<20; i0++) Jwbwmom1.super.marshal.addDataA(lib_zpo[i0], 30);
			if (lib_tournee == null) lib_tournee = new String[20];
			for (int i0=0; i0<20; i0++) Jwbwmom1.super.marshal.addDataA(lib_tournee[i0], 30);
		}
		public void get() throws BrokerException {
			if (type_portage == null) type_portage = new String[20];
			for (int i0=0; i0<20; i0++) type_portage[i0] = Jwbwmom1.super.marshal.getDataA(1);
			if (cd_zpo == null) cd_zpo = new String[20];
			for (int i0=0; i0<20; i0++) cd_zpo[i0] = Jwbwmom1.super.marshal.getDataA(4);
			if (liste_tournee == null) liste_tournee = new Nwlwmom1Awlwmom1Liste_locListe_tournee[20];
		for (int i0=0; i0<20; i0++) if (liste_tournee[i0] == null) liste_tournee[i0] = new Nwlwmom1Awlwmom1Liste_locListe_tournee();
			for (int i0=0; i0<20; i0++) {
				liste_tournee[i0].get();
			}
			if (lib_zpo == null) lib_zpo = new String[20];
			for (int i0=0; i0<20; i0++) lib_zpo[i0] = Jwbwmom1.super.marshal.getDataA(30);
			if (lib_tournee == null) lib_tournee = new String[20];
			for (int i0=0; i0<20; i0++) lib_tournee[i0] = Jwbwmom1.super.marshal.getDataA(30);
		}
	}

	public class Nwlwmom1Awlwmom1Liste_locListe_tournee {
		public String id_tournee;
		public void add() throws BrokerException {
			Jwbwmom1.super.marshal.addDataA(id_tournee, 4);
		}
		public void get() throws BrokerException {
			id_tournee = Jwbwmom1.super.marshal.getDataA(4);
		}
	}

}
