/**
 ** 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/nwlwstm1/nwlwstm1.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 Jwlwstm1 extends RPCService {

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

	public Jwlwstm1() {
		super();
	}

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

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

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

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

	private Nwlwstm1Axwebent nwlwstm1Axwebent;

	public void setNwlwstm1Axwebent(Nwlwstm1Axwebent p) {
		nwlwstm1Axwebent = p;
	}

	public Nwlwstm1Axwebent getNwlwstm1Axwebent() {
		return nwlwstm1Axwebent;
	}

	private Nwlwstm1Awlwstm1 nwlwstm1Awlwstm1;

	public void setNwlwstm1Awlwstm1(Nwlwstm1Awlwstm1 p) {
		nwlwstm1Awlwstm1 = p;
	}

	public Nwlwstm1Awlwstm1 getNwlwstm1Awlwstm1() {
		return nwlwstm1Awlwstm1;
	}

	private final static byte[] NWLWSTM1_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,0MA11,0MN10,0MA4,0MN8,0MN8,0MN8,"
			  + "0MG2,0MG1,0." ).getBytes();

	public void nwlwstm1() throws BrokerException {

		buildHeader (NWLWSTM1_FORMAT, "36", 523, 0, "NWLWSTM1", true, 1110, true, false, 2000);
if (nwlwstm1Axwebent == null) nwlwstm1Axwebent = new Nwlwstm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwstm1Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwstm1Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwstm1Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwstm1Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwstm1Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwstm1Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwstm1Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwstm1Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwstm1Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwstm1Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwstm1Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwstm1Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwstm1Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwstm1Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwstm1Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwstm1Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwstm1Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwstm1Axwebent.nb_ano, 1, 0);
		if (nwlwstm1Axwebent.t_ano == null) nwlwstm1Axwebent.t_ano = new Nwlwstm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwstm1Axwebent.t_ano[i0] == null) nwlwstm1Axwebent.t_ano[i0] = new Nwlwstm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwstm1Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwstm1Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwstm1Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwstm1Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwstm1Awlwstm1 == null) nwlwstm1Awlwstm1 = new Nwlwstm1Awlwstm1();
		if ( getVersion() >= 2000 ) {
			nwlwstm1Awlwstm1.add();
		} else {
if (nwlwstm1Awlwstm1.cle_suivi == null) nwlwstm1Awlwstm1.cle_suivi = new Nwlwstm1Awlwstm1Cle_suivi();
		super.marshal.addDataA(nwlwstm1Awlwstm1.cle_suivi.cd_cible, 2);
		super.marshal.addDataA(nwlwstm1Awlwstm1.cle_suivi.num_cli, 11);
		super.marshal.addDataN(nwlwstm1Awlwstm1.cle_suivi.id_suivi, 10, 0);
		super.marshal.addDataA(nwlwstm1Awlwstm1.cle_suivi.cd_reponse, 4);
		super.marshal.addDataN(nwlwstm1Awlwstm1.cle_suivi.dt_deb_reclam, 8, 0);
		super.marshal.addDataN(nwlwstm1Awlwstm1.cle_suivi.dt_fin_reclam, 8, 0);
		super.marshal.addDataN(nwlwstm1Awlwstm1.cle_suivi.dt_reponse, 8, 0);
		}

		callServer();

		if (nwlwstm1Axwebent == null) nwlwstm1Axwebent = new Nwlwstm1Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwstm1Axwebent.get();
		} else {
		nwlwstm1Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwstm1Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwstm1Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwstm1Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwstm1Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwstm1Axwebent.transaction = super.marshal.getDataA(8);
		nwlwstm1Axwebent.fonction = super.marshal.getDataA(8);
		nwlwstm1Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwstm1Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwstm1Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwstm1Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwstm1Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwstm1Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwstm1Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwstm1Axwebent.type_user = super.marshal.getDataA(1);
		nwlwstm1Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwstm1Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwstm1Axwebent.t_ano == null) nwlwstm1Axwebent.t_ano = new Nwlwstm1AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwstm1Axwebent.t_ano[i0] == null) nwlwstm1Axwebent.t_ano[i0] = new Nwlwstm1AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwstm1Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwstm1Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwstm1Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwstm1Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwstm1Awlwstm1 == null) nwlwstm1Awlwstm1 = new Nwlwstm1Awlwstm1();
		if ( getVersion() >= 2000 ) {
			nwlwstm1Awlwstm1.get();
		} else {
		if (nwlwstm1Awlwstm1.cle_suivi == null) nwlwstm1Awlwstm1.cle_suivi = new Nwlwstm1Awlwstm1Cle_suivi();
		nwlwstm1Awlwstm1.cle_suivi.cd_cible = super.marshal.getDataA(2);
		nwlwstm1Awlwstm1.cle_suivi.num_cli = super.marshal.getDataA(11);
		nwlwstm1Awlwstm1.cle_suivi.id_suivi = super.marshal.getDataN(10, 0);
		nwlwstm1Awlwstm1.cle_suivi.cd_reponse = super.marshal.getDataA(4);
		nwlwstm1Awlwstm1.cle_suivi.dt_deb_reclam = super.marshal.getDataN(8, 0);
		nwlwstm1Awlwstm1.cle_suivi.dt_fin_reclam = super.marshal.getDataN(8, 0);
		nwlwstm1Awlwstm1.cle_suivi.dt_reponse = super.marshal.getDataN(8, 0);
		}

	}

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

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

	public class Nwlwstm1Awlwstm1 {
		public Nwlwstm1Awlwstm1Cle_suivi cle_suivi;
		public void add() throws BrokerException {
			if (cle_suivi == null) cle_suivi = new Nwlwstm1Awlwstm1Cle_suivi();
			cle_suivi.add();
		}
		public void get() throws BrokerException {
			if (cle_suivi == null) cle_suivi = new Nwlwstm1Awlwstm1Cle_suivi();
							cle_suivi.get();
		}
	}

	public class Nwlwstm1Awlwstm1Cle_suivi {
		public String cd_cible;
		public String num_cli;
		public BigDecimal id_suivi;
		public String cd_reponse;
		public BigDecimal dt_deb_reclam;
		public BigDecimal dt_fin_reclam;
		public BigDecimal dt_reponse;
		public void add() throws BrokerException {
			Jwlwstm1.super.marshal.addDataA(cd_cible, 2);
			Jwlwstm1.super.marshal.addDataA(num_cli, 11);
			Jwlwstm1.super.marshal.addDataN(id_suivi, 10, 0);
			Jwlwstm1.super.marshal.addDataA(cd_reponse, 4);
			Jwlwstm1.super.marshal.addDataN(dt_deb_reclam, 8, 0);
			Jwlwstm1.super.marshal.addDataN(dt_fin_reclam, 8, 0);
			Jwlwstm1.super.marshal.addDataN(dt_reponse, 8, 0);
		}
		public void get() throws BrokerException {
			cd_cible = Jwlwstm1.super.marshal.getDataA(2);
			num_cli = Jwlwstm1.super.marshal.getDataA(11);
			id_suivi = Jwlwstm1.super.marshal.getDataN(10, 0);
			cd_reponse = Jwlwstm1.super.marshal.getDataA(4);
			dt_deb_reclam = Jwlwstm1.super.marshal.getDataN(8, 0);
			dt_fin_reclam = Jwlwstm1.super.marshal.getDataN(8, 0);
			dt_reponse = Jwlwstm1.super.marshal.getDataN(8, 0);
		}
	}

}
