/**
 ** 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/nwlwtzom/nwlwtzom.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 Jwlwtzom extends RPCService {

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

	public Jwlwtzom() {
		super();
	}

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

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

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

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

	private NwlwtzomAxwebent nwlwtzomAxwebent;

	public void setNwlwtzomAxwebent(NwlwtzomAxwebent p) {
		nwlwtzomAxwebent = p;
	}

	public NwlwtzomAxwebent getNwlwtzomAxwebent() {
		return nwlwtzomAxwebent;
	}

	private NwlwtzomAwlwtzom nwlwtzomAwlwtzom;

	public void setNwlwtzomAwlwtzom(NwlwtzomAwlwtzom p) {
		nwlwtzomAwlwtzom = p;
	}

	public NwlwtzomAwlwtzom getNwlwtzomAwlwtzom() {
		return nwlwtzomAwlwtzom;
	}

	private final static byte[] NWLWTZOM_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,1MA1,0MA5,0,50MA5,0,50MN5,0,50MA4,0MA1,"
			  + "0MA1,0MA3,0MG2,0MG2,1MA32,0MA32,0MA60,0MG2,0MG2,1MA4,0MA1,"
			  + "0MA70,0MG2,0MG1,0." ).getBytes();

	public void nwlwtzom() throws BrokerException {

		buildHeader (NWLWTZOM_FORMAT, "47", 1477, 0, "NWLWTZOM", true, 1110, true, false, 2000);
if (nwlwtzomAxwebent == null) nwlwtzomAxwebent = new NwlwtzomAxwebent();
		if ( getVersion() >= 2000 ) {
			nwlwtzomAxwebent.add();
		} else {
		super.marshal.addDataN(nwlwtzomAxwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwtzomAxwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwtzomAxwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwtzomAxwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwtzomAxwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwtzomAxwebent.transaction, 8);
		super.marshal.addDataA(nwlwtzomAxwebent.fonction, 8);
		super.marshal.addDataA(nwlwtzomAxwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwtzomAxwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwtzomAxwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwtzomAxwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwtzomAxwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwtzomAxwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwtzomAxwebent.cd_application, 8);
		super.marshal.addDataA(nwlwtzomAxwebent.type_user, 1);
		super.marshal.addDataN(nwlwtzomAxwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwtzomAxwebent.nb_ano, 1, 0);
		if (nwlwtzomAxwebent.t_ano == null) nwlwtzomAxwebent.t_ano = new NwlwtzomAxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwtzomAxwebent.t_ano[i0] == null) nwlwtzomAxwebent.t_ano[i0] = new NwlwtzomAxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtzomAxwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtzomAxwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtzomAxwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwtzomAxwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwtzomAwlwtzom == null) nwlwtzomAwlwtzom = new NwlwtzomAwlwtzom();
		if ( getVersion() >= 2000 ) {
			nwlwtzomAwlwtzom.add();
		} else {
if (nwlwtzomAwlwtzom.demande == null) nwlwtzomAwlwtzom.demande = new NwlwtzomAwlwtzomDemande();
		super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_action, 1);
				if (nwlwtzomAwlwtzom.demande.i_cd_insee == null) nwlwtzomAwlwtzom.demande.i_cd_insee = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_cd_insee[i0], 5);
				if (nwlwtzomAwlwtzom.demande.i_cd_postal == null) nwlwtzomAwlwtzom.demande.i_cd_postal = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_cd_postal[i0], 5);
				if (nwlwtzomAwlwtzom.demande.i_nb_voies == null) nwlwtzomAwlwtzom.demande.i_nb_voies = new BigDecimal[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataN(nwlwtzomAwlwtzom.demande.i_nb_voies[i0], 5, 0);
		super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_cd_zpo_affect, 4);
		super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_type_portage_affect, 1);
		super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_tpr_groupe_affect, 1);
		super.marshal.addDataA(nwlwtzomAwlwtzom.demande.i_tpr_num_affect, 3);
if (nwlwtzomAwlwtzom.reponse == null) nwlwtzomAwlwtzom.reponse = new NwlwtzomAwlwtzomReponse();
		super.marshal.addDataA(nwlwtzomAwlwtzom.reponse.o_lib_zpo, 32);
		super.marshal.addDataA(nwlwtzomAwlwtzom.reponse.o_lib_type, 32);
		super.marshal.addDataA(nwlwtzomAwlwtzom.reponse.o_tpr_libelle, 60);
if (nwlwtzomAwlwtzom.info_retour == null) nwlwtzomAwlwtzom.info_retour = new NwlwtzomAwlwtzomInfo_retour();
		super.marshal.addDataA(nwlwtzomAwlwtzom.info_retour.code_ret, 4);
		super.marshal.addDataA(nwlwtzomAwlwtzom.info_retour.type_ret, 1);
		super.marshal.addDataA(nwlwtzomAwlwtzom.info_retour.lib_ret, 70);
		}

		callServer();

		if (nwlwtzomAxwebent == null) nwlwtzomAxwebent = new NwlwtzomAxwebent();
		if ( getVersion() >= 2000 ) {
			nwlwtzomAxwebent.get();
		} else {
		nwlwtzomAxwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwtzomAxwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwtzomAxwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwtzomAxwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwtzomAxwebent.utilisateur = super.marshal.getDataA(8);
		nwlwtzomAxwebent.transaction = super.marshal.getDataA(8);
		nwlwtzomAxwebent.fonction = super.marshal.getDataA(8);
		nwlwtzomAxwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwtzomAxwebent.cd_cible = super.marshal.getDataA(2);
		nwlwtzomAxwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwtzomAxwebent.cd_titre = super.marshal.getDataA(3);
		nwlwtzomAxwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwtzomAxwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwtzomAxwebent.cd_application = super.marshal.getDataA(8);
		nwlwtzomAxwebent.type_user = super.marshal.getDataA(1);
		nwlwtzomAxwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwtzomAxwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwtzomAxwebent.t_ano == null) nwlwtzomAxwebent.t_ano = new NwlwtzomAxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwtzomAxwebent.t_ano[i0] == null) nwlwtzomAxwebent.t_ano[i0] = new NwlwtzomAxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwtzomAxwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwtzomAxwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwtzomAxwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwtzomAxwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwtzomAwlwtzom == null) nwlwtzomAwlwtzom = new NwlwtzomAwlwtzom();
		if ( getVersion() >= 2000 ) {
			nwlwtzomAwlwtzom.get();
		} else {
		if (nwlwtzomAwlwtzom.demande == null) nwlwtzomAwlwtzom.demande = new NwlwtzomAwlwtzomDemande();
		nwlwtzomAwlwtzom.demande.i_action = super.marshal.getDataA(1);
		for (int i0=0; i0<50; i0++) nwlwtzomAwlwtzom.demande.i_cd_insee[i0] = super.marshal.getDataA(5);
		for (int i0=0; i0<50; i0++) nwlwtzomAwlwtzom.demande.i_cd_postal[i0] = super.marshal.getDataA(5);
		for (int i0=0; i0<50; i0++) nwlwtzomAwlwtzom.demande.i_nb_voies[i0] = super.marshal.getDataN(5, 0);
		nwlwtzomAwlwtzom.demande.i_cd_zpo_affect = super.marshal.getDataA(4);
		nwlwtzomAwlwtzom.demande.i_type_portage_affect = super.marshal.getDataA(1);
		nwlwtzomAwlwtzom.demande.i_tpr_groupe_affect = super.marshal.getDataA(1);
		nwlwtzomAwlwtzom.demande.i_tpr_num_affect = super.marshal.getDataA(3);
		if (nwlwtzomAwlwtzom.reponse == null) nwlwtzomAwlwtzom.reponse = new NwlwtzomAwlwtzomReponse();
		nwlwtzomAwlwtzom.reponse.o_lib_zpo = super.marshal.getDataA(32);
		nwlwtzomAwlwtzom.reponse.o_lib_type = super.marshal.getDataA(32);
		nwlwtzomAwlwtzom.reponse.o_tpr_libelle = super.marshal.getDataA(60);
		if (nwlwtzomAwlwtzom.info_retour == null) nwlwtzomAwlwtzom.info_retour = new NwlwtzomAwlwtzomInfo_retour();
		nwlwtzomAwlwtzom.info_retour.code_ret = super.marshal.getDataA(4);
		nwlwtzomAwlwtzom.info_retour.type_ret = super.marshal.getDataA(1);
		nwlwtzomAwlwtzom.info_retour.lib_ret = super.marshal.getDataA(70);
		}

	}

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

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

	public class NwlwtzomAwlwtzom {
		public NwlwtzomAwlwtzomDemande demande;
		public NwlwtzomAwlwtzomReponse reponse;
		public NwlwtzomAwlwtzomInfo_retour info_retour;
		public void add() throws BrokerException {
			if (demande == null) demande = new NwlwtzomAwlwtzomDemande();
			demande.add();
			if (reponse == null) reponse = new NwlwtzomAwlwtzomReponse();
			reponse.add();
			if (info_retour == null) info_retour = new NwlwtzomAwlwtzomInfo_retour();
			info_retour.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new NwlwtzomAwlwtzomDemande();
							demande.get();
			if (reponse == null) reponse = new NwlwtzomAwlwtzomReponse();
							reponse.get();
			if (info_retour == null) info_retour = new NwlwtzomAwlwtzomInfo_retour();
							info_retour.get();
		}
	}

	public class NwlwtzomAwlwtzomDemande {
		public String i_action;
		public String[] i_cd_insee;
		public String[] i_cd_postal;
		public BigDecimal[] i_nb_voies;
		public String i_cd_zpo_affect;
		public String i_type_portage_affect;
		public String i_tpr_groupe_affect;
		public String i_tpr_num_affect;
		public void add() throws BrokerException {
			Jwlwtzom.super.marshal.addDataA(i_action, 1);
			if (i_cd_insee == null) i_cd_insee = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwtzom.super.marshal.addDataA(i_cd_insee[i0], 5);
			if (i_cd_postal == null) i_cd_postal = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwtzom.super.marshal.addDataA(i_cd_postal[i0], 5);
			if (i_nb_voies == null) i_nb_voies = new BigDecimal[50];
			for (int i0=0; i0<50; i0++) Jwlwtzom.super.marshal.addDataN(i_nb_voies[i0], 5, 0);
			Jwlwtzom.super.marshal.addDataA(i_cd_zpo_affect, 4);
			Jwlwtzom.super.marshal.addDataA(i_type_portage_affect, 1);
			Jwlwtzom.super.marshal.addDataA(i_tpr_groupe_affect, 1);
			Jwlwtzom.super.marshal.addDataA(i_tpr_num_affect, 3);
		}
		public void get() throws BrokerException {
			i_action = Jwlwtzom.super.marshal.getDataA(1);
			if (i_cd_insee == null) i_cd_insee = new String[50];
			for (int i0=0; i0<50; i0++) i_cd_insee[i0] = Jwlwtzom.super.marshal.getDataA(5);
			if (i_cd_postal == null) i_cd_postal = new String[50];
			for (int i0=0; i0<50; i0++) i_cd_postal[i0] = Jwlwtzom.super.marshal.getDataA(5);
			if (i_nb_voies == null) i_nb_voies = new BigDecimal[50];
			for (int i0=0; i0<50; i0++) i_nb_voies[i0] = Jwlwtzom.super.marshal.getDataN(5, 0);
			i_cd_zpo_affect = Jwlwtzom.super.marshal.getDataA(4);
			i_type_portage_affect = Jwlwtzom.super.marshal.getDataA(1);
			i_tpr_groupe_affect = Jwlwtzom.super.marshal.getDataA(1);
			i_tpr_num_affect = Jwlwtzom.super.marshal.getDataA(3);
		}
	}

	public class NwlwtzomAwlwtzomReponse {
		public String o_lib_zpo;
		public String o_lib_type;
		public String o_tpr_libelle;
		public void add() throws BrokerException {
			Jwlwtzom.super.marshal.addDataA(o_lib_zpo, 32);
			Jwlwtzom.super.marshal.addDataA(o_lib_type, 32);
			Jwlwtzom.super.marshal.addDataA(o_tpr_libelle, 60);
		}
		public void get() throws BrokerException {
			o_lib_zpo = Jwlwtzom.super.marshal.getDataA(32);
			o_lib_type = Jwlwtzom.super.marshal.getDataA(32);
			o_tpr_libelle = Jwlwtzom.super.marshal.getDataA(60);
		}
	}

	public class NwlwtzomAwlwtzomInfo_retour {
		public String code_ret;
		public String type_ret;
		public String lib_ret;
		public void add() throws BrokerException {
			Jwlwtzom.super.marshal.addDataA(code_ret, 4);
			Jwlwtzom.super.marshal.addDataA(type_ret, 1);
			Jwlwtzom.super.marshal.addDataA(lib_ret, 70);
		}
		public void get() throws BrokerException {
			code_ret = Jwlwtzom.super.marshal.getDataA(4);
			type_ret = Jwlwtzom.super.marshal.getDataA(1);
			lib_ret = Jwlwtzom.super.marshal.getDataA(70);
		}
	}

}
