/**
 ** 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/nwlwcdm8/nwlwcdm8.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 Jwlwcdm8 extends RPCService {

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

	public Jwlwcdm8() {
		super();
	}

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

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

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

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

	private Nwlwcdm8Axwebent nwlwcdm8Axwebent;

	public void setNwlwcdm8Axwebent(Nwlwcdm8Axwebent p) {
		nwlwcdm8Axwebent = p;
	}

	public Nwlwcdm8Axwebent getNwlwcdm8Axwebent() {
		return nwlwcdm8Axwebent;
	}

	private Nwlwcdm8Awlwcdm8 nwlwcdm8Awlwcdm8;

	public void setNwlwcdm8Awlwcdm8(Nwlwcdm8Awlwcdm8 p) {
		nwlwcdm8Awlwcdm8 = p;
	}

	public Nwlwcdm8Awlwcdm8 getNwlwcdm8Awlwcdm8() {
		return nwlwcdm8Awlwcdm8;
	}

	private final static byte[] NWLWCDM8_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,1MA2,0MP7,0MP3,0MP3,0MA12,0MG2,0MG2,"
			  + "1MA12,0MA32,0MA32,0MA32,0MG2,0MG1,0." ).getBytes();

	public void nwlwcdm8() throws BrokerException {

		buildHeader (NWLWCDM8_FORMAT, "40", 606, 0, "NWLWCDM8", true, 1110, true, false, 2000);
if (nwlwcdm8Axwebent == null) nwlwcdm8Axwebent = new Nwlwcdm8Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwcdm8Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwcdm8Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwcdm8Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwcdm8Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwcdm8Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwcdm8Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwcdm8Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwcdm8Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwcdm8Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwcdm8Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwcdm8Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwcdm8Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwcdm8Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwcdm8Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwcdm8Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwcdm8Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwcdm8Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwcdm8Axwebent.nb_ano, 1, 0);
		if (nwlwcdm8Axwebent.t_ano == null) nwlwcdm8Axwebent.t_ano = new Nwlwcdm8AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwcdm8Axwebent.t_ano[i0] == null) nwlwcdm8Axwebent.t_ano[i0] = new Nwlwcdm8AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwcdm8Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwcdm8Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwcdm8Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwcdm8Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwcdm8Awlwcdm8 == null) nwlwcdm8Awlwcdm8 = new Nwlwcdm8Awlwcdm8();
		if ( getVersion() >= 2000 ) {
			nwlwcdm8Awlwcdm8.add();
		} else {
if (nwlwcdm8Awlwcdm8.demande == null) nwlwcdm8Awlwcdm8.demande = new Nwlwcdm8Awlwcdm8Demande();
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.demande.f_cd_cible, 2);
		super.marshal.addDataN(nwlwcdm8Awlwcdm8.demande.f_id_cmd, 7, 0);
		super.marshal.addDataN(nwlwcdm8Awlwcdm8.demande.f_id_sscmd, 3, 0);
		super.marshal.addDataN(nwlwcdm8Awlwcdm8.demande.f_id_critere, 3, 0);
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.demande.f_code, 12);
if (nwlwcdm8Awlwcdm8.reponse == null) nwlwcdm8Awlwcdm8.reponse = new Nwlwcdm8Awlwcdm8Reponse();
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.reponse.cd_critere, 12);
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.reponse.lib_critere, 32);
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.reponse.val_critere, 32);
		super.marshal.addDataA(nwlwcdm8Awlwcdm8.reponse.lib_val_critere, 32);
		}

		callServer();

		if (nwlwcdm8Axwebent == null) nwlwcdm8Axwebent = new Nwlwcdm8Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwcdm8Axwebent.get();
		} else {
		nwlwcdm8Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwcdm8Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwcdm8Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwcdm8Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.transaction = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.fonction = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwcdm8Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwcdm8Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwcdm8Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwcdm8Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwcdm8Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwcdm8Axwebent.type_user = super.marshal.getDataA(1);
		nwlwcdm8Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwcdm8Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwcdm8Axwebent.t_ano == null) nwlwcdm8Axwebent.t_ano = new Nwlwcdm8AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwcdm8Axwebent.t_ano[i0] == null) nwlwcdm8Axwebent.t_ano[i0] = new Nwlwcdm8AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwcdm8Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwcdm8Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwcdm8Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwcdm8Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwcdm8Awlwcdm8 == null) nwlwcdm8Awlwcdm8 = new Nwlwcdm8Awlwcdm8();
		if ( getVersion() >= 2000 ) {
			nwlwcdm8Awlwcdm8.get();
		} else {
		if (nwlwcdm8Awlwcdm8.demande == null) nwlwcdm8Awlwcdm8.demande = new Nwlwcdm8Awlwcdm8Demande();
		nwlwcdm8Awlwcdm8.demande.f_cd_cible = super.marshal.getDataA(2);
		nwlwcdm8Awlwcdm8.demande.f_id_cmd = super.marshal.getDataN(7, 0);
		nwlwcdm8Awlwcdm8.demande.f_id_sscmd = super.marshal.getDataN(3, 0);
		nwlwcdm8Awlwcdm8.demande.f_id_critere = super.marshal.getDataN(3, 0);
		nwlwcdm8Awlwcdm8.demande.f_code = super.marshal.getDataA(12);
		if (nwlwcdm8Awlwcdm8.reponse == null) nwlwcdm8Awlwcdm8.reponse = new Nwlwcdm8Awlwcdm8Reponse();
		nwlwcdm8Awlwcdm8.reponse.cd_critere = super.marshal.getDataA(12);
		nwlwcdm8Awlwcdm8.reponse.lib_critere = super.marshal.getDataA(32);
		nwlwcdm8Awlwcdm8.reponse.val_critere = super.marshal.getDataA(32);
		nwlwcdm8Awlwcdm8.reponse.lib_val_critere = super.marshal.getDataA(32);
		}

	}

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

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

	public class Nwlwcdm8Awlwcdm8 {
		public Nwlwcdm8Awlwcdm8Demande demande;
		public Nwlwcdm8Awlwcdm8Reponse reponse;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwlwcdm8Awlwcdm8Demande();
			demande.add();
			if (reponse == null) reponse = new Nwlwcdm8Awlwcdm8Reponse();
			reponse.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwlwcdm8Awlwcdm8Demande();
							demande.get();
			if (reponse == null) reponse = new Nwlwcdm8Awlwcdm8Reponse();
							reponse.get();
		}
	}

	public class Nwlwcdm8Awlwcdm8Demande {
		public String f_cd_cible;
		public BigDecimal f_id_cmd;
		public BigDecimal f_id_sscmd;
		public BigDecimal f_id_critere;
		public String f_code;
		public void add() throws BrokerException {
			Jwlwcdm8.super.marshal.addDataA(f_cd_cible, 2);
			Jwlwcdm8.super.marshal.addDataN(f_id_cmd, 7, 0);
			Jwlwcdm8.super.marshal.addDataN(f_id_sscmd, 3, 0);
			Jwlwcdm8.super.marshal.addDataN(f_id_critere, 3, 0);
			Jwlwcdm8.super.marshal.addDataA(f_code, 12);
		}
		public void get() throws BrokerException {
			f_cd_cible = Jwlwcdm8.super.marshal.getDataA(2);
			f_id_cmd = Jwlwcdm8.super.marshal.getDataN(7, 0);
			f_id_sscmd = Jwlwcdm8.super.marshal.getDataN(3, 0);
			f_id_critere = Jwlwcdm8.super.marshal.getDataN(3, 0);
			f_code = Jwlwcdm8.super.marshal.getDataA(12);
		}
	}

	public class Nwlwcdm8Awlwcdm8Reponse {
		public String cd_critere;
		public String lib_critere;
		public String val_critere;
		public String lib_val_critere;
		public void add() throws BrokerException {
			Jwlwcdm8.super.marshal.addDataA(cd_critere, 12);
			Jwlwcdm8.super.marshal.addDataA(lib_critere, 32);
			Jwlwcdm8.super.marshal.addDataA(val_critere, 32);
			Jwlwcdm8.super.marshal.addDataA(lib_val_critere, 32);
		}
		public void get() throws BrokerException {
			cd_critere = Jwlwcdm8.super.marshal.getDataA(12);
			lib_critere = Jwlwcdm8.super.marshal.getDataA(32);
			val_critere = Jwlwcdm8.super.marshal.getDataA(32);
			lib_val_critere = Jwlwcdm8.super.marshal.getDataA(32);
		}
	}

}
