Allineamento Master Ril. MNP_SM_2459 - inserimento sessionID per i servizi SOAP IBK50, IBK61, IBK63, IBK65
+ Aggiunti log Lotto_7
This commit is contained in:
@@ -1,3 +1,3 @@
|
|||||||
############### Middleware Modernization 2024: Servizi GISP lotto7 - BEGIN - #################
|
############### Middleware Modernization 2024: Servizi GISP lotto7 - BEGIN - #################
|
||||||
ESO_RETRIEVE_REST_POST_ENABLED = 1
|
ESO_RETRIEVE_REST_POST_ENABLED = 0
|
||||||
ESO_RETRIEVE_REST_POST_URL = "pippo"
|
ESO_RETRIEVE_REST_POST_URL = "URL_WS_ESO"
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import it.telecomitalia.soa.soap.soapheader.x20230406.holders.HeaderTypeHolder;
|
|||||||
@WLHttpTransport(contextPath="wsgispesito",serviceUri="EsitoCessMnp",portName="EsitoCessMnp")
|
@WLHttpTransport(contextPath="wsgispesito",serviceUri="EsitoCessMnp",portName="EsitoCessMnp")
|
||||||
public class EsitoCessMnpPortTypeImpl implements EsitoCessMnpPortType, Loggable {
|
public class EsitoCessMnpPortTypeImpl implements EsitoCessMnpPortType, Loggable {
|
||||||
|
|
||||||
private final String codiceLog = "ZF";
|
private final String codiceLog = "HB";
|
||||||
private String versione = "1.0";
|
private String versione = "1.0";
|
||||||
private ProcessLogger log = null;
|
private ProcessLogger log = null;
|
||||||
|
|
||||||
@@ -82,20 +82,20 @@ public class EsitoCessMnpPortTypeImpl implements EsitoCessMnpPortType, Loggable
|
|||||||
|
|
||||||
private void logInput(HeaderTypeHolder header, EsitoCessMnpRequest body) {
|
private void logInput(HeaderTypeHolder header, EsitoCessMnpRequest body) {
|
||||||
|
|
||||||
log.write("9999", "richiesta in ingresso header= " + header);
|
|
||||||
log.write("9999", "richiesta in ingresso body= " + body);
|
|
||||||
|
|
||||||
if (header != null && header.value != null) {
|
if (header != null && header.value != null) {
|
||||||
|
log.write("9999", "EsitoCessMnpRequest Header:");
|
||||||
log.write("9999", "getBusinessID = " + header.value.getBusinessID());
|
log.write("9999", "getBusinessID = " + header.value.getBusinessID());
|
||||||
log.write("9999", "getMessageID = " + header.value.getMessageID());
|
log.write("9999", "getMessageID = " + header.value.getMessageID());
|
||||||
log.write("9999", "getSourceSystem = " + header.value.getSourceSystem());
|
log.write("9999", "getSourceSystem = " + header.value.getSourceSystem());
|
||||||
log.write("9999", "getSourceSystem = " + header.value.getChannel());
|
log.write("9999", "getChannel = " + header.value.getChannel());
|
||||||
log.write("9999", "getTransactionID = " + header.value.getTransactionID());
|
log.write("9999", "getTransactionID = " + header.value.getTransactionID());
|
||||||
log.write("9999", "getInteractionDate = " + header.value.getInteractionDate());
|
log.write("9999", "getInteractionDate = " + header.value.getInteractionDate());
|
||||||
log.write("9999", "getEventType = " + header.value.getEventType());
|
log.write("9999", "getEventType = " + header.value.getEventType());
|
||||||
|
log.write("9999", "getSessionID = " + header.value.getSessionID());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
|
log.write("9999", "EsitoCessMnpRequest Body:");
|
||||||
log.write("9999", "Nome_Richiesta = " + body.getNOME_RICHIESTA() + ", EsitoCas = " + body.getESITO_CAS() + ", DescrizioneEsito = " + body.getDESCRIZIONE_ESITO());
|
log.write("9999", "Nome_Richiesta = " + body.getNOME_RICHIESTA() + ", EsitoCas = " + body.getESITO_CAS() + ", DescrizioneEsito = " + body.getDESCRIZIONE_ESITO());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import mnp.objects.LogInfo;
|
|||||||
import mnp.objects.LogProcess;
|
import mnp.objects.LogProcess;
|
||||||
import mnp.objects.map.GispMap;
|
import mnp.objects.map.GispMap;
|
||||||
import mnp.utility.DateUtils;
|
import mnp.utility.DateUtils;
|
||||||
|
import mnp.utility.Func;
|
||||||
import mnp.utility.Resources;
|
import mnp.utility.Resources;
|
||||||
import javax.xml.rpc.Stub;
|
import javax.xml.rpc.Stub;
|
||||||
import it.telecomitalia.soa.soap.soapheader.InteractionDateType;
|
import it.telecomitalia.soa.soap.soapheader.InteractionDateType;
|
||||||
@@ -104,15 +105,17 @@ public class GISPClient implements Loggable {
|
|||||||
header.setEventType(eventType);
|
header.setEventType(eventType);
|
||||||
|
|
||||||
header.setBusinessID(new TID().toString());
|
header.setBusinessID(new TID().toString());
|
||||||
|
//MNP_SM_2459 - settaggio del parametro obbligatorio sessionID
|
||||||
|
header.setSessionID(new TID().toString());
|
||||||
header.setTransactionID(new TID().toString());
|
header.setTransactionID(new TID().toString());
|
||||||
header.setMessageID(new TID().toString());
|
header.setMessageID(new TID().toString());
|
||||||
|
|
||||||
body.setHeader(header);
|
body.setHeader(header);
|
||||||
/*
|
System.out.println("Request Header iBK50RichiestaCessazioneLineaDonor: "+ Func.getFieldDescription(body.getHeader()));
|
||||||
if (requestHeader != null) {
|
System.out.println("Request Body iBK50RichiestaCessazioneLineaDonor:");
|
||||||
header.setBusinessID(requestHeader.getBusinessId());
|
for(com.tibco.tns.bw.json.x1698392386014.RequestParameters req: body.getMessage().getRequestParameters()){
|
||||||
header.setTransactionID(requestHeader.getTransactionId());
|
System.out.println(Func.getFieldDescription(req));
|
||||||
}*/
|
}
|
||||||
|
|
||||||
IBK50ResponseElementType response = endPoint.iBK50RichiestaCessazioneLineaDonor(body);
|
IBK50ResponseElementType response = endPoint.iBK50RichiestaCessazioneLineaDonor(body);
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import weblogic.transaction.UserTransaction;
|
|||||||
public class EsitoRicMvnoPortTypeImpl implements EsitoRicMvnoPortType, Loggable {
|
public class EsitoRicMvnoPortTypeImpl implements EsitoRicMvnoPortType, Loggable {
|
||||||
/**Implemento anche loggable per poter implementare i metodi di loggable e tenere traccia
|
/**Implemento anche loggable per poter implementare i metodi di loggable e tenere traccia
|
||||||
* dei log*/
|
* dei log*/
|
||||||
private final String codiceLog = "ZF";
|
private final String codiceLog = "HB";
|
||||||
private String versione = "1.0";
|
private String versione = "1.0";
|
||||||
private ProcessLogger log = null;
|
private ProcessLogger log = null;
|
||||||
public EsitoRicMvnoPortTypeImpl() {
|
public EsitoRicMvnoPortTypeImpl() {
|
||||||
@@ -99,20 +99,20 @@ public class EsitoRicMvnoPortTypeImpl implements EsitoRicMvnoPortType, Loggable
|
|||||||
|
|
||||||
private void logInput(HeaderTypeHolder header, EsitoRicMvnoRequest body) {
|
private void logInput(HeaderTypeHolder header, EsitoRicMvnoRequest body) {
|
||||||
|
|
||||||
log.write("9999", "richiesta in ingresso header= " + header);
|
|
||||||
log.write("9999", "richiesta in ingresso body= " + body);
|
|
||||||
|
|
||||||
if (header != null && header.value != null) {
|
if (header != null && header.value != null) {
|
||||||
|
log.write("9999", "EsitoRicMvnoRequest Header:");
|
||||||
log.write("9999", "getBusinessID = " + header.value.getBusinessID());
|
log.write("9999", "getBusinessID = " + header.value.getBusinessID());
|
||||||
log.write("9999", "getMessageID = " + header.value.getMessageID());
|
log.write("9999", "getMessageID = " + header.value.getMessageID());
|
||||||
log.write("9999", "getSourceSystem = " + header.value.getSourceSystem());
|
log.write("9999", "getSourceSystem = " + header.value.getSourceSystem());
|
||||||
log.write("9999", "getSourceSystem = " + header.value.getChannel());
|
log.write("9999", "getChannel = " + header.value.getChannel());
|
||||||
log.write("9999", "getTransactionID = " + header.value.getTransactionID());
|
log.write("9999", "getTransactionID = " + header.value.getTransactionID());
|
||||||
log.write("9999", "getInteractionDate = " + header.value.getInteractionDate());
|
log.write("9999", "getInteractionDate = " + header.value.getInteractionDate());
|
||||||
log.write("9999", "getEventType = " + header.value.getEventType());
|
log.write("9999", "getEventType = " + header.value.getEventType());
|
||||||
|
log.write("9999", "getSessionID = " + header.value.getSessionID());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (body != null) {
|
if (body != null) {
|
||||||
|
log.write("9999", "EsitoRicMvnoRequest Body:");
|
||||||
log.write("9999", "Nome_Richiesta = " + body.getNOME_RICHIESTA() + ", EsitoCas = " + body.getCAS() + ", DescrizioneEsito = " + body.getDESCRIZIONE_ESITO());
|
log.write("9999", "Nome_Richiesta = " + body.getNOME_RICHIESTA() + ", EsitoCas = " + body.getCAS() + ", DescrizioneEsito = " + body.getDESCRIZIONE_ESITO());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import mnp.objects.LogInfo;
|
|||||||
import mnp.objects.LogProcess;
|
import mnp.objects.LogProcess;
|
||||||
|
|
||||||
import mnp.utility.DateUtils;
|
import mnp.utility.DateUtils;
|
||||||
|
import mnp.utility.Func;
|
||||||
import mnp.utility.Resources;
|
import mnp.utility.Resources;
|
||||||
import org.example.ibk61_responseresource.IBK61_ResponseElementType;
|
import org.example.ibk61_responseresource.IBK61_ResponseElementType;
|
||||||
import tim.infobus.data.TID;
|
import tim.infobus.data.TID;
|
||||||
@@ -178,7 +179,7 @@ public class IBK61Client implements Loggable {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creazione Request servizio richiestaAttivaztioneCessazioneLinea esposto da O2C
|
* Creazione Request servizio richiestaAttivaztioneCessazioneLinea esposto da O2C
|
||||||
* per richieste di attivazione (DISATMNPG)
|
* per richieste di cessazione (DISATMNPG)
|
||||||
*
|
*
|
||||||
* @param MnpGispCessOut oggetto legato al dao che referenzia la tabella MNP_GISP_CESS_OUT
|
* @param MnpGispCessOut oggetto legato al dao che referenzia la tabella MNP_GISP_CESS_OUT
|
||||||
* @return oggetto di tipo IBK61_RequestElementType
|
* @return oggetto di tipo IBK61_RequestElementType
|
||||||
@@ -274,9 +275,10 @@ public class IBK61Client implements Loggable {
|
|||||||
header.setEventType(eventType);
|
header.setEventType(eventType);
|
||||||
|
|
||||||
header.setBusinessID(new TID().toString());
|
header.setBusinessID(new TID().toString());
|
||||||
|
//MNP_SM_2459 - settaggio del parametro obbligatorio sessionID
|
||||||
|
header.setSessionID(new TID().toString());
|
||||||
header.setTransactionID(new TID().toString());
|
header.setTransactionID(new TID().toString());
|
||||||
header.setMessageID(new TID().toString());
|
header.setMessageID(new TID().toString());
|
||||||
//in uniformità alla IBK50 non mettiamo SessionID
|
|
||||||
|
|
||||||
body.setHeader(header);
|
body.setHeader(header);
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ public class IBK61SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK61SOAPHandler] - Inizio Log Invio Notifica");
|
System.out.println("[IBK61SOAPHandler] - Inizio Log Request");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK61SOAPHandler] - Fine Log Invio Notifica");
|
System.out.println("[IBK61SOAPHandler] - Fine Log Request");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
@@ -37,11 +37,11 @@ public class IBK61SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK61SOAPHandler] - Inizio Log Errore Invio Notifica");
|
System.out.println("[IBK61SOAPHandler] - Inizio Log Errore");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK61SOAPHandler] - Fine Log Errore Invio Notifica");
|
System.out.println("[IBK61SOAPHandler] - Fine Log Errore");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
@@ -49,4 +49,21 @@ public class IBK61SOAPHandler extends GenericHandler {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean handleResponse(MessageContext context) {
|
||||||
|
SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
|
||||||
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
try {
|
||||||
|
System.out.println("[IBK61SOAPHandler] - Inizio Log Response");
|
||||||
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
|
System.out.println(baos.toString());
|
||||||
|
System.out.println("[IBK61SOAPHandler] - Fine Log Response");
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import mnp.log.Loggable;
|
|||||||
import mnp.log.ProcessLogger;
|
import mnp.log.ProcessLogger;
|
||||||
import mnp.objects.LogInfo;
|
import mnp.objects.LogInfo;
|
||||||
import mnp.objects.LogProcess;
|
import mnp.objects.LogProcess;
|
||||||
|
import mnp.utility.Func;
|
||||||
import mnp.utility.Resources;
|
import mnp.utility.Resources;
|
||||||
|
|
||||||
import org.example.ibk63_responseresource.IBK63_ResponseElementType;
|
import org.example.ibk63_responseresource.IBK63_ResponseElementType;
|
||||||
@@ -191,9 +192,10 @@ public class IBK63Client implements Loggable {
|
|||||||
header.setEventType(eventType);
|
header.setEventType(eventType);
|
||||||
|
|
||||||
header.setBusinessID(new TID().toString());
|
header.setBusinessID(new TID().toString());
|
||||||
|
//MNP_SM_2459 - settaggio del parametro obbligatorio sessionID
|
||||||
|
header.setSessionID(new TID().toString());
|
||||||
header.setTransactionID(new TID().toString());
|
header.setTransactionID(new TID().toString());
|
||||||
header.setMessageID(new TID().toString());
|
header.setMessageID(new TID().toString());
|
||||||
//in uniformità alla IBK50 non mettiamo SessionID
|
|
||||||
|
|
||||||
body.setHeader(header);
|
body.setHeader(header);
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ public class IBK63SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK63SOAPHandler] - Inizio Log Invio Notifica");
|
System.out.println("[IBK63SOAPHandler] - Inizio Log Request");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK63SOAPHandler] - Fine Log Invio Notifica");
|
System.out.println("[IBK63SOAPHandler] - Fine Log Request");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
@@ -37,11 +37,28 @@ public class IBK63SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK63SOAPHandler] - Inizio Log Errore Invio Notifica");
|
System.out.println("[IBK63SOAPHandler] - Inizio Log Errore");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK63SOAPHandler] - Fine Log Errore Invio Notifica");
|
System.out.println("[IBK63SOAPHandler] - Fine Log Errore");
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean handleResponse(MessageContext context) {
|
||||||
|
SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
|
||||||
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
try {
|
||||||
|
System.out.println("[IBK63SOAPHandler] - Inizio Log Response");
|
||||||
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
|
System.out.println(baos.toString());
|
||||||
|
System.out.println("[IBK63SOAPHandler] - Fine Log Response");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import mnp.log.Loggable;
|
|||||||
import mnp.log.ProcessLogger;
|
import mnp.log.ProcessLogger;
|
||||||
import mnp.objects.LogInfo;
|
import mnp.objects.LogInfo;
|
||||||
import mnp.objects.LogProcess;
|
import mnp.objects.LogProcess;
|
||||||
|
import mnp.utility.Func;
|
||||||
import mnp.utility.Resources;
|
import mnp.utility.Resources;
|
||||||
import org.example.ibk65_responseresource.IBK65_ResponseElementType;
|
import org.example.ibk65_responseresource.IBK65_ResponseElementType;
|
||||||
import tim.infobus.data.TID;
|
import tim.infobus.data.TID;
|
||||||
@@ -141,7 +142,6 @@ public class IBK65Client implements Loggable {
|
|||||||
|
|
||||||
message.setRequestParameters(array_param);
|
message.setRequestParameters(array_param);
|
||||||
richiestaRestituzione.setMessage(message);
|
richiestaRestituzione.setMessage(message);
|
||||||
|
|
||||||
return richiestaRestituzione;
|
return richiestaRestituzione;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,9 +172,10 @@ public class IBK65Client implements Loggable {
|
|||||||
header.setEventType(eventType);
|
header.setEventType(eventType);
|
||||||
|
|
||||||
header.setBusinessID(new TID().toString());
|
header.setBusinessID(new TID().toString());
|
||||||
|
//MNP_SM_2459 - settaggio del parametro obbligatorio sessionID
|
||||||
|
header.setSessionID(new TID().toString());
|
||||||
header.setTransactionID(new TID().toString());
|
header.setTransactionID(new TID().toString());
|
||||||
header.setMessageID(new TID().toString());
|
header.setMessageID(new TID().toString());
|
||||||
//in uniformità alla IBK50 non mettiamo SessionID
|
|
||||||
|
|
||||||
body.setHeader(header);
|
body.setHeader(header);
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ public class IBK65SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK65SOAPHandler] - Inizio Log Invio Notifica");
|
System.out.println("[IBK65SOAPHandler] - Inizio Log Request");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK65SOAPHandler] - Fine Log Invio Notifica");
|
System.out.println("[IBK65SOAPHandler] - Fine Log Request");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
@@ -37,11 +37,29 @@ public class IBK65SOAPHandler extends GenericHandler {
|
|||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.out.println("[IBK65SOAPHandler] - Inizio Log Errore Invio Notifica");
|
System.out.println("[IBK65SOAPHandler] - Inizio Log Errore");
|
||||||
System.out.println("----------------------------------------------------------------------------------------------");
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
soapMsgCtx.getMessage().writeTo(baos);
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
System.out.println(baos.toString());
|
System.out.println(baos.toString());
|
||||||
System.out.println("[IBK65SOAPHandler] - Fine Log Errore Invio Notifica");
|
System.out.println("[IBK65SOAPHandler] - Fine Log Errore");
|
||||||
|
} catch (Exception ex) {
|
||||||
|
ex.printStackTrace();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public boolean handleResponse(MessageContext context) {
|
||||||
|
SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
|
||||||
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
try {
|
||||||
|
System.out.println("[IBK65SOAPHandler] - Inizio Log Response");
|
||||||
|
System.out.println("----------------------------------------------------------------------------------------------");
|
||||||
|
soapMsgCtx.getMessage().writeTo(baos);
|
||||||
|
System.out.println(baos.toString());
|
||||||
|
System.out.println("[IBK65SOAPHandler] - Fine Log Response");
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ex.printStackTrace();
|
ex.printStackTrace();
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -24,10 +24,10 @@ import java.io.Serializable;
|
|||||||
|
|
||||||
public class AttributiUsage implements Serializable {
|
public class AttributiUsage implements Serializable {
|
||||||
@SerializedName("value")
|
@SerializedName("value")
|
||||||
private String value = null;
|
private String value = "";
|
||||||
|
|
||||||
@SerializedName("main_msisdn")
|
@SerializedName("main_msisdn")
|
||||||
private String mainMsisdn = null;
|
private String mainMsisdn = "";
|
||||||
|
|
||||||
public AttributiUsage value(String value) {
|
public AttributiUsage value(String value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
|
|||||||
@@ -107,23 +107,26 @@ public class GispRetrieveEventHandler extends AbstractEventHandler{
|
|||||||
if (checkRequestForRetrieve(request)) {
|
if (checkRequestForRetrieve(request)) {
|
||||||
//new REST Middleware Modernization: Servizi GISP Lotto 7 - item 311728 - R58-24-1170
|
//new REST Middleware Modernization: Servizi GISP Lotto 7 - item 311728 - R58-24-1170
|
||||||
if("1".equals(Resources.getESO_RETRIEVE_REST_POST_ENABLED())){
|
if("1".equals(Resources.getESO_RETRIEVE_REST_POST_ENABLED())){
|
||||||
|
//la variabile si chiama xml, ma in questo caso è json
|
||||||
xml = formatter.getTracciatoForReqESORest(retrieveGisp);
|
xml = formatter.getTracciatoForReqESORest(retrieveGisp);
|
||||||
|
log.write("9999", "REQUEST json da inviare SDP/ESO :[" + xml + "]");
|
||||||
try{
|
try{
|
||||||
WSRestHandler wsRestHandler = new WSRestHandler(log);
|
WSRestHandler wsRestHandler = new WSRestHandler(log);
|
||||||
xmlResponse = wsRestHandler.retrieveESORestPost(xml);
|
xmlResponse = wsRestHandler.retrieveESORestPost(xml);
|
||||||
log.write("9999", "RESPONSE rest SDP/ESO XML :[" + xmlResponse + "]");
|
|
||||||
}catch (Exception ex){
|
}catch (Exception ex){
|
||||||
log.write("9999", "ERRORE invio rest SDP/ESO XML :[" + xml + "]");
|
log.write("9999", "ERRORE invio rest SDP/ESO JSON :[" + xml + "]");
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
log.write("9999", "RESPONSE rest SDP/ESO JSON :[" + xmlResponse + "]");
|
||||||
// unmarshall della risposta ESO
|
// unmarshall della risposta ESO
|
||||||
try {
|
try {
|
||||||
retrieveGispResponse = formatter.formatEsoDTO(xmlResponse);
|
retrieveGispResponse = formatter.formatEsoDTO(xmlResponse);
|
||||||
retrieveGispResponse.setMsisdnType(retrieveGisp.getMsisdnType());
|
retrieveGispResponse.setMsisdnType(retrieveGisp.getMsisdnType());
|
||||||
}catch (Exception ex){
|
}catch (Exception ex){
|
||||||
log.write("9999", "ERRORE formattazione risposta SDP/ESO XML :[" + xmlResponse + "]");
|
log.write("9999", "ERRORE UNMARSHAL risposta SDP/ESO JSON :[" + xmlResponse + "]");
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
log.write("9999", "RESPONSE MnpGispRetrieveOut rest SDP/ESO :[" + Func.getFieldDescription(retrieveGispResponse) + "]");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
//old InfoBus
|
//old InfoBus
|
||||||
|
|||||||
@@ -165,43 +165,43 @@ public class RetrieveGispXAO {
|
|||||||
|
|
||||||
/******* Attributi *******/
|
/******* Attributi *******/
|
||||||
//Attributi -> stato
|
//Attributi -> stato
|
||||||
attributi.setStato(new String());
|
attributi.setStato("");
|
||||||
//AttributiDettaglioStato -> cessazione_mnp
|
//AttributiDettaglioStato -> cessazione_mnp
|
||||||
mnp.proxy.ws.sdp.client.AttributiDettaglioStato dettaglioStato= new mnp.proxy.ws.sdp.client.AttributiDettaglioStato();
|
mnp.proxy.ws.sdp.client.AttributiDettaglioStato dettaglioStato= new mnp.proxy.ws.sdp.client.AttributiDettaglioStato();
|
||||||
dettaglioStato.setCessazioneMnp(new String());
|
dettaglioStato.setCessazioneMnp("");
|
||||||
//Attributi -> prepagato
|
//Attributi -> prepagato
|
||||||
attributi.setPrepagato(new String());
|
attributi.setPrepagato("");
|
||||||
//Attributi -> usage
|
//Attributi -> usage
|
||||||
attributi.setUsage(new mnp.proxy.ws.sdp.client.AttributiUsage());
|
attributi.setUsage(new mnp.proxy.ws.sdp.client.AttributiUsage());
|
||||||
//Attributi -> esp
|
//Attributi -> esp
|
||||||
attributi.setEsp(new String());
|
attributi.setEsp("");
|
||||||
//Attributi -> profilo
|
//Attributi -> profilo
|
||||||
attributi.setProfilo(new String());
|
attributi.setProfilo("");
|
||||||
//Attributi -> descrizioneProfilo
|
//Attributi -> descrizioneProfilo
|
||||||
attributi.setDescrizioneProfilo(new String());
|
attributi.setDescrizioneProfilo("");
|
||||||
//Attributi -> tipologia
|
//Attributi -> tipologia
|
||||||
attributi.setTipologia(new String());
|
attributi.setTipologia("");
|
||||||
//Attributi -> blocco -> fs
|
//Attributi -> blocco -> fs
|
||||||
mnp.proxy.ws.sdp.client.AttributiBlocco blocco = new mnp.proxy.ws.sdp.client.AttributiBlocco();
|
mnp.proxy.ws.sdp.client.AttributiBlocco blocco = new mnp.proxy.ws.sdp.client.AttributiBlocco();
|
||||||
blocco.setFs(new String());
|
blocco.setFs("");
|
||||||
blocco.setFraud(new String());
|
blocco.setFraud("");
|
||||||
blocco.setAnagr(new String());
|
blocco.setAnagr("");
|
||||||
//Attributi -> dati_commerciali -> cliente
|
//Attributi -> dati_commerciali -> cliente
|
||||||
mnp.proxy.ws.sdp.client.AttributiDatiCommerciali datiCommerciali = new mnp.proxy.ws.sdp.client.AttributiDatiCommerciali();
|
mnp.proxy.ws.sdp.client.AttributiDatiCommerciali datiCommerciali = new mnp.proxy.ws.sdp.client.AttributiDatiCommerciali();
|
||||||
datiCommerciali.setCliente(new String());
|
datiCommerciali.setCliente("");
|
||||||
datiCommerciali.setMarcaggioCliente(new String());
|
datiCommerciali.setMarcaggioCliente("");
|
||||||
|
|
||||||
/******* Servizi *******/
|
/******* Servizi *******/
|
||||||
mnp.proxy.ws.sdp.client.ServiziServizio servizioBear = new mnp.proxy.ws.sdp.client.ServiziServizio();
|
mnp.proxy.ws.sdp.client.ServiziServizio servizioBear = new mnp.proxy.ws.sdp.client.ServiziServizio();
|
||||||
servizioBear.name(GispMap.SERVIZIO_BEAR);
|
servizioBear.name(GispMap.SERVIZIO_BEAR);
|
||||||
|
|
||||||
/******* Carta *******/
|
/******* Carta *******/
|
||||||
carta.setIccId20(new String());
|
carta.setIccId20("");
|
||||||
|
|
||||||
/******* Risorse Rete *******/
|
/******* Risorse Rete *******/
|
||||||
risorseRete.setStato(new String());
|
risorseRete.setStato("");
|
||||||
risorseRete.setTipologia(new String());
|
risorseRete.setTipologia("");
|
||||||
risorseRete.setDataUltimaOperazione(new String());
|
risorseRete.setDataUltimaOperazione("");
|
||||||
|
|
||||||
/******* assegnazioni *******/
|
/******* assegnazioni *******/
|
||||||
attributi.setDettaglioStato(dettaglioStato);
|
attributi.setDettaglioStato(dettaglioStato);
|
||||||
@@ -392,7 +392,7 @@ public class RetrieveGispXAO {
|
|||||||
* @param xmlResponse String
|
* @param xmlResponse String
|
||||||
* @return String
|
* @return String
|
||||||
*/
|
*/
|
||||||
public static MnpGispRetrieveOut getRetrieveESOFromXmlResponse(String xmlResponse) throws NotValidXMLException,Exception{
|
public static MnpGispRetrieveOut getRetrieveESOFromXmlResponse(String xmlResponse) throws Exception{
|
||||||
MnpGispRetrieveOut retrieveGisp= new MnpGispRetrieveOut();
|
MnpGispRetrieveOut retrieveGisp= new MnpGispRetrieveOut();
|
||||||
try {
|
try {
|
||||||
// databinding con validazione
|
// databinding con validazione
|
||||||
|
|||||||
@@ -5,6 +5,6 @@
|
|||||||
|
|
||||||
<handler>
|
<handler>
|
||||||
<j2ee:handler-name>IBK63SOAPHandler</j2ee:handler-name>
|
<j2ee:handler-name>IBK63SOAPHandler</j2ee:handler-name>
|
||||||
<j2ee:handler-class>mnp.proxy.ws.o2c.client.IBK63SOAPHandler</j2ee:handler-class>
|
<j2ee:handler-class>mnp.proxy.ws.o2c.client.IBK63.IBK63SOAPHandler</j2ee:handler-class>
|
||||||
</handler>
|
</handler>
|
||||||
</weblogic-wsee-clientHandlerChain>
|
</weblogic-wsee-clientHandlerChain>
|
||||||
@@ -5,6 +5,6 @@
|
|||||||
|
|
||||||
<handler>
|
<handler>
|
||||||
<j2ee:handler-name>IBK65SOAPHandler</j2ee:handler-name>
|
<j2ee:handler-name>IBK65SOAPHandler</j2ee:handler-name>
|
||||||
<j2ee:handler-class>mnp.proxy.ws.o2c.client.IBK65SOAPHandler</j2ee:handler-class>
|
<j2ee:handler-class>mnp.proxy.ws.o2c.client.IBK65.IBK65SOAPHandler</j2ee:handler-class>
|
||||||
</handler>
|
</handler>
|
||||||
</weblogic-wsee-clientHandlerChain>
|
</weblogic-wsee-clientHandlerChain>
|
||||||
Reference in New Issue
Block a user