/**
 ** 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/nwlwvom7/nwlwvom7.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 Jwlwvom7 extends RPCService {

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

	public Jwlwvom7() {
		super();
	}

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

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

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

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

	private Nwlwvom7Axwebent nwlwvom7Axwebent;

	public void setNwlwvom7Axwebent(Nwlwvom7Axwebent p) {
		nwlwvom7Axwebent = p;
	}

	public Nwlwvom7Axwebent getNwlwvom7Axwebent() {
		return nwlwvom7Axwebent;
	}

	private Nwlwvom7Awlwvom7 nwlwvom7Awlwvom7;

	public void setNwlwvom7Awlwvom7(Nwlwvom7Awlwvom7 p) {
		nwlwvom7Awlwvom7 = p;
	}

	public Nwlwvom7Awlwvom7 getNwlwvom7Awlwvom7() {
		return nwlwvom7Awlwvom7;
	}

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

	public void nwlwvom7() throws BrokerException {

		buildHeader (NWLWVOM7_FORMAT, "38", 515, 0, "NWLWVOM7", true, 1110, true, false, 2000);
if (nwlwvom7Axwebent == null) nwlwvom7Axwebent = new Nwlwvom7Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom7Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwvom7Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwvom7Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwvom7Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwvom7Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwvom7Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwvom7Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwvom7Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwvom7Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwvom7Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwvom7Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwvom7Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwvom7Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwvom7Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwvom7Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwvom7Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwvom7Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwvom7Axwebent.nb_ano, 1, 0);
		if (nwlwvom7Axwebent.t_ano == null) nwlwvom7Axwebent.t_ano = new Nwlwvom7AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom7Axwebent.t_ano[i0] == null) nwlwvom7Axwebent.t_ano[i0] = new Nwlwvom7AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom7Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom7Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwvom7Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwvom7Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwvom7Awlwvom7 == null) nwlwvom7Awlwvom7 = new Nwlwvom7Awlwvom7();
		if ( getVersion() >= 2000 ) {
			nwlwvom7Awlwvom7.add();
		} else {
if (nwlwvom7Awlwvom7.demande == null) nwlwvom7Awlwvom7.demande = new Nwlwvom7Awlwvom7Demande();
		super.marshal.addDataN(nwlwvom7Awlwvom7.demande.matricule_mere_ori, 9, 0);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.cd_insee_ori, 5);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.matricule_cible_ori, 2);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.type_portage_ntr_ori, 3);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.voi_xx, 1);
		super.marshal.addDataN(nwlwvom7Awlwvom7.demande.matricule_mere_cib_1, 9, 0);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.type_portage_ntr_cib_1, 3);
		super.marshal.addDataN(nwlwvom7Awlwvom7.demande.matricule_mere_cib_2, 9, 0);
		super.marshal.addDataA(nwlwvom7Awlwvom7.demande.type_portage_ntr_cib_2, 3);
		}

		callServer();

		if (nwlwvom7Axwebent == null) nwlwvom7Axwebent = new Nwlwvom7Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwvom7Axwebent.get();
		} else {
		nwlwvom7Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwvom7Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwvom7Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwvom7Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwvom7Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwvom7Axwebent.transaction = super.marshal.getDataA(8);
		nwlwvom7Axwebent.fonction = super.marshal.getDataA(8);
		nwlwvom7Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwvom7Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwvom7Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwvom7Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwvom7Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwvom7Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwvom7Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwvom7Axwebent.type_user = super.marshal.getDataA(1);
		nwlwvom7Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwvom7Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwvom7Axwebent.t_ano == null) nwlwvom7Axwebent.t_ano = new Nwlwvom7AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwvom7Axwebent.t_ano[i0] == null) nwlwvom7Axwebent.t_ano[i0] = new Nwlwvom7AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwvom7Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwvom7Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwvom7Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwvom7Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwvom7Awlwvom7 == null) nwlwvom7Awlwvom7 = new Nwlwvom7Awlwvom7();
		if ( getVersion() >= 2000 ) {
			nwlwvom7Awlwvom7.get();
		} else {
		if (nwlwvom7Awlwvom7.demande == null) nwlwvom7Awlwvom7.demande = new Nwlwvom7Awlwvom7Demande();
		nwlwvom7Awlwvom7.demande.matricule_mere_ori = super.marshal.getDataN(9, 0);
		nwlwvom7Awlwvom7.demande.cd_insee_ori = super.marshal.getDataA(5);
		nwlwvom7Awlwvom7.demande.matricule_cible_ori = super.marshal.getDataA(2);
		nwlwvom7Awlwvom7.demande.type_portage_ntr_ori = super.marshal.getDataA(3);
		nwlwvom7Awlwvom7.demande.voi_xx = super.marshal.getDataA(1);
		nwlwvom7Awlwvom7.demande.matricule_mere_cib_1 = super.marshal.getDataN(9, 0);
		nwlwvom7Awlwvom7.demande.type_portage_ntr_cib_1 = super.marshal.getDataA(3);
		nwlwvom7Awlwvom7.demande.matricule_mere_cib_2 = super.marshal.getDataN(9, 0);
		nwlwvom7Awlwvom7.demande.type_portage_ntr_cib_2 = super.marshal.getDataA(3);
		}

	}

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

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

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

	public class Nwlwvom7Awlwvom7Demande {
		public BigDecimal matricule_mere_ori;
		public String cd_insee_ori;
		public String matricule_cible_ori;
		public String type_portage_ntr_ori;
		public String voi_xx;
		public BigDecimal matricule_mere_cib_1;
		public String type_portage_ntr_cib_1;
		public BigDecimal matricule_mere_cib_2;
		public String type_portage_ntr_cib_2;
		public void add() throws BrokerException {
			Jwlwvom7.super.marshal.addDataN(matricule_mere_ori, 9, 0);
			Jwlwvom7.super.marshal.addDataA(cd_insee_ori, 5);
			Jwlwvom7.super.marshal.addDataA(matricule_cible_ori, 2);
			Jwlwvom7.super.marshal.addDataA(type_portage_ntr_ori, 3);
			Jwlwvom7.super.marshal.addDataA(voi_xx, 1);
			Jwlwvom7.super.marshal.addDataN(matricule_mere_cib_1, 9, 0);
			Jwlwvom7.super.marshal.addDataA(type_portage_ntr_cib_1, 3);
			Jwlwvom7.super.marshal.addDataN(matricule_mere_cib_2, 9, 0);
			Jwlwvom7.super.marshal.addDataA(type_portage_ntr_cib_2, 3);
		}
		public void get() throws BrokerException {
			matricule_mere_ori = Jwlwvom7.super.marshal.getDataN(9, 0);
			cd_insee_ori = Jwlwvom7.super.marshal.getDataA(5);
			matricule_cible_ori = Jwlwvom7.super.marshal.getDataA(2);
			type_portage_ntr_ori = Jwlwvom7.super.marshal.getDataA(3);
			voi_xx = Jwlwvom7.super.marshal.getDataA(1);
			matricule_mere_cib_1 = Jwlwvom7.super.marshal.getDataN(9, 0);
			type_portage_ntr_cib_1 = Jwlwvom7.super.marshal.getDataA(3);
			matricule_mere_cib_2 = Jwlwvom7.super.marshal.getDataN(9, 0);
			type_portage_ntr_cib_2 = Jwlwvom7.super.marshal.getDataA(3);
		}
	}

}
