/**
 ** 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/nwwwlst1/nwwwlst1.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 Jwwwlst1 extends RPCService {

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

	public Jwwwlst1() {
		super();
	}

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

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

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

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

	private Nwwwlst1Axwebent nwwwlst1Axwebent;

	public void setNwwwlst1Axwebent(Nwwwlst1Axwebent p) {
		nwwwlst1Axwebent = p;
	}

	public Nwwwlst1Axwebent getNwwwlst1Axwebent() {
		return nwwwlst1Axwebent;
	}

	private Nwwwlst1Awwwlst1 nwwwlst1Awwwlst1;

	public void setNwwwlst1Awwwlst1(Nwwwlst1Awwwlst1 p) {
		nwwwlst1Awwwlst1 = p;
	}

	public Nwwwlst1Awwwlst1 getNwwwlst1Awwwlst1() {
		return nwwwlst1Awwwlst1;
	}

	private final static byte[] NWWWLST1_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,1MA20,0MA32,0MA20,0MG2,0MG2,1MN3,0MA1,"
			  + "0MA20,0,250MA60,0,250MA20,0,250MG2,0MG1,0." ).getBytes();

	public void nwwwlst1() throws BrokerException {

		buildHeader (NWWWLST1_FORMAT, "39", 25545, 0, "NWWWLST1", true, 1110, true, false, 2000);
if (nwwwlst1Axwebent == null) nwwwlst1Axwebent = new Nwwwlst1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwwwlst1Axwebent.add();
		} else {
		super.marshal.addDataN(nwwwlst1Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwwwlst1Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwwwlst1Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwwwlst1Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwwwlst1Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwwwlst1Axwebent.transaction, 8);
		super.marshal.addDataA(nwwwlst1Axwebent.fonction, 8);
		super.marshal.addDataA(nwwwlst1Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwwwlst1Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwwwlst1Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwwwlst1Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwwwlst1Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwwwlst1Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwwwlst1Axwebent.cd_application, 8);
		super.marshal.addDataA(nwwwlst1Axwebent.type_user, 1);
		super.marshal.addDataN(nwwwlst1Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwwwlst1Axwebent.nb_ano, 1, 0);
		if (nwwwlst1Axwebent.t_ano == null) nwwwlst1Axwebent.t_ano = new Nwwwlst1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwwwlst1Axwebent.t_ano[i0] == null) nwwwlst1Axwebent.t_ano[i0] = new Nwwwlst1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwwwlst1Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwwwlst1Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwwwlst1Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwwwlst1Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwwwlst1Awwwlst1 == null) nwwwlst1Awwwlst1 = new Nwwwlst1Awwwlst1();
		if ( getVersion() >= 2000 ) {
			nwwwlst1Awwwlst1.add();
		} else {
if (nwwwlst1Awwwlst1.demande == null) nwwwlst1Awwwlst1.demande = new Nwwwlst1Awwwlst1Demande();
		super.marshal.addDataA(nwwwlst1Awwwlst1.demande.cle_prefixe, 20);
		super.marshal.addDataA(nwwwlst1Awwwlst1.demande.cle_reprise, 32);
		super.marshal.addDataA(nwwwlst1Awwwlst1.demande.cd_action, 20);
if (nwwwlst1Awwwlst1.reponse == null) nwwwlst1Awwwlst1.reponse = new Nwwwlst1Awwwlst1Reponse();
		super.marshal.addDataN(nwwwlst1Awwwlst1.reponse.nb_rep_rendues, 3, 0);
		super.marshal.addDataA(nwwwlst1Awwwlst1.reponse.top_page_suivante, 1);
				if (nwwwlst1Awwwlst1.reponse.liste_cle == null) nwwwlst1Awwwlst1.reponse.liste_cle = new String[250];
		for (int i0=0; i0<250; i0++) super.marshal.addDataA(nwwwlst1Awwwlst1.reponse.liste_cle[i0], 20);
				if (nwwwlst1Awwwlst1.reponse.liste_libelle == null) nwwwlst1Awwwlst1.reponse.liste_libelle = new String[250];
		for (int i0=0; i0<250; i0++) super.marshal.addDataA(nwwwlst1Awwwlst1.reponse.liste_libelle[i0], 60);
				if (nwwwlst1Awwwlst1.reponse.liste_complement == null) nwwwlst1Awwwlst1.reponse.liste_complement = new String[250];
		for (int i0=0; i0<250; i0++) super.marshal.addDataA(nwwwlst1Awwwlst1.reponse.liste_complement[i0], 20);
		}

		callServer();

		if (nwwwlst1Axwebent == null) nwwwlst1Axwebent = new Nwwwlst1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwwwlst1Axwebent.get();
		} else {
		nwwwlst1Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwwwlst1Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwwwlst1Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwwwlst1Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwwwlst1Axwebent.utilisateur = super.marshal.getDataA(8);
		nwwwlst1Axwebent.transaction = super.marshal.getDataA(8);
		nwwwlst1Axwebent.fonction = super.marshal.getDataA(8);
		nwwwlst1Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwwwlst1Axwebent.cd_cible = super.marshal.getDataA(2);
		nwwwlst1Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwwwlst1Axwebent.cd_titre = super.marshal.getDataA(3);
		nwwwlst1Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwwwlst1Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwwwlst1Axwebent.cd_application = super.marshal.getDataA(8);
		nwwwlst1Axwebent.type_user = super.marshal.getDataA(1);
		nwwwlst1Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwwwlst1Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwwwlst1Axwebent.t_ano == null) nwwwlst1Axwebent.t_ano = new Nwwwlst1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwwwlst1Axwebent.t_ano[i0] == null) nwwwlst1Axwebent.t_ano[i0] = new Nwwwlst1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwwwlst1Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwwwlst1Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwwwlst1Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwwwlst1Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwwwlst1Awwwlst1 == null) nwwwlst1Awwwlst1 = new Nwwwlst1Awwwlst1();
		if ( getVersion() >= 2000 ) {
			nwwwlst1Awwwlst1.get();
		} else {
		if (nwwwlst1Awwwlst1.demande == null) nwwwlst1Awwwlst1.demande = new Nwwwlst1Awwwlst1Demande();
		nwwwlst1Awwwlst1.demande.cle_prefixe = super.marshal.getDataA(20);
		nwwwlst1Awwwlst1.demande.cle_reprise = super.marshal.getDataA(32);
		nwwwlst1Awwwlst1.demande.cd_action = super.marshal.getDataA(20);
		if (nwwwlst1Awwwlst1.reponse == null) nwwwlst1Awwwlst1.reponse = new Nwwwlst1Awwwlst1Reponse();
		nwwwlst1Awwwlst1.reponse.nb_rep_rendues = super.marshal.getDataN(3, 0);
		nwwwlst1Awwwlst1.reponse.top_page_suivante = super.marshal.getDataA(1);
		for (int i0=0; i0<250; i0++) nwwwlst1Awwwlst1.reponse.liste_cle[i0] = super.marshal.getDataA(20);
		for (int i0=0; i0<250; i0++) nwwwlst1Awwwlst1.reponse.liste_libelle[i0] = super.marshal.getDataA(60);
		for (int i0=0; i0<250; i0++) nwwwlst1Awwwlst1.reponse.liste_complement[i0] = super.marshal.getDataA(20);
		}

	}

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

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

	public class Nwwwlst1Awwwlst1 {
		public Nwwwlst1Awwwlst1Demande demande;
		public Nwwwlst1Awwwlst1Reponse reponse;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwwwlst1Awwwlst1Demande();
			demande.add();
			if (reponse == null) reponse = new Nwwwlst1Awwwlst1Reponse();
			reponse.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwwwlst1Awwwlst1Demande();
							demande.get();
			if (reponse == null) reponse = new Nwwwlst1Awwwlst1Reponse();
							reponse.get();
		}
	}

	public class Nwwwlst1Awwwlst1Demande {
		public String cle_prefixe;
		public String cle_reprise;
		public String cd_action;
		public void add() throws BrokerException {
			Jwwwlst1.super.marshal.addDataA(cle_prefixe, 20);
			Jwwwlst1.super.marshal.addDataA(cle_reprise, 32);
			Jwwwlst1.super.marshal.addDataA(cd_action, 20);
		}
		public void get() throws BrokerException {
			cle_prefixe = Jwwwlst1.super.marshal.getDataA(20);
			cle_reprise = Jwwwlst1.super.marshal.getDataA(32);
			cd_action = Jwwwlst1.super.marshal.getDataA(20);
		}
	}

	public class Nwwwlst1Awwwlst1Reponse {
		public BigDecimal nb_rep_rendues;
		public String top_page_suivante;
		public String[] liste_cle;
		public String[] liste_libelle;
		public String[] liste_complement;
		public void add() throws BrokerException {
			Jwwwlst1.super.marshal.addDataN(nb_rep_rendues, 3, 0);
			Jwwwlst1.super.marshal.addDataA(top_page_suivante, 1);
			if (liste_cle == null) liste_cle = new String[250];
			for (int i0=0; i0<250; i0++) Jwwwlst1.super.marshal.addDataA(liste_cle[i0], 20);
			if (liste_libelle == null) liste_libelle = new String[250];
			for (int i0=0; i0<250; i0++) Jwwwlst1.super.marshal.addDataA(liste_libelle[i0], 60);
			if (liste_complement == null) liste_complement = new String[250];
			for (int i0=0; i0<250; i0++) Jwwwlst1.super.marshal.addDataA(liste_complement[i0], 20);
		}
		public void get() throws BrokerException {
			nb_rep_rendues = Jwwwlst1.super.marshal.getDataN(3, 0);
			top_page_suivante = Jwwwlst1.super.marshal.getDataA(1);
			if (liste_cle == null) liste_cle = new String[250];
			for (int i0=0; i0<250; i0++) liste_cle[i0] = Jwwwlst1.super.marshal.getDataA(20);
			if (liste_libelle == null) liste_libelle = new String[250];
			for (int i0=0; i0<250; i0++) liste_libelle[i0] = Jwwwlst1.super.marshal.getDataA(60);
			if (liste_complement == null) liste_complement = new String[250];
			for (int i0=0; i0<250; i0++) liste_complement[i0] = Jwwwlst1.super.marshal.getDataA(20);
		}
	}

}
