/**
 ** 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/nwlwzom3/nwlwzom3.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 Jwlwzom3 extends RPCService {

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

	public Jwlwzom3() {
		super();
	}

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

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

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

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

	private Nwlwzom3Axwebent nwlwzom3Axwebent;

	public void setNwlwzom3Axwebent(Nwlwzom3Axwebent p) {
		nwlwzom3Axwebent = p;
	}

	public Nwlwzom3Axwebent getNwlwzom3Axwebent() {
		return nwlwzom3Axwebent;
	}

	private Nwlwzom3Awlwzom3 nwlwzom3Awlwzom3;

	public void setNwlwzom3Awlwzom3(Nwlwzom3Awlwzom3 p) {
		nwlwzom3Awlwzom3 = p;
	}

	public Nwlwzom3Awlwzom3 getNwlwzom3Awlwzom3() {
		return nwlwzom3Awlwzom3;
	}

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

	public void nwlwzom3() throws BrokerException {

		buildHeader (NWLWZOM3_FORMAT, "42", 1016, 0, "NWLWZOM3", true, 1110, true, false, 2000);
if (nwlwzom3Axwebent == null) nwlwzom3Axwebent = new Nwlwzom3Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwzom3Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwzom3Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwzom3Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwzom3Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwzom3Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwzom3Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwzom3Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwzom3Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwzom3Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwzom3Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwzom3Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwzom3Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwzom3Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwzom3Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwzom3Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwzom3Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwzom3Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwzom3Axwebent.nb_ano, 1, 0);
		if (nwlwzom3Axwebent.t_ano == null) nwlwzom3Axwebent.t_ano = new Nwlwzom3AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwzom3Axwebent.t_ano[i0] == null) nwlwzom3Axwebent.t_ano[i0] = new Nwlwzom3AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwzom3Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwzom3Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwzom3Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwzom3Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwzom3Awlwzom3 == null) nwlwzom3Awlwzom3 = new Nwlwzom3Awlwzom3();
		if ( getVersion() >= 2000 ) {
			nwlwzom3Awlwzom3.add();
		} else {
if (nwlwzom3Awlwzom3.creation == null) nwlwzom3Awlwzom3.creation = new Nwlwzom3Awlwzom3Creation();
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_cd_titre_crea, 3);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_libelle_titre_crea, 32);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_cd_zpo_crea, 4);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_zpo_libelle_crea, 32);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_type_portage_crea, 1);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_lib_type_portage_crea, 25);
		super.marshal.addDataA(nwlwzom3Awlwzom3.creation.i_type_trt_crea, 1);
if (nwlwzom3Awlwzom3.maj == null) nwlwzom3Awlwzom3.maj = new Nwlwzom3Awlwzom3Maj();
				if (nwlwzom3Awlwzom3.maj.i_cd_titre == null) nwlwzom3Awlwzom3.maj.i_cd_titre = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwzom3Awlwzom3.maj.i_cd_titre[i0], 3);
				if (nwlwzom3Awlwzom3.maj.i_cd_zpo == null) nwlwzom3Awlwzom3.maj.i_cd_zpo = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwzom3Awlwzom3.maj.i_cd_zpo[i0], 4);
				if (nwlwzom3Awlwzom3.maj.i_type_portage == null) nwlwzom3Awlwzom3.maj.i_type_portage = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwzom3Awlwzom3.maj.i_type_portage[i0], 1);
				if (nwlwzom3Awlwzom3.maj.i_type_trt == null) nwlwzom3Awlwzom3.maj.i_type_trt = new String[50];
		for (int i0=0; i0<50; i0++) super.marshal.addDataA(nwlwzom3Awlwzom3.maj.i_type_trt[i0], 1);
		}

		callServer();

		if (nwlwzom3Axwebent == null) nwlwzom3Axwebent = new Nwlwzom3Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwzom3Axwebent.get();
		} else {
		nwlwzom3Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwzom3Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwzom3Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwzom3Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwzom3Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwzom3Axwebent.transaction = super.marshal.getDataA(8);
		nwlwzom3Axwebent.fonction = super.marshal.getDataA(8);
		nwlwzom3Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwzom3Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwzom3Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwzom3Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwzom3Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwzom3Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwzom3Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwzom3Axwebent.type_user = super.marshal.getDataA(1);
		nwlwzom3Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwzom3Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwzom3Axwebent.t_ano == null) nwlwzom3Axwebent.t_ano = new Nwlwzom3AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwzom3Axwebent.t_ano[i0] == null) nwlwzom3Axwebent.t_ano[i0] = new Nwlwzom3AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwzom3Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwzom3Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwzom3Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwzom3Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwzom3Awlwzom3 == null) nwlwzom3Awlwzom3 = new Nwlwzom3Awlwzom3();
		if ( getVersion() >= 2000 ) {
			nwlwzom3Awlwzom3.get();
		} else {
		if (nwlwzom3Awlwzom3.creation == null) nwlwzom3Awlwzom3.creation = new Nwlwzom3Awlwzom3Creation();
		nwlwzom3Awlwzom3.creation.i_cd_titre_crea = super.marshal.getDataA(3);
		nwlwzom3Awlwzom3.creation.i_libelle_titre_crea = super.marshal.getDataA(32);
		nwlwzom3Awlwzom3.creation.i_cd_zpo_crea = super.marshal.getDataA(4);
		nwlwzom3Awlwzom3.creation.i_zpo_libelle_crea = super.marshal.getDataA(32);
		nwlwzom3Awlwzom3.creation.i_type_portage_crea = super.marshal.getDataA(1);
		nwlwzom3Awlwzom3.creation.i_lib_type_portage_crea = super.marshal.getDataA(25);
		nwlwzom3Awlwzom3.creation.i_type_trt_crea = super.marshal.getDataA(1);
		if (nwlwzom3Awlwzom3.maj == null) nwlwzom3Awlwzom3.maj = new Nwlwzom3Awlwzom3Maj();
		for (int i0=0; i0<50; i0++) nwlwzom3Awlwzom3.maj.i_cd_titre[i0] = super.marshal.getDataA(3);
		for (int i0=0; i0<50; i0++) nwlwzom3Awlwzom3.maj.i_cd_zpo[i0] = super.marshal.getDataA(4);
		for (int i0=0; i0<50; i0++) nwlwzom3Awlwzom3.maj.i_type_portage[i0] = super.marshal.getDataA(1);
		for (int i0=0; i0<50; i0++) nwlwzom3Awlwzom3.maj.i_type_trt[i0] = super.marshal.getDataA(1);
		}

	}

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

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

	public class Nwlwzom3Awlwzom3 {
		public Nwlwzom3Awlwzom3Creation creation;
		public Nwlwzom3Awlwzom3Maj maj;
		public void add() throws BrokerException {
			if (creation == null) creation = new Nwlwzom3Awlwzom3Creation();
			creation.add();
			if (maj == null) maj = new Nwlwzom3Awlwzom3Maj();
			maj.add();
		}
		public void get() throws BrokerException {
			if (creation == null) creation = new Nwlwzom3Awlwzom3Creation();
							creation.get();
			if (maj == null) maj = new Nwlwzom3Awlwzom3Maj();
							maj.get();
		}
	}

	public class Nwlwzom3Awlwzom3Creation {
		public String i_cd_titre_crea;
		public String i_libelle_titre_crea;
		public String i_cd_zpo_crea;
		public String i_zpo_libelle_crea;
		public String i_type_portage_crea;
		public String i_lib_type_portage_crea;
		public String i_type_trt_crea;
		public void add() throws BrokerException {
			Jwlwzom3.super.marshal.addDataA(i_cd_titre_crea, 3);
			Jwlwzom3.super.marshal.addDataA(i_libelle_titre_crea, 32);
			Jwlwzom3.super.marshal.addDataA(i_cd_zpo_crea, 4);
			Jwlwzom3.super.marshal.addDataA(i_zpo_libelle_crea, 32);
			Jwlwzom3.super.marshal.addDataA(i_type_portage_crea, 1);
			Jwlwzom3.super.marshal.addDataA(i_lib_type_portage_crea, 25);
			Jwlwzom3.super.marshal.addDataA(i_type_trt_crea, 1);
		}
		public void get() throws BrokerException {
			i_cd_titre_crea = Jwlwzom3.super.marshal.getDataA(3);
			i_libelle_titre_crea = Jwlwzom3.super.marshal.getDataA(32);
			i_cd_zpo_crea = Jwlwzom3.super.marshal.getDataA(4);
			i_zpo_libelle_crea = Jwlwzom3.super.marshal.getDataA(32);
			i_type_portage_crea = Jwlwzom3.super.marshal.getDataA(1);
			i_lib_type_portage_crea = Jwlwzom3.super.marshal.getDataA(25);
			i_type_trt_crea = Jwlwzom3.super.marshal.getDataA(1);
		}
	}

	public class Nwlwzom3Awlwzom3Maj {
		public String[] i_cd_titre;
		public String[] i_cd_zpo;
		public String[] i_type_portage;
		public String[] i_type_trt;
		public void add() throws BrokerException {
			if (i_cd_titre == null) i_cd_titre = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwzom3.super.marshal.addDataA(i_cd_titre[i0], 3);
			if (i_cd_zpo == null) i_cd_zpo = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwzom3.super.marshal.addDataA(i_cd_zpo[i0], 4);
			if (i_type_portage == null) i_type_portage = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwzom3.super.marshal.addDataA(i_type_portage[i0], 1);
			if (i_type_trt == null) i_type_trt = new String[50];
			for (int i0=0; i0<50; i0++) Jwlwzom3.super.marshal.addDataA(i_type_trt[i0], 1);
		}
		public void get() throws BrokerException {
			if (i_cd_titre == null) i_cd_titre = new String[50];
			for (int i0=0; i0<50; i0++) i_cd_titre[i0] = Jwlwzom3.super.marshal.getDataA(3);
			if (i_cd_zpo == null) i_cd_zpo = new String[50];
			for (int i0=0; i0<50; i0++) i_cd_zpo[i0] = Jwlwzom3.super.marshal.getDataA(4);
			if (i_type_portage == null) i_type_portage = new String[50];
			for (int i0=0; i0<50; i0++) i_type_portage[i0] = Jwlwzom3.super.marshal.getDataA(1);
			if (i_type_trt == null) i_type_trt = new String[50];
			for (int i0=0; i0<50; i0++) i_type_trt[i0] = Jwlwzom3.super.marshal.getDataA(1);
		}
	}

}
