/**
 ** 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/NATURAL/Bureau/BROKER-IDL_GENERATED/nwlwtpm1.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 Jwlwtpm1 extends RPCService {

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

	public Jwlwtpm1() {
		super();
	}

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

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

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

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

	private Nwlwtpm1Axwebent nwlwtpm1Axwebent;

	public void setNwlwtpm1Axwebent(Nwlwtpm1Axwebent p) {
		nwlwtpm1Axwebent = p;
	}

	public Nwlwtpm1Axwebent getNwlwtpm1Axwebent() {
		return nwlwtpm1Axwebent;
	}

	private Nwlwtpm1Awlwtpm1 nwlwtpm1Awlwtpm1;

	public void setNwlwtpm1Awlwtpm1(Nwlwtpm1Awlwtpm1 p) {
		nwlwtpm1Awlwtpm1 = p;
	}

	public Nwlwtpm1Awlwtpm1 getNwlwtpm1Awlwtpm1() {
		return nwlwtpm1Awlwtpm1;
	}

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

	public void nwlwtpm1() throws BrokerException {

		buildHeader (NWLWTPM1_FORMAT, "39", 545, 0, "NWLWTPM1", true, 1110, true, false, 2000);
if (nwlwtpm1Axwebent == null) nwlwtpm1Axwebent = new Nwlwtpm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwtpm1Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwtpm1Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwtpm1Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwtpm1Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwtpm1Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwtpm1Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwtpm1Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwtpm1Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwtpm1Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwtpm1Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwtpm1Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwtpm1Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwtpm1Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwtpm1Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwtpm1Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwtpm1Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwtpm1Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwtpm1Axwebent.nb_ano, 1, 0);
		if (nwlwtpm1Axwebent.t_ano == null) nwlwtpm1Axwebent.t_ano = new Nwlwtpm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwtpm1Axwebent.t_ano[i0] == null) nwlwtpm1Axwebent.t_ano[i0] = new Nwlwtpm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtpm1Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtpm1Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwtpm1Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwtpm1Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwtpm1Awlwtpm1 == null) nwlwtpm1Awlwtpm1 = new Nwlwtpm1Awlwtpm1();
		if ( getVersion() >= 2000 ) {
			nwlwtpm1Awlwtpm1.add();
		} else {
if (nwlwtpm1Awlwtpm1.demande == null) nwlwtpm1Awlwtpm1.demande = new Nwlwtpm1Awlwtpm1Demande();
if (nwlwtpm1Awlwtpm1.demande.critere_select == null) nwlwtpm1Awlwtpm1.demande.critere_select = new Nwlwtpm1Awlwtpm1DemandeCritere_select();
		super.marshal.addDataA(nwlwtpm1Awlwtpm1.demande.critere_select.cd_tpe, 10);
if (nwlwtpm1Awlwtpm1.reponse == null) nwlwtpm1Awlwtpm1.reponse = new Nwlwtpm1Awlwtpm1Reponse();
		super.marshal.addDataA(nwlwtpm1Awlwtpm1.reponse.code_tpe, 10);
		super.marshal.addDataN(nwlwtpm1Awlwtpm1.reponse.cd_tdi, 3, 0);
		super.marshal.addDataA(nwlwtpm1Awlwtpm1.reponse.tpe_libelle, 32);
		super.marshal.addDataA(nwlwtpm1Awlwtpm1.reponse.tpe_support, 20);
		super.marshal.addDataA(nwlwtpm1Awlwtpm1.reponse.tpe_ind_coiffe, 1);
		}

		callServer();

		if (nwlwtpm1Axwebent == null) nwlwtpm1Axwebent = new Nwlwtpm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwtpm1Axwebent.get();
		} else {
		nwlwtpm1Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwtpm1Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwtpm1Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwtpm1Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.transaction = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.fonction = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwtpm1Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwtpm1Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwtpm1Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwtpm1Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwtpm1Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwtpm1Axwebent.type_user = super.marshal.getDataA(1);
		nwlwtpm1Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwtpm1Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwtpm1Axwebent.t_ano == null) nwlwtpm1Axwebent.t_ano = new Nwlwtpm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwtpm1Axwebent.t_ano[i0] == null) nwlwtpm1Axwebent.t_ano[i0] = new Nwlwtpm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwtpm1Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwtpm1Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwtpm1Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwtpm1Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwtpm1Awlwtpm1 == null) nwlwtpm1Awlwtpm1 = new Nwlwtpm1Awlwtpm1();
		if ( getVersion() >= 2000 ) {
			nwlwtpm1Awlwtpm1.get();
		} else {
		if (nwlwtpm1Awlwtpm1.demande == null) nwlwtpm1Awlwtpm1.demande = new Nwlwtpm1Awlwtpm1Demande();
		if (nwlwtpm1Awlwtpm1.demande.critere_select == null) nwlwtpm1Awlwtpm1.demande.critere_select = new Nwlwtpm1Awlwtpm1DemandeCritere_select();
		nwlwtpm1Awlwtpm1.demande.critere_select.cd_tpe = super.marshal.getDataA(10);
		if (nwlwtpm1Awlwtpm1.reponse == null) nwlwtpm1Awlwtpm1.reponse = new Nwlwtpm1Awlwtpm1Reponse();
		nwlwtpm1Awlwtpm1.reponse.code_tpe = super.marshal.getDataA(10);
		nwlwtpm1Awlwtpm1.reponse.cd_tdi = super.marshal.getDataN(3, 0);
		nwlwtpm1Awlwtpm1.reponse.tpe_libelle = super.marshal.getDataA(32);
		nwlwtpm1Awlwtpm1.reponse.tpe_support = super.marshal.getDataA(20);
		nwlwtpm1Awlwtpm1.reponse.tpe_ind_coiffe = super.marshal.getDataA(1);
		}

	}

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

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

	public class Nwlwtpm1Awlwtpm1 {
		public Nwlwtpm1Awlwtpm1Demande demande;
		public Nwlwtpm1Awlwtpm1Reponse reponse;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwlwtpm1Awlwtpm1Demande();
			demande.add();
			if (reponse == null) reponse = new Nwlwtpm1Awlwtpm1Reponse();
			reponse.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwlwtpm1Awlwtpm1Demande();
							demande.get();
			if (reponse == null) reponse = new Nwlwtpm1Awlwtpm1Reponse();
							reponse.get();
		}
	}

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

	public class Nwlwtpm1Awlwtpm1DemandeCritere_select {
		public String cd_tpe;
		public void add() throws BrokerException {
			Jwlwtpm1.super.marshal.addDataA(cd_tpe, 10);
		}
		public void get() throws BrokerException {
			cd_tpe = Jwlwtpm1.super.marshal.getDataA(10);
		}
	}

	public class Nwlwtpm1Awlwtpm1Reponse {
		public String code_tpe;
		public BigDecimal cd_tdi;
		public String tpe_libelle;
		public String tpe_support;
		public String tpe_ind_coiffe;
		public void add() throws BrokerException {
			Jwlwtpm1.super.marshal.addDataA(code_tpe, 10);
			Jwlwtpm1.super.marshal.addDataN(cd_tdi, 3, 0);
			Jwlwtpm1.super.marshal.addDataA(tpe_libelle, 32);
			Jwlwtpm1.super.marshal.addDataA(tpe_support, 20);
			Jwlwtpm1.super.marshal.addDataA(tpe_ind_coiffe, 1);
		}
		public void get() throws BrokerException {
			code_tpe = Jwlwtpm1.super.marshal.getDataA(10);
			cd_tdi = Jwlwtpm1.super.marshal.getDataN(3, 0);
			tpe_libelle = Jwlwtpm1.super.marshal.getDataA(32);
			tpe_support = Jwlwtpm1.super.marshal.getDataA(20);
			tpe_ind_coiffe = Jwlwtpm1.super.marshal.getDataA(1);
		}
	}

}
