/**
 ** 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/nwlwvom8/nwlwvom8.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 Jwlwvom8 extends RPCService {

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

	public Jwlwvom8() {
		super();
	}

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

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

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

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

	private Nwlwvom8Axwebent nwlwvom8Axwebent;

	public void setNwlwvom8Axwebent(Nwlwvom8Axwebent p) {
		nwlwvom8Axwebent = p;
	}

	public Nwlwvom8Axwebent getNwlwvom8Axwebent() {
		return nwlwvom8Axwebent;
	}

	private Nwlwvom8Awlwvom8 nwlwvom8Awlwvom8;

	public void setNwlwvom8Awlwvom8(Nwlwvom8Awlwvom8 p) {
		nwlwvom8Awlwvom8 = p;
	}

	public Nwlwvom8Awlwvom8 getNwlwvom8Awlwvom8() {
		return nwlwvom8Awlwvom8;
	}

	private final static byte[] NWLWVOM8_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,1MA9,0,40MA2,0,40MA3,0,40MG2,0MG1,0." ).getBytes();

	public void nwlwvom8() throws BrokerException {

		buildHeader (NWLWVOM8_FORMAT, "32", 1028, 0, "NWLWVOM8", true, 1110, true, false, 2000);
if (nwlwvom8Axwebent == null) nwlwvom8Axwebent = new Nwlwvom8Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom8Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwvom8Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwvom8Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwvom8Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwvom8Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwvom8Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwvom8Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwvom8Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwvom8Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwvom8Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwvom8Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwvom8Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwvom8Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwvom8Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwvom8Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwvom8Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwvom8Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwvom8Axwebent.nb_ano, 1, 0);
		if (nwlwvom8Axwebent.t_ano == null) nwlwvom8Axwebent.t_ano = new Nwlwvom8AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom8Axwebent.t_ano[i0] == null) nwlwvom8Axwebent.t_ano[i0] = new Nwlwvom8AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom8Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom8Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom8Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwvom8Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwvom8Awlwvom8 == null) nwlwvom8Awlwvom8 = new Nwlwvom8Awlwvom8();
		if ( getVersion() >= 2000 ) {
			nwlwvom8Awlwvom8.add();
		} else {
if (nwlwvom8Awlwvom8.demande == null) nwlwvom8Awlwvom8.demande = new Nwlwvom8Awlwvom8Demande();
				if (nwlwvom8Awlwvom8.demande.matricule_mere == null) nwlwvom8Awlwvom8.demande.matricule_mere = new String[40];
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvom8Awlwvom8.demande.matricule_mere[i0], 9);
				if (nwlwvom8Awlwvom8.demande.matricule_cible == null) nwlwvom8Awlwvom8.demande.matricule_cible = new String[40];
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvom8Awlwvom8.demande.matricule_cible[i0], 2);
				if (nwlwvom8Awlwvom8.demande.type_portage_ntr == null) nwlwvom8Awlwvom8.demande.type_portage_ntr = new String[40];
		for (int i0=0; i0<40; i0++) super.marshal.addDataA(nwlwvom8Awlwvom8.demande.type_portage_ntr[i0], 3);
		}

		callServer();

		if (nwlwvom8Axwebent == null) nwlwvom8Axwebent = new Nwlwvom8Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom8Axwebent.get();
		} else {
		nwlwvom8Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwvom8Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwvom8Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwvom8Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwvom8Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwvom8Axwebent.transaction = super.marshal.getDataA(8);
		nwlwvom8Axwebent.fonction = super.marshal.getDataA(8);
		nwlwvom8Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwvom8Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwvom8Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwvom8Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwvom8Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwvom8Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwvom8Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwvom8Axwebent.type_user = super.marshal.getDataA(1);
		nwlwvom8Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwvom8Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwvom8Axwebent.t_ano == null) nwlwvom8Axwebent.t_ano = new Nwlwvom8AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom8Axwebent.t_ano[i0] == null) nwlwvom8Axwebent.t_ano[i0] = new Nwlwvom8AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwvom8Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwvom8Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwvom8Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwvom8Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwvom8Awlwvom8 == null) nwlwvom8Awlwvom8 = new Nwlwvom8Awlwvom8();
		if ( getVersion() >= 2000 ) {
			nwlwvom8Awlwvom8.get();
		} else {
		if (nwlwvom8Awlwvom8.demande == null) nwlwvom8Awlwvom8.demande = new Nwlwvom8Awlwvom8Demande();
		for (int i0=0; i0<40; i0++) nwlwvom8Awlwvom8.demande.matricule_mere[i0] = super.marshal.getDataA(9);
		for (int i0=0; i0<40; i0++) nwlwvom8Awlwvom8.demande.matricule_cible[i0] = super.marshal.getDataA(2);
		for (int i0=0; i0<40; i0++) nwlwvom8Awlwvom8.demande.type_portage_ntr[i0] = super.marshal.getDataA(3);
		}

	}

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

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

	public class Nwlwvom8Awlwvom8 {
		public Nwlwvom8Awlwvom8Demande demande;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwlwvom8Awlwvom8Demande();
			demande.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwlwvom8Awlwvom8Demande();
							demande.get();
		}
	}

	public class Nwlwvom8Awlwvom8Demande {
		public String[] matricule_mere;
		public String[] matricule_cible;
		public String[] type_portage_ntr;
		public void add() throws BrokerException {
			if (matricule_mere == null) matricule_mere = new String[40];
			for (int i0=0; i0<40; i0++) Jwlwvom8.super.marshal.addDataA(matricule_mere[i0], 9);
			if (matricule_cible == null) matricule_cible = new String[40];
			for (int i0=0; i0<40; i0++) Jwlwvom8.super.marshal.addDataA(matricule_cible[i0], 2);
			if (type_portage_ntr == null) type_portage_ntr = new String[40];
			for (int i0=0; i0<40; i0++) Jwlwvom8.super.marshal.addDataA(type_portage_ntr[i0], 3);
		}
		public void get() throws BrokerException {
			if (matricule_mere == null) matricule_mere = new String[40];
			for (int i0=0; i0<40; i0++) matricule_mere[i0] = Jwlwvom8.super.marshal.getDataA(9);
			if (matricule_cible == null) matricule_cible = new String[40];
			for (int i0=0; i0<40; i0++) matricule_cible[i0] = Jwlwvom8.super.marshal.getDataA(2);
			if (type_portage_ntr == null) type_portage_ntr = new String[40];
			for (int i0=0; i0<40; i0++) type_portage_ntr[i0] = Jwlwvom8.super.marshal.getDataA(3);
		}
	}

}
