/**
 ** 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/nwlwvol5/nwlwvol5.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 Jwlwvol5 extends RPCService {

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

	public Jwlwvol5() {
		super();
	}

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

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

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

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

	private Nwlwvol5Axwebent nwlwvol5Axwebent;

	public void setNwlwvol5Axwebent(Nwlwvol5Axwebent p) {
		nwlwvol5Axwebent = p;
	}

	public Nwlwvol5Axwebent getNwlwvol5Axwebent() {
		return nwlwvol5Axwebent;
	}

	private Nwlwvol5Axweblst nwlwvol5Axweblst;

	public void setNwlwvol5Axweblst(Nwlwvol5Axweblst p) {
		nwlwvol5Axweblst = p;
	}

	public Nwlwvol5Axweblst getNwlwvol5Axweblst() {
		return nwlwvol5Axweblst;
	}

	private Nwlwvol5Awlwvol5 nwlwvol5Awlwvol5;

	public void setNwlwvol5Awlwvol5(Nwlwvol5Awlwvol5 p) {
		nwlwvol5Awlwvol5 = p;
	}

	public Nwlwvol5Awlwvol5 getNwlwvol5Awlwvol5() {
		return nwlwvol5Awlwvol5;
	}

	private Nwlwvol5Awlwvol5_tab nwlwvol5Awlwvol5_tab;

	public void setNwlwvol5Awlwvol5_tab(Nwlwvol5Awlwvol5_tab p) {
		nwlwvol5Awlwvol5_tab = p;
	}

	public Nwlwvol5Awlwvol5_tab getNwlwvol5Awlwvol5_tab() {
		return nwlwvol5Awlwvol5_tab;
	}

	private final static byte[] NWLWVOL5_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,1MN3,0MN2,0MN3,0MN2,0MA1,0MN2,0MG1,0MG1,1MG2,"
			  + "1MG3,1MP9,0MG3,0MG2,0MG1,0MG1,1MG2,1,40MA5,0MA4,0MA4,0MA1,"
			  + "0MA1,0MG2,0MG1,0." ).getBytes();

	public void nwlwvol5() throws BrokerException {

		buildHeader (NWLWVOL5_FORMAT, "49", 1096, 0, "NWLWVOL5", true, 1110, true, false, 2000);
if (nwlwvol5Axwebent == null) nwlwvol5Axwebent = new Nwlwvol5Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwvol5Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwvol5Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwvol5Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwvol5Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwvol5Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwvol5Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwvol5Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwvol5Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwvol5Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwvol5Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwvol5Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwvol5Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwvol5Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwvol5Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwvol5Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwvol5Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwvol5Axwebent.nb_ano, 1, 0);
		if (nwlwvol5Axwebent.t_ano == null) nwlwvol5Axwebent.t_ano = new Nwlwvol5AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvol5Axwebent.t_ano[i0] == null) nwlwvol5Axwebent.t_ano[i0] = new Nwlwvol5AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvol5Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvol5Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvol5Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwvol5Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwvol5Axweblst == null) nwlwvol5Axweblst = new Nwlwvol5Axweblst();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Axweblst.add();
		} else {
		super.marshal.addDataN(nwlwvol5Axweblst.nb_rep_souhait, 3, 0);
		super.marshal.addDataN(nwlwvol5Axweblst.num_page_souhait, 2, 0);
		super.marshal.addDataN(nwlwvol5Axweblst.nb_rep_rendues, 3, 0);
		super.marshal.addDataN(nwlwvol5Axweblst.num_page_rendue, 2, 0);
		super.marshal.addDataA(nwlwvol5Axweblst.top_page_suivante, 1);
		super.marshal.addDataN(nwlwvol5Axweblst.nb_pages_totales, 2, 0);
		}
if (nwlwvol5Awlwvol5 == null) nwlwvol5Awlwvol5 = new Nwlwvol5Awlwvol5();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Awlwvol5.add();
		} else {
if (nwlwvol5Awlwvol5.demande == null) nwlwvol5Awlwvol5.demande = new Nwlwvol5Awlwvol5Demande();
if (nwlwvol5Awlwvol5.demande.critere_select == null) nwlwvol5Awlwvol5.demande.critere_select = new Nwlwvol5Awlwvol5DemandeCritere_select();
		super.marshal.addDataN(nwlwvol5Awlwvol5.demande.critere_select.f_matricule_mere, 9, 0);
		}
if (nwlwvol5Awlwvol5_tab == null) nwlwvol5Awlwvol5_tab = new Nwlwvol5Awlwvol5_tab();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Awlwvol5_tab.add();
		} else {
		if (nwlwvol5Awlwvol5_tab.ligne_ref == null) nwlwvol5Awlwvol5_tab.ligne_ref = new Nwlwvol5Awlwvol5_tabLigne_ref[40];
		for (int i0=0; i0<40; i0++) if (nwlwvol5Awlwvol5_tab.ligne_ref[i0] == null) nwlwvol5Awlwvol5_tab.ligne_ref[i0] = new Nwlwvol5Awlwvol5_tabLigne_ref();
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvol5Awlwvol5_tab.ligne_ref[i0].num_voie, 5);
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvol5Awlwvol5_tab.ligne_ref[i0].cd_zpo_n, 4);
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvol5Awlwvol5_tab.ligne_ref[i0].cd_zpo_t, 4);
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvol5Awlwvol5_tab.ligne_ref[i0].type_portage_n, 1);
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvol5Awlwvol5_tab.ligne_ref[i0].type_portage_t, 1);
		}

		callServer();

		if (nwlwvol5Axwebent == null) nwlwvol5Axwebent = new Nwlwvol5Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Axwebent.get();
		} else {
		nwlwvol5Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwvol5Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwvol5Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwvol5Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwvol5Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwvol5Axwebent.transaction = super.marshal.getDataA(8);
		nwlwvol5Axwebent.fonction = super.marshal.getDataA(8);
		nwlwvol5Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwvol5Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwvol5Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwvol5Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwvol5Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwvol5Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwvol5Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwvol5Axwebent.type_user = super.marshal.getDataA(1);
		nwlwvol5Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwvol5Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwvol5Axwebent.t_ano == null) nwlwvol5Axwebent.t_ano = new Nwlwvol5AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvol5Axwebent.t_ano[i0] == null) nwlwvol5Axwebent.t_ano[i0] = new Nwlwvol5AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwvol5Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwvol5Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwvol5Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwvol5Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwvol5Axweblst == null) nwlwvol5Axweblst = new Nwlwvol5Axweblst();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Axweblst.get();
		} else {
		nwlwvol5Axweblst.nb_rep_souhait = super.marshal.getDataN(3, 0);
		nwlwvol5Axweblst.num_page_souhait = super.marshal.getDataN(2, 0);
		nwlwvol5Axweblst.nb_rep_rendues = super.marshal.getDataN(3, 0);
		nwlwvol5Axweblst.num_page_rendue = super.marshal.getDataN(2, 0);
		nwlwvol5Axweblst.top_page_suivante = super.marshal.getDataA(1);
		nwlwvol5Axweblst.nb_pages_totales = super.marshal.getDataN(2, 0);
		}
		if (nwlwvol5Awlwvol5 == null) nwlwvol5Awlwvol5 = new Nwlwvol5Awlwvol5();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Awlwvol5.get();
		} else {
		if (nwlwvol5Awlwvol5.demande == null) nwlwvol5Awlwvol5.demande = new Nwlwvol5Awlwvol5Demande();
		if (nwlwvol5Awlwvol5.demande.critere_select == null) nwlwvol5Awlwvol5.demande.critere_select = new Nwlwvol5Awlwvol5DemandeCritere_select();
		nwlwvol5Awlwvol5.demande.critere_select.f_matricule_mere = super.marshal.getDataN(9, 0);
		}
		if (nwlwvol5Awlwvol5_tab == null) nwlwvol5Awlwvol5_tab = new Nwlwvol5Awlwvol5_tab();
		if ( getVersion() >= 2000 ) {
			nwlwvol5Awlwvol5_tab.get();
		} else {
				if (nwlwvol5Awlwvol5_tab.ligne_ref == null) nwlwvol5Awlwvol5_tab.ligne_ref = new Nwlwvol5Awlwvol5_tabLigne_ref[40];
		for (int i0=0; i0<40; i0++) if (nwlwvol5Awlwvol5_tab.ligne_ref[i0] == null) nwlwvol5Awlwvol5_tab.ligne_ref[i0] = new Nwlwvol5Awlwvol5_tabLigne_ref();
		for (int i0=0; i0<40; i0++) nwlwvol5Awlwvol5_tab.ligne_ref[i0].num_voie = super.marshal.getDataA(5);
		for (int i0=0; i0<40; i0++) nwlwvol5Awlwvol5_tab.ligne_ref[i0].cd_zpo_n = super.marshal.getDataA(4);
		for (int i0=0; i0<40; i0++) nwlwvol5Awlwvol5_tab.ligne_ref[i0].cd_zpo_t = super.marshal.getDataA(4);
		for (int i0=0; i0<40; i0++) nwlwvol5Awlwvol5_tab.ligne_ref[i0].type_portage_n = super.marshal.getDataA(1);
		for (int i0=0; i0<40; i0++) nwlwvol5Awlwvol5_tab.ligne_ref[i0].type_portage_t = super.marshal.getDataA(1);
		}

	}

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

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

	public class Nwlwvol5Axweblst {
		public BigDecimal nb_rep_souhait;
		public BigDecimal num_page_souhait;
		public BigDecimal nb_rep_rendues;
		public BigDecimal num_page_rendue;
		public String top_page_suivante;
		public BigDecimal nb_pages_totales;
		public void add() throws BrokerException {
			Jwlwvol5.super.marshal.addDataN(nb_rep_souhait, 3, 0);
			Jwlwvol5.super.marshal.addDataN(num_page_souhait, 2, 0);
			Jwlwvol5.super.marshal.addDataN(nb_rep_rendues, 3, 0);
			Jwlwvol5.super.marshal.addDataN(num_page_rendue, 2, 0);
			Jwlwvol5.super.marshal.addDataA(top_page_suivante, 1);
			Jwlwvol5.super.marshal.addDataN(nb_pages_totales, 2, 0);
		}
		public void get() throws BrokerException {
			nb_rep_souhait = Jwlwvol5.super.marshal.getDataN(3, 0);
			num_page_souhait = Jwlwvol5.super.marshal.getDataN(2, 0);
			nb_rep_rendues = Jwlwvol5.super.marshal.getDataN(3, 0);
			num_page_rendue = Jwlwvol5.super.marshal.getDataN(2, 0);
			top_page_suivante = Jwlwvol5.super.marshal.getDataA(1);
			nb_pages_totales = Jwlwvol5.super.marshal.getDataN(2, 0);
		}
	}

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

	public class Nwlwvol5Awlwvol5Demande {
		public Nwlwvol5Awlwvol5DemandeCritere_select critere_select;
		public void add() throws BrokerException {
			if (critere_select == null) critere_select = new Nwlwvol5Awlwvol5DemandeCritere_select();
			critere_select.add();
		}
		public void get() throws BrokerException {
			if (critere_select == null) critere_select = new Nwlwvol5Awlwvol5DemandeCritere_select();
							critere_select.get();
		}
	}

	public class Nwlwvol5Awlwvol5DemandeCritere_select {
		public BigDecimal f_matricule_mere;
		public void add() throws BrokerException {
			Jwlwvol5.super.marshal.addDataN(f_matricule_mere, 9, 0);
		}
		public void get() throws BrokerException {
			f_matricule_mere = Jwlwvol5.super.marshal.getDataN(9, 0);
		}
	}

	public class Nwlwvol5Awlwvol5_tab {
		public Nwlwvol5Awlwvol5_tabLigne_ref[] ligne_ref;
		public void add() throws BrokerException {
			if (ligne_ref == null) ligne_ref = new Nwlwvol5Awlwvol5_tabLigne_ref[40];
		for (int i0=0; i0<40; i0++) if (ligne_ref[i0] == null) ligne_ref[i0] = new Nwlwvol5Awlwvol5_tabLigne_ref();
			for (int i0=0; i0<40; i0++) ligne_ref[i0].add();
		}
		public void get() throws BrokerException {
			if (ligne_ref == null) ligne_ref = new Nwlwvol5Awlwvol5_tabLigne_ref[40];
		for (int i0=0; i0<40; i0++) if (ligne_ref[i0] == null) ligne_ref[i0] = new Nwlwvol5Awlwvol5_tabLigne_ref();
			for (int i0=0; i0<40; i0++) {
				ligne_ref[i0].get();
			}
		}
	}

	public class Nwlwvol5Awlwvol5_tabLigne_ref {
		public String num_voie;
		public String cd_zpo_n;
		public String cd_zpo_t;
		public String type_portage_n;
		public String type_portage_t;
		public void add() throws BrokerException {
			Jwlwvol5.super.marshal.addDataA(num_voie, 5);
			Jwlwvol5.super.marshal.addDataA(cd_zpo_n, 4);
			Jwlwvol5.super.marshal.addDataA(cd_zpo_t, 4);
			Jwlwvol5.super.marshal.addDataA(type_portage_n, 1);
			Jwlwvol5.super.marshal.addDataA(type_portage_t, 1);
		}
		public void get() throws BrokerException {
			num_voie = Jwlwvol5.super.marshal.getDataA(5);
			cd_zpo_n = Jwlwvol5.super.marshal.getDataA(4);
			cd_zpo_t = Jwlwvol5.super.marshal.getDataA(4);
			type_portage_n = Jwlwvol5.super.marshal.getDataA(1);
			type_portage_t = Jwlwvol5.super.marshal.getDataA(1);
		}
	}

}
