/**
 ** 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/nwlwvom6/nwlwvom6.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 Jwlwvom6 extends RPCService {

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

	public Jwlwvom6() {
		super();
	}

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

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

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

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

	private Nwlwvom6Axwebent nwlwvom6Axwebent;

	public void setNwlwvom6Axwebent(Nwlwvom6Axwebent p) {
		nwlwvom6Axwebent = p;
	}

	public Nwlwvom6Axwebent getNwlwvom6Axwebent() {
		return nwlwvom6Axwebent;
	}

	private Nwlwvom6Awlwvom6 nwlwvom6Awlwvom6;

	public void setNwlwvom6Awlwvom6(Nwlwvom6Awlwvom6 p) {
		nwlwvom6Awlwvom6 = p;
	}

	public Nwlwvom6Awlwvom6 getNwlwvom6Awlwvom6() {
		return nwlwvom6Awlwvom6;
	}

	private final static byte[] NWLWVOM6_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,1MP9,0MP9,0MP9,0MA3,0MA2,0MP9,0MP9,0MP9,"
			  + "0MI2,0MG2,0MG1,0." ).getBytes();

	public void nwlwvom6() throws BrokerException {

		buildHeader (NWLWVOM6_FORMAT, "38", 539, 0, "NWLWVOM6", true, 1110, true, false, 2000);
if (nwlwvom6Axwebent == null) nwlwvom6Axwebent = new Nwlwvom6Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom6Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwvom6Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwvom6Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwvom6Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwvom6Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwvom6Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwvom6Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwvom6Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwvom6Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwvom6Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwvom6Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwvom6Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwvom6Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwvom6Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwvom6Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwvom6Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwvom6Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwvom6Axwebent.nb_ano, 1, 0);
		if (nwlwvom6Axwebent.t_ano == null) nwlwvom6Axwebent.t_ano = new Nwlwvom6AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom6Axwebent.t_ano[i0] == null) nwlwvom6Axwebent.t_ano[i0] = new Nwlwvom6AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom6Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom6Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom6Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwvom6Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwvom6Awlwvom6 == null) nwlwvom6Awlwvom6 = new Nwlwvom6Awlwvom6();
		if ( getVersion() >= 2000 ) {
			nwlwvom6Awlwvom6.add();
		} else {
if (nwlwvom6Awlwvom6.demande == null) nwlwvom6Awlwvom6.demande = new Nwlwvom6Awlwvom6Demande();
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_matricule_mere_org, 9, 0);
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_voi_id_org, 9, 0);
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_matricule_voie_org, 9, 0);
		super.marshal.addDataA(nwlwvom6Awlwvom6.demande.f_type_portage_sel, 3);
		super.marshal.addDataA(nwlwvom6Awlwvom6.demande.f_matricule_cible_sel, 2);
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_matricule_mere_sel, 9, 0);
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_matricule_voie_sel, 9, 0);
		super.marshal.addDataN(nwlwvom6Awlwvom6.demande.f_voi_id_sel, 9, 0);
		super.marshal.addDataI(Short.toString(nwlwvom6Awlwvom6.demande.nbre_select), 6);
		}

		callServer();

		if (nwlwvom6Axwebent == null) nwlwvom6Axwebent = new Nwlwvom6Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom6Axwebent.get();
		} else {
		nwlwvom6Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwvom6Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwvom6Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwvom6Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwvom6Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwvom6Axwebent.transaction = super.marshal.getDataA(8);
		nwlwvom6Axwebent.fonction = super.marshal.getDataA(8);
		nwlwvom6Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwvom6Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwvom6Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwvom6Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwvom6Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwvom6Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwvom6Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwvom6Axwebent.type_user = super.marshal.getDataA(1);
		nwlwvom6Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwvom6Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwvom6Axwebent.t_ano == null) nwlwvom6Axwebent.t_ano = new Nwlwvom6AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom6Axwebent.t_ano[i0] == null) nwlwvom6Axwebent.t_ano[i0] = new Nwlwvom6AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwvom6Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwvom6Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwvom6Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwvom6Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwvom6Awlwvom6 == null) nwlwvom6Awlwvom6 = new Nwlwvom6Awlwvom6();
		if ( getVersion() >= 2000 ) {
			nwlwvom6Awlwvom6.get();
		} else {
		if (nwlwvom6Awlwvom6.demande == null) nwlwvom6Awlwvom6.demande = new Nwlwvom6Awlwvom6Demande();
		nwlwvom6Awlwvom6.demande.f_matricule_mere_org = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.f_voi_id_org = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.f_matricule_voie_org = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.f_type_portage_sel = super.marshal.getDataA(3);
		nwlwvom6Awlwvom6.demande.f_matricule_cible_sel = super.marshal.getDataA(2);
		nwlwvom6Awlwvom6.demande.f_matricule_mere_sel = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.f_matricule_voie_sel = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.f_voi_id_sel = super.marshal.getDataN(9, 0);
		nwlwvom6Awlwvom6.demande.nbre_select = super.marshal.getDataI2();
		}

	}

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

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

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

	public class Nwlwvom6Awlwvom6Demande {
		public BigDecimal f_matricule_mere_org;
		public BigDecimal f_voi_id_org;
		public BigDecimal f_matricule_voie_org;
		public String f_type_portage_sel;
		public String f_matricule_cible_sel;
		public BigDecimal f_matricule_mere_sel;
		public BigDecimal f_matricule_voie_sel;
		public BigDecimal f_voi_id_sel;
		public short nbre_select;
		public void add() throws BrokerException {
			Jwlwvom6.super.marshal.addDataN(f_matricule_mere_org, 9, 0);
			Jwlwvom6.super.marshal.addDataN(f_voi_id_org, 9, 0);
			Jwlwvom6.super.marshal.addDataN(f_matricule_voie_org, 9, 0);
			Jwlwvom6.super.marshal.addDataA(f_type_portage_sel, 3);
			Jwlwvom6.super.marshal.addDataA(f_matricule_cible_sel, 2);
			Jwlwvom6.super.marshal.addDataN(f_matricule_mere_sel, 9, 0);
			Jwlwvom6.super.marshal.addDataN(f_matricule_voie_sel, 9, 0);
			Jwlwvom6.super.marshal.addDataN(f_voi_id_sel, 9, 0);
			Jwlwvom6.super.marshal.addDataI(Short.toString(nbre_select), 6);
		}
		public void get() throws BrokerException {
			f_matricule_mere_org = Jwlwvom6.super.marshal.getDataN(9, 0);
			f_voi_id_org = Jwlwvom6.super.marshal.getDataN(9, 0);
			f_matricule_voie_org = Jwlwvom6.super.marshal.getDataN(9, 0);
			f_type_portage_sel = Jwlwvom6.super.marshal.getDataA(3);
			f_matricule_cible_sel = Jwlwvom6.super.marshal.getDataA(2);
			f_matricule_mere_sel = Jwlwvom6.super.marshal.getDataN(9, 0);
			f_matricule_voie_sel = Jwlwvom6.super.marshal.getDataN(9, 0);
			f_voi_id_sel = Jwlwvom6.super.marshal.getDataN(9, 0);
			nbre_select = Jwlwvom6.super.marshal.getDataI2();
		}
	}

}
