/**
 ** 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/nwlwclm2/nwlwclm2.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 Jwlwclm2 extends RPCService {

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

	public Jwlwclm2() {
		super();
	}

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

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

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

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

	private Nwlwclm2Axwebent nwlwclm2Axwebent;

	public void setNwlwclm2Axwebent(Nwlwclm2Axwebent p) {
		nwlwclm2Axwebent = p;
	}

	public Nwlwclm2Axwebent getNwlwclm2Axwebent() {
		return nwlwclm2Axwebent;
	}

	private Nwlwclm2Awlwclm2 nwlwclm2Awlwclm2;

	public void setNwlwclm2Awlwclm2(Nwlwclm2Awlwclm2 p) {
		nwlwclm2Awlwclm2 = p;
	}

	public Nwlwclm2Awlwclm2 getNwlwclm2Awlwclm2() {
		return nwlwclm2Awlwclm2;
	}

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

	public void nwlwclm2() throws BrokerException {

		buildHeader (NWLWCLM2_FORMAT, "47", 589, 0, "NWLWCLM2", true, 1110, true, false, 2000);
if (nwlwclm2Axwebent == null) nwlwclm2Axwebent = new Nwlwclm2Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwclm2Axwebent.add();
		} else {
		super.marshal.addDataN(nwlwclm2Axwebent.dbid, 3, 0);
		super.marshal.addDataA(nwlwclm2Axwebent.cible_exploitant, 2);
		super.marshal.addDataA(nwlwclm2Axwebent.groupe_exploitant, 8);
		super.marshal.addDataN(nwlwclm2Axwebent.numero_session, 8, 0);
		super.marshal.addDataA(nwlwclm2Axwebent.utilisateur, 8);
		super.marshal.addDataA(nwlwclm2Axwebent.transaction, 8);
		super.marshal.addDataA(nwlwclm2Axwebent.fonction, 8);
		super.marshal.addDataA(nwlwclm2Axwebent.date_time_deb, 15);
		super.marshal.addDataA(nwlwclm2Axwebent.cd_cible, 2);
		super.marshal.addDataA(nwlwclm2Axwebent.cd_stegrp, 3);
		super.marshal.addDataA(nwlwclm2Axwebent.cd_titre, 3);
		super.marshal.addDataA(nwlwclm2Axwebent.num_cli_ref, 11);
		super.marshal.addDataA(nwlwclm2Axwebent.mot_passe_appl, 8);
		super.marshal.addDataA(nwlwclm2Axwebent.cd_application, 8);
		super.marshal.addDataA(nwlwclm2Axwebent.type_user, 1);
		super.marshal.addDataN(nwlwclm2Axwebent.code_retour, 2, 0);
		super.marshal.addDataN(nwlwclm2Axwebent.nb_ano, 1, 0);
		if (nwlwclm2Axwebent.t_ano == null) nwlwclm2Axwebent.t_ano = new Nwlwclm2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwclm2Axwebent.t_ano[i0] == null) nwlwclm2Axwebent.t_ano[i0] = new Nwlwclm2AxwebentT_ano();
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm2Axwebent.t_ano[i0].code_ano, 4);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm2Axwebent.t_ano[i0].lib_ano, 65);
		for (int i0=0; i0<5; i0++) super.marshal.addDataA(nwlwclm2Axwebent.t_ano[i0].type_ano, 1);
		for (int i0=0; i0<5; i0++) super.marshal.addDataN(nwlwclm2Axwebent.t_ano[i0].num_data, 2, 0);
		}
if (nwlwclm2Awlwclm2 == null) nwlwclm2Awlwclm2 = new Nwlwclm2Awlwclm2();
		if ( getVersion() >= 2000 ) {
			nwlwclm2Awlwclm2.add();
		} else {
if (nwlwclm2Awlwclm2.demande == null) nwlwclm2Awlwclm2.demande = new Nwlwclm2Awlwclm2Demande();
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_cd_cible, 2);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_num_cli, 11);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_num_ordre_voie, 5);
		super.marshal.addDataN(nwlwclm2Awlwclm2.demande.f_matricule_voie, 9, 0);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_numero_voie, 5);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_cd_postal, 5);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_cd_insee, 5);
		super.marshal.addDataA(nwlwclm2Awlwclm2.demande.f_tpr_groupe, 1);
if (nwlwclm2Awlwclm2.retour == null) nwlwclm2Awlwclm2.retour = new Nwlwclm2Awlwclm2Retour();
		super.marshal.addDataN(nwlwclm2Awlwclm2.retour.code_retour, 2, 0);
		super.marshal.addDataA(nwlwclm2Awlwclm2.retour.message_retour, 65);
if (nwlwclm2Awlwclm2.filtre_immediat == null) nwlwclm2Awlwclm2.filtre_immediat = new Nwlwclm2Awlwclm2Filtre_immediat();
		super.marshal.addDataA(nwlwclm2Awlwclm2.filtre_immediat.cd_zpo, 4);
		super.marshal.addDataA(nwlwclm2Awlwclm2.filtre_immediat.type_portage, 1);
		super.marshal.addDataA(nwlwclm2Awlwclm2.filtre_immediat.tpr_groupe, 1);
		super.marshal.addDataA(nwlwclm2Awlwclm2.filtre_immediat.tpr_num, 3);
		}

		callServer();

		if (nwlwclm2Axwebent == null) nwlwclm2Axwebent = new Nwlwclm2Axwebent();
		if ( getVersion() >= 2000 ) {
			nwlwclm2Axwebent.get();
		} else {
		nwlwclm2Axwebent.dbid = super.marshal.getDataN(3, 0);
		nwlwclm2Axwebent.cible_exploitant = super.marshal.getDataA(2);
		nwlwclm2Axwebent.groupe_exploitant = super.marshal.getDataA(8);
		nwlwclm2Axwebent.numero_session = super.marshal.getDataN(8, 0);
		nwlwclm2Axwebent.utilisateur = super.marshal.getDataA(8);
		nwlwclm2Axwebent.transaction = super.marshal.getDataA(8);
		nwlwclm2Axwebent.fonction = super.marshal.getDataA(8);
		nwlwclm2Axwebent.date_time_deb = super.marshal.getDataA(15);
		nwlwclm2Axwebent.cd_cible = super.marshal.getDataA(2);
		nwlwclm2Axwebent.cd_stegrp = super.marshal.getDataA(3);
		nwlwclm2Axwebent.cd_titre = super.marshal.getDataA(3);
		nwlwclm2Axwebent.num_cli_ref = super.marshal.getDataA(11);
		nwlwclm2Axwebent.mot_passe_appl = super.marshal.getDataA(8);
		nwlwclm2Axwebent.cd_application = super.marshal.getDataA(8);
		nwlwclm2Axwebent.type_user = super.marshal.getDataA(1);
		nwlwclm2Axwebent.code_retour = super.marshal.getDataN(2, 0);
		nwlwclm2Axwebent.nb_ano = super.marshal.getDataN(1, 0);
				if (nwlwclm2Axwebent.t_ano == null) nwlwclm2Axwebent.t_ano = new Nwlwclm2AxwebentT_ano[5];
		for (int i0=0; i0<5; i0++) if (nwlwclm2Axwebent.t_ano[i0] == null) nwlwclm2Axwebent.t_ano[i0] = new Nwlwclm2AxwebentT_ano();
		for (int i0=0; i0<5; i0++) nwlwclm2Axwebent.t_ano[i0].code_ano = super.marshal.getDataA(4);
		for (int i0=0; i0<5; i0++) nwlwclm2Axwebent.t_ano[i0].lib_ano = super.marshal.getDataA(65);
		for (int i0=0; i0<5; i0++) nwlwclm2Axwebent.t_ano[i0].type_ano = super.marshal.getDataA(1);
		for (int i0=0; i0<5; i0++) nwlwclm2Axwebent.t_ano[i0].num_data = super.marshal.getDataN(2, 0);
		}
		if (nwlwclm2Awlwclm2 == null) nwlwclm2Awlwclm2 = new Nwlwclm2Awlwclm2();
		if ( getVersion() >= 2000 ) {
			nwlwclm2Awlwclm2.get();
		} else {
		if (nwlwclm2Awlwclm2.demande == null) nwlwclm2Awlwclm2.demande = new Nwlwclm2Awlwclm2Demande();
		nwlwclm2Awlwclm2.demande.f_cd_cible = super.marshal.getDataA(2);
		nwlwclm2Awlwclm2.demande.f_num_cli = super.marshal.getDataA(11);
		nwlwclm2Awlwclm2.demande.f_num_ordre_voie = super.marshal.getDataA(5);
		nwlwclm2Awlwclm2.demande.f_matricule_voie = super.marshal.getDataN(9, 0);
		nwlwclm2Awlwclm2.demande.f_numero_voie = super.marshal.getDataA(5);
		nwlwclm2Awlwclm2.demande.f_cd_postal = super.marshal.getDataA(5);
		nwlwclm2Awlwclm2.demande.f_cd_insee = super.marshal.getDataA(5);
		nwlwclm2Awlwclm2.demande.f_tpr_groupe = super.marshal.getDataA(1);
		if (nwlwclm2Awlwclm2.retour == null) nwlwclm2Awlwclm2.retour = new Nwlwclm2Awlwclm2Retour();
		nwlwclm2Awlwclm2.retour.code_retour = super.marshal.getDataN(2, 0);
		nwlwclm2Awlwclm2.retour.message_retour = super.marshal.getDataA(65);
		if (nwlwclm2Awlwclm2.filtre_immediat == null) nwlwclm2Awlwclm2.filtre_immediat = new Nwlwclm2Awlwclm2Filtre_immediat();
		nwlwclm2Awlwclm2.filtre_immediat.cd_zpo = super.marshal.getDataA(4);
		nwlwclm2Awlwclm2.filtre_immediat.type_portage = super.marshal.getDataA(1);
		nwlwclm2Awlwclm2.filtre_immediat.tpr_groupe = super.marshal.getDataA(1);
		nwlwclm2Awlwclm2.filtre_immediat.tpr_num = super.marshal.getDataA(3);
		}

	}

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

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

	public class Nwlwclm2Awlwclm2 {
		public Nwlwclm2Awlwclm2Demande demande;
		public Nwlwclm2Awlwclm2Retour retour;
		public Nwlwclm2Awlwclm2Filtre_immediat filtre_immediat;
		public void add() throws BrokerException {
			if (demande == null) demande = new Nwlwclm2Awlwclm2Demande();
			demande.add();
			if (retour == null) retour = new Nwlwclm2Awlwclm2Retour();
			retour.add();
			if (filtre_immediat == null) filtre_immediat = new Nwlwclm2Awlwclm2Filtre_immediat();
			filtre_immediat.add();
		}
		public void get() throws BrokerException {
			if (demande == null) demande = new Nwlwclm2Awlwclm2Demande();
							demande.get();
			if (retour == null) retour = new Nwlwclm2Awlwclm2Retour();
							retour.get();
			if (filtre_immediat == null) filtre_immediat = new Nwlwclm2Awlwclm2Filtre_immediat();
							filtre_immediat.get();
		}
	}

	public class Nwlwclm2Awlwclm2Demande {
		public String f_cd_cible;
		public String f_num_cli;
		public String f_num_ordre_voie;
		public BigDecimal f_matricule_voie;
		public String f_numero_voie;
		public String f_cd_postal;
		public String f_cd_insee;
		public String f_tpr_groupe;
		public void add() throws BrokerException {
			Jwlwclm2.super.marshal.addDataA(f_cd_cible, 2);
			Jwlwclm2.super.marshal.addDataA(f_num_cli, 11);
			Jwlwclm2.super.marshal.addDataA(f_num_ordre_voie, 5);
			Jwlwclm2.super.marshal.addDataN(f_matricule_voie, 9, 0);
			Jwlwclm2.super.marshal.addDataA(f_numero_voie, 5);
			Jwlwclm2.super.marshal.addDataA(f_cd_postal, 5);
			Jwlwclm2.super.marshal.addDataA(f_cd_insee, 5);
			Jwlwclm2.super.marshal.addDataA(f_tpr_groupe, 1);
		}
		public void get() throws BrokerException {
			f_cd_cible = Jwlwclm2.super.marshal.getDataA(2);
			f_num_cli = Jwlwclm2.super.marshal.getDataA(11);
			f_num_ordre_voie = Jwlwclm2.super.marshal.getDataA(5);
			f_matricule_voie = Jwlwclm2.super.marshal.getDataN(9, 0);
			f_numero_voie = Jwlwclm2.super.marshal.getDataA(5);
			f_cd_postal = Jwlwclm2.super.marshal.getDataA(5);
			f_cd_insee = Jwlwclm2.super.marshal.getDataA(5);
			f_tpr_groupe = Jwlwclm2.super.marshal.getDataA(1);
		}
	}

	public class Nwlwclm2Awlwclm2Retour {
		public BigDecimal code_retour;
		public String message_retour;
		public void add() throws BrokerException {
			Jwlwclm2.super.marshal.addDataN(code_retour, 2, 0);
			Jwlwclm2.super.marshal.addDataA(message_retour, 65);
		}
		public void get() throws BrokerException {
			code_retour = Jwlwclm2.super.marshal.getDataN(2, 0);
			message_retour = Jwlwclm2.super.marshal.getDataA(65);
		}
	}

	public class Nwlwclm2Awlwclm2Filtre_immediat {
		public String cd_zpo;
		public String type_portage;
		public String tpr_groupe;
		public String tpr_num;
		public void add() throws BrokerException {
			Jwlwclm2.super.marshal.addDataA(cd_zpo, 4);
			Jwlwclm2.super.marshal.addDataA(type_portage, 1);
			Jwlwclm2.super.marshal.addDataA(tpr_groupe, 1);
			Jwlwclm2.super.marshal.addDataA(tpr_num, 3);
		}
		public void get() throws BrokerException {
			cd_zpo = Jwlwclm2.super.marshal.getDataA(4);
			type_portage = Jwlwclm2.super.marshal.getDataA(1);
			tpr_groupe = Jwlwclm2.super.marshal.getDataA(1);
			tpr_num = Jwlwclm2.super.marshal.getDataA(3);
		}
	}

}
