/**
 ** 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/nwlwztom/nwlwztom.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 Jwlwztom extends RPCService {

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

	public Jwlwztom() {
		super();
	}

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

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

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

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

	private NwlwztomAxwebent nwlwztomAxwebent;

	public void setNwlwztomAxwebent(NwlwztomAxwebent p) {
		nwlwztomAxwebent = p;
	}

	public NwlwztomAxwebent getNwlwztomAxwebent() {
		return nwlwztomAxwebent;
	}

	private NwlwztomAwlwztom nwlwztomAwlwztom;

	public void setNwlwztomAwlwztom(NwlwztomAwlwztom p) {
		nwlwztomAwlwztom = p;
	}

	public NwlwztomAwlwztom getNwlwztomAwlwztom() {
		return nwlwztomAwlwztom;
	}

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

	public void nwlwztom() throws BrokerException {

		buildHeader (NWLWZTOM_FORMAT, "49", 6688, 0, "NWLWZTOM", true, 1110, true, false, 2000);
if (nwlwztomAxwebent == null) nwlwztomAxwebent = new NwlwztomAxwebent();
		if ( getVersion() >= 2000 ) {
			nwlwztomAxwebent.add();
		} else {
		super.marshal.addDataN(nwlwztomAxwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwztomAxwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwztomAxwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwztomAxwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwztomAxwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwztomAxwebent.transaction, 8);
		super.marshal.addDataA(nwlwztomAxwebent.fonction, 8);
		super.marshal.addDataA(nwlwztomAxwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwztomAxwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwztomAxwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwztomAxwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwztomAxwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwztomAxwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwztomAxwebent.cd_application, 8);
		super.marshal.addDataA(nwlwztomAxwebent.type_user, 1);
		super.marshal.addDataN(nwlwztomAxwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwztomAxwebent.nb_ano, 1, 0);
		if (nwlwztomAxwebent.t_ano == null) nwlwztomAxwebent.t_ano = new NwlwztomAxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwztomAxwebent.t_ano[i0] == null) nwlwztomAxwebent.t_ano[i0] = new NwlwztomAxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwztomAxwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwztomAxwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwztomAxwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwztomAxwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwztomAwlwztom == null) nwlwztomAwlwztom = new NwlwztomAwlwztom();
		if ( getVersion() >= 2000 ) {
			nwlwztomAwlwztom.add();
		} else {
if (nwlwztomAwlwztom.demande == null) nwlwztomAwlwztom.demande = new NwlwztomAwlwztomDemande();
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_cd_insee, 5);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_cd_postal, 5);
				if (nwlwztomAwlwztom.demande.i_action == null) nwlwztomAwlwztom.demande.i_action = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwztomAwlwztom.demande.i_action[i0], 1);
				if (nwlwztomAwlwztom.demande.i_cd_insee_postal == null) nwlwztomAwlwztom.demande.i_cd_insee_postal = new String[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataA(nwlwztomAwlwztom.demande.i_cd_insee_postal[i0], 5);
				if (nwlwztomAwlwztom.demande.i_nb_voies == null) nwlwztomAwlwztom.demande.i_nb_voies = new BigDecimal[500];
		for (int i0=0; i0<500; i0++) super.marshal.addDataN(nwlwztomAwlwztom.demande.i_nb_voies[i0], 5, 0);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_cd_cible, 2);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_cd_zpo_affect, 4);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_type_portage_affect, 1);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_tpr_groupe_affect, 1);
		super.marshal.addDataA(nwlwztomAwlwztom.demande.i_tpr_num_affect, 3);
if (nwlwztomAwlwztom.reponse == null) nwlwztomAwlwztom.reponse = new NwlwztomAwlwztomReponse();
		super.marshal.addDataA(nwlwztomAwlwztom.reponse.o_lib_zpo, 32);
		super.marshal.addDataA(nwlwztomAwlwztom.reponse.o_lib_type, 32);
		super.marshal.addDataA(nwlwztomAwlwztom.reponse.o_tpr_libelle, 60);
if (nwlwztomAwlwztom.info_retour == null) nwlwztomAwlwztom.info_retour = new NwlwztomAwlwztomInfo_retour();
		super.marshal.addDataA(nwlwztomAwlwztom.info_retour.code_ret, 4);
		super.marshal.addDataA(nwlwztomAwlwztom.info_retour.type_ret, 1);
		super.marshal.addDataA(nwlwztomAwlwztom.info_retour.lib_ret, 70);
		}

		callServer();

		if (nwlwztomAxwebent == null) nwlwztomAxwebent = new NwlwztomAxwebent();
		if ( getVersion() >= 2000 ) {
			nwlwztomAxwebent.get();
		} else {
		nwlwztomAxwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwztomAxwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwztomAxwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwztomAxwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwztomAxwebent.utilisateur = super.marshal.getDataA(8);
		nwlwztomAxwebent.transaction = super.marshal.getDataA(8);
		nwlwztomAxwebent.fonction = super.marshal.getDataA(8);
		nwlwztomAxwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwztomAxwebent.cd_cible = super.marshal.getDataA(2);
		nwlwztomAxwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwztomAxwebent.cd_titre = super.marshal.getDataA(3);
		nwlwztomAxwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwztomAxwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwztomAxwebent.cd_application = super.marshal.getDataA(8);
		nwlwztomAxwebent.type_user = super.marshal.getDataA(1);
		nwlwztomAxwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwztomAxwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwztomAxwebent.t_ano == null) nwlwztomAxwebent.t_ano = new NwlwztomAxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwztomAxwebent.t_ano[i0] == null) nwlwztomAxwebent.t_ano[i0] = new NwlwztomAxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwztomAxwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwztomAxwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwztomAxwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwztomAxwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwztomAwlwztom == null) nwlwztomAwlwztom = new NwlwztomAwlwztom();
		if ( getVersion() >= 2000 ) {
			nwlwztomAwlwztom.get();
		} else {
		if (nwlwztomAwlwztom.demande == null) nwlwztomAwlwztom.demande = new NwlwztomAwlwztomDemande();
		nwlwztomAwlwztom.demande.i_cd_insee = super.marshal.getDataA(5);
		nwlwztomAwlwztom.demande.i_cd_postal = super.marshal.getDataA(5);
		for (int i0=0; i0<500; i0++) nwlwztomAwlwztom.demande.i_action[i0] = super.marshal.getDataA(1);
		for (int i0=0; i0<500; i0++) nwlwztomAwlwztom.demande.i_cd_insee_postal[i0] = super.marshal.getDataA(5);
		for (int i0=0; i0<500; i0++) nwlwztomAwlwztom.demande.i_nb_voies[i0] = super.marshal.getDataN(5, 0);
		nwlwztomAwlwztom.demande.i_cd_cible = super.marshal.getDataA(2);
		nwlwztomAwlwztom.demande.i_cd_zpo_affect = super.marshal.getDataA(4);
		nwlwztomAwlwztom.demande.i_type_portage_affect = super.marshal.getDataA(1);
		nwlwztomAwlwztom.demande.i_tpr_groupe_affect = super.marshal.getDataA(1);
		nwlwztomAwlwztom.demande.i_tpr_num_affect = super.marshal.getDataA(3);
		if (nwlwztomAwlwztom.reponse == null) nwlwztomAwlwztom.reponse = new NwlwztomAwlwztomReponse();
		nwlwztomAwlwztom.reponse.o_lib_zpo = super.marshal.getDataA(32);
		nwlwztomAwlwztom.reponse.o_lib_type = super.marshal.getDataA(32);
		nwlwztomAwlwztom.reponse.o_tpr_libelle = super.marshal.getDataA(60);
		if (nwlwztomAwlwztom.info_retour == null) nwlwztomAwlwztom.info_retour = new NwlwztomAwlwztomInfo_retour();
		nwlwztomAwlwztom.info_retour.code_ret = super.marshal.getDataA(4);
		nwlwztomAwlwztom.info_retour.type_ret = super.marshal.getDataA(1);
		nwlwztomAwlwztom.info_retour.lib_ret = super.marshal.getDataA(70);
		}

	}

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

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

	public class NwlwztomAwlwztom {
		public NwlwztomAwlwztomDemande demande;
		public NwlwztomAwlwztomReponse reponse;
		public NwlwztomAwlwztomInfo_retour info_retour;
		public void add() throws BrokerException {
			if (demande == null) demande = new NwlwztomAwlwztomDemande();
			demande.add();
			if (reponse == null) reponse = new NwlwztomAwlwztomReponse();
			reponse.add();
			if (info_retour == null) info_retour = new NwlwztomAwlwztomInfo_retour();
			info_retour.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new NwlwztomAwlwztomDemande();
							demande.get();
			if (reponse == null) reponse = new NwlwztomAwlwztomReponse();
							reponse.get();
			if (info_retour == null) info_retour = new NwlwztomAwlwztomInfo_retour();
							info_retour.get();
		}
	}

	public class NwlwztomAwlwztomDemande {
		public String i_cd_insee;
		public String i_cd_postal;
		public String[] i_action;
		public String[] i_cd_insee_postal;
		public BigDecimal[] i_nb_voies;
		public String i_cd_cible;
		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 {
			Jwlwztom.super.marshal.addDataA(i_cd_insee, 5);
			Jwlwztom.super.marshal.addDataA(i_cd_postal, 5);
			if (i_action == null) i_action = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwztom.super.marshal.addDataA(i_action[i0], 1);
			if (i_cd_insee_postal == null) i_cd_insee_postal = new String[500];
			for (int i0=0; i0<500; i0++) Jwlwztom.super.marshal.addDataA(i_cd_insee_postal[i0], 5);
			if (i_nb_voies == null) i_nb_voies = new BigDecimal[500];
			for (int i0=0; i0<500; i0++) Jwlwztom.super.marshal.addDataN(i_nb_voies[i0], 5, 0);
			Jwlwztom.super.marshal.addDataA(i_cd_cible, 2);
			Jwlwztom.super.marshal.addDataA(i_cd_zpo_affect, 4);
			Jwlwztom.super.marshal.addDataA(i_type_portage_affect, 1);
			Jwlwztom.super.marshal.addDataA(i_tpr_groupe_affect, 1);
			Jwlwztom.super.marshal.addDataA(i_tpr_num_affect, 3);
		}
		public void get() throws BrokerException {
			i_cd_insee = Jwlwztom.super.marshal.getDataA(5);
			i_cd_postal = Jwlwztom.super.marshal.getDataA(5);
			if (i_action == null) i_action = new String[500];
			for (int i0=0; i0<500; i0++) i_action[i0] = Jwlwztom.super.marshal.getDataA(1);
			if (i_cd_insee_postal == null) i_cd_insee_postal = new String[500];
			for (int i0=0; i0<500; i0++) i_cd_insee_postal[i0] = Jwlwztom.super.marshal.getDataA(5);
			if (i_nb_voies == null) i_nb_voies = new BigDecimal[500];
			for (int i0=0; i0<500; i0++) i_nb_voies[i0] = Jwlwztom.super.marshal.getDataN(5, 0);
			i_cd_cible = Jwlwztom.super.marshal.getDataA(2);
			i_cd_zpo_affect = Jwlwztom.super.marshal.getDataA(4);
			i_type_portage_affect = Jwlwztom.super.marshal.getDataA(1);
			i_tpr_groupe_affect = Jwlwztom.super.marshal.getDataA(1);
			i_tpr_num_affect = Jwlwztom.super.marshal.getDataA(3);
		}
	}

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

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

}
