diff --git a/gnpdev/build/build.xml b/gnpdev/build/build.xml
index 2c5fb90b..5ff3ece3 100644
--- a/gnpdev/build/build.xml
+++ b/gnpdev/build/build.xml
@@ -59,7 +59,7 @@
-
+
@@ -94,7 +94,6 @@
-
@@ -168,7 +167,7 @@
-
+
@@ -228,8 +227,6 @@
-
-
@@ -309,11 +306,20 @@
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -556,7 +562,7 @@
-
+
@@ -773,7 +779,7 @@ Se ne e' gia' stata fatta una personalizzazione verra' persa
-
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1988,31 +2025,6 @@ Se ne e' gia' stata fatta una personalizzazione verra' persa
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gnpdev/build/build_NOW_EsitoVerificaCodiceSessioneFase2.cmd b/gnpdev/build/build_NOW_EsitoVerificaCodiceSessioneFase2.cmd
new file mode 100644
index 00000000..24ff7ae0
--- /dev/null
+++ b/gnpdev/build/build_NOW_EsitoVerificaCodiceSessioneFase2.cmd
@@ -0,0 +1,8 @@
+@set ANT_HOME=apache-ant-1.9.2
+@set JAVA_HOME=C:/Program Files/Java/jdk1.6.0_45
+@set PATH=%ANT_HOME%/bin;%JAVA_HOME%/bin
+@set ANT_OPTS=-Xms512m -Xmx512m
+
+@call ant -buildfile build.xml jar_dbcfx_now_esitoverificacodicesessionefase2_ws_client
+
+@pause
diff --git a/gnpdev/dbcfx/ear/res/APP-INF/lib/WSNOWEsitoVerificheCodSessioneCommon.jar b/gnpdev/dbcfx/ear/res/APP-INF/lib/WSNOWEsitoVerificheCodSessioneCommon.jar
deleted file mode 100644
index 797a38a8..00000000
Binary files a/gnpdev/dbcfx/ear/res/APP-INF/lib/WSNOWEsitoVerificheCodSessioneCommon.jar and /dev/null differ
diff --git a/gnpdev/dbcfx/ear/res/APP-INF/lib/dbcfx-now-esitoverificacodicesessionefase2-ws-client.jar b/gnpdev/dbcfx/ear/res/APP-INF/lib/dbcfx-now-esitoverificacodicesessionefase2-ws-client.jar
new file mode 100644
index 00000000..d3c45b87
Binary files /dev/null and b/gnpdev/dbcfx/ear/res/APP-INF/lib/dbcfx-now-esitoverificacodicesessionefase2-ws-client.jar differ
diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/now/NowController.java b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/now/NowController.java
index f60c93a1..a834589b 100644
--- a/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/now/NowController.java
+++ b/gnpdev/dbcfx/src/it/valueteam/gnp/systemcontroller/formatcontroller/now/NowController.java
@@ -1,6 +1,6 @@
package it.valueteam.gnp.systemcontroller.formatcontroller.now;
-import java.rmi.RemoteException;
+
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
@@ -11,7 +11,6 @@ import java.util.List;
import javax.transaction.UserTransaction;
import javax.xml.bind.JAXBElement;
import javax.xml.namespace.QName;
-import javax.xml.rpc.Stub;
import com.tim.now.xsd.now_esitoverificacodicesessione.Enum_CheckSessione_ESITO;
import com.tim.now.xsd.now_esitoverificacodicesessione.EsitoVerificaCodiceSessione;
@@ -21,11 +20,9 @@ import it.telecomitalia.soa.soap.soapheader.InteractionDateType;
import it.valueteam.gnp.dao.db.hb.*;
import it.valueteam.gnp.manager.RequestManagerDonor82;
import it.valueteam.gnp.systemcontroller.dbcfxgo.DbcfxgoController;
+
import it.valueteam.gnp.utility.DateUtils;
-import it.valueteam.gnp.utility.Resources;
-import it.valueteam.gnp.ws.now.EsitoVerificaCodiceSessione_PortType;
-import it.valueteam.gnp.ws.now.EsitoVerificaCodiceSessione_PortType_Stub;
-import it.valueteam.gnp.ws.now.EsitoVerificaCodiceSessione_Service_Impl;
+import it.valueteam.gnp.ws.now.esitoverificacodicesessionefase2.EsitoVerificaCodiceSessioneFase2NowClient;
import org.hibernate.Hibernate;
import org.hibernate.criterion.Restrictions;
import org.hibernate.criterion.SimpleExpression;
@@ -394,6 +391,7 @@ public class NowController extends SystemController {
gnpNowDonorOut.setEsito("KO");
gnpNowDonorOut.setCodiceMotivazione("Y19");
gnpNowDonorOut.setMotivazione("Codice Sessione Inesistente");
+ gnpNowDonorOut.setDataNotifica(new Date());
}
GnpNowD82RichiesteOutDAO nowD82RichiesteOutDAO = new GnpNowD82RichiesteOutDAO();
@@ -403,7 +401,6 @@ public class NowController extends SystemController {
inserisciNotificaInCoda(message);
log.write("9999", "INSERITO SULLA CODA MESSAGEQUEUENOWOUT:" + uniqueIdNowDonorOut);
-
} catch (Exception ex) {
log.error(ex, "verificaValiditaSessioneD82");
throw ex;
@@ -924,7 +921,9 @@ public class NowController extends SystemController {
log.write("9999", "elaboraNowDonorOut per :[" + nowDonorOut.getUniqueId() + "]");
com.tim.now.xsd.now_esitoverificacodicesessione.Request request = new com.tim.now.xsd.now_esitoverificacodicesessione.Request();
+ EsitoVerificaCodiceSessioneFase2NowClient nowClient = new EsitoVerificaCodiceSessioneFase2NowClient();
EsitoVerificaCodiceSessione esito = new EsitoVerificaCodiceSessione();
+
esito.setCODICE_ORDINE_WHS(nowDonorOut.getCodiceOrdineWhs());
esito.setCODICE_MOTIVAZIONE(nowDonorOut.getCodiceMotivazione());
esito.setMOTIVAZIONE(nowDonorOut.getMotivazione());
@@ -934,33 +933,25 @@ public class NowController extends SystemController {
request.setEsitoVerificaCodiceSessione(esito);
- EsitoVerificaCodiceSessione_Service_Impl service = new EsitoVerificaCodiceSessione_Service_Impl();
- EsitoVerificaCodiceSessione_PortType endPoint;
- endPoint = service.getEsitoVerificaCodiceSessioneSOAP();
- String timeOutStr = (String) Resources.getTIMEOUT_WS_NOW_ESITO_VERIFICA_CS();
- ((EsitoVerificaCodiceSessione_PortType_Stub) endPoint)._setProperty("javax.xml.rpc.service.endpoint.address", Resources.getURL_WS_NOW_ESITO_VERIFICA_CS());
- ((EsitoVerificaCodiceSessione_PortType_Stub) endPoint)._setProperty("weblogic.wsee.transport.connection.timeout", Integer.parseInt(timeOutStr));
-
- HeaderTypeHolder headerTypeHolder = new HeaderTypeHolder();
-
HeaderType header = new HeaderType();
Date date = new Date();
+ header.setSourceSystem("DBCFX");
InteractionDateType dateType = new InteractionDateType();
dateType.setDate(new SimpleDateFormat("yyyy-MM-dd").format(date));
dateType.setTime(new SimpleDateFormat("HH:mm:ss").format(date));
header.setInteractionDate(dateType);
- header.setSourceSystem("DBCFX");
- header.setTransactionID(new TID().toString());
- header.setBusinessID(new TID().toString());
+ String businessId = new TID().toString();
+ header.setBusinessID(businessId);
header.setMessageID(new TID().toString());
- headerTypeHolder.value = header;
+ header.setTransactionID(new TID().toString());
try {
if ("KO".equals(nowDonorOut.getEsito())) {
- Response response = endPoint.invoke(request, headerTypeHolder);
- log.write("9999", "Risposta OK da now, ID_NOTIFICA: " + response.getID_NOTIFICA());
+ log.write("9999", "Chiamata verso Now EsitoVerificaCodiceSessione ws - businessId: " + businessId);
+ Response response = nowClient.invoke(request, header);
+ log.write("9999", "Risposta EsitoVerificaCodiceSessione ws OK da Now, businessId: " + businessId + " ID_NOTIFICA: " + response.getID_NOTIFICA());
} else {
- log.write("9999", "ESITO VERIFICHE DBCFX OK da now, NON INVIO ESITO A NOW PER ID_NOTIFICA: " + nowDonorOut.getIdNotifica());
+ log.write("9999", "ESITO VERIFICHE DBCFX OK, NON INVIO ESITO A NOW PER ID_NOTIFICA: " + nowDonorOut.getIdNotifica());
}
} catch (Exception e) {
log.write("9999", "RICHIESTA DONOR OUT con UNIQUE_ID " + nowDonorOut.getUniqueId() + " ANDATA IN ERRORE VERSO NOW: " + e.getMessage());
diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneFase2NowClient.java b/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneFase2NowClient.java
new file mode 100644
index 00000000..bcb52405
--- /dev/null
+++ b/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneFase2NowClient.java
@@ -0,0 +1,226 @@
+package it.valueteam.gnp.ws.now.esitoverificacodicesessionefase2;
+
+import com.tim.now.xsd.now_esitoverificacodicesessione.Enum_Response_ESITO;
+import com.tim.now.xsd.now_esitoverificacodicesessione.Request;
+import com.tim.now.xsd.now_esitoverificacodicesessione.Response;
+
+import it.telecomitalia.soa.soap.soapheader.HeaderType;
+import it.valueteam.gnp.log.Loggable;
+import it.valueteam.gnp.log.ProcessLogger;
+import it.valueteam.gnp.obj.LogInfo;
+import it.valueteam.gnp.obj.LogProcess;
+import it.valueteam.gnp.utility.Func;
+import it.valueteam.gnp.utility.Resources;
+import it.valueteam.gnp.ws.utlities.WSUtils;
+import org.apache.http.Header;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
+import org.apache.http.entity.StringEntity;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClients;
+import org.apache.http.message.BasicHeader;
+
+import javax.ejb.CreateException;
+import javax.net.ssl.SSLContext;
+import javax.xml.soap.*;
+import java.io.BufferedReader;
+import java.io.ByteArrayOutputStream;
+import java.io.InputStreamReader;
+import java.util.concurrent.TimeUnit;
+
+public class EsitoVerificaCodiceSessioneFase2NowClient implements Loggable {
+
+ private String url;
+ private int timeOut;
+ private static final int defaultTimeOut = 30000;
+
+ protected ProcessLogger log;
+
+ protected String codiceProcesso = "SH"; // come da GNP_ANAGRAFICA_PROCESSO
+
+ protected String versione = "1.0.0.0";
+
+ public EsitoVerificaCodiceSessioneFase2NowClient() throws Exception {
+ try {
+ LogProcess logProcess = new LogProcess();
+ logProcess.setCodice(codiceProcesso);
+ logProcess.setProcess(this);
+ log = new ProcessLogger(logProcess);
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ System.out.println("Errore nella creazione del ProcessLogger, classe:" + EsitoVerificaCodiceSessioneFase2NowClient.class + " - " + ex.toString());
+ throw new CreateException();
+ }
+ log.write("0001", " versione " + versione);
+
+ url = Resources.getURL_WS_NOW_ESITO_VERIFICA_CS();
+
+ if ("".equals(url)) {
+ log.write("0003", "");
+ throw new Exception("Errore in creazione client - impossibile recuperare url del ws da properties");
+ }
+
+ String timeOutStr = Resources.getTIMEOUT_WS_NOW_ESITO_VERIFICA_CS();
+ log.write("9999", " now client - url: " + url + " - timeOut: " + timeOutStr);
+
+ try {
+ timeOut = Integer.parseInt(timeOutStr);
+ } catch (NumberFormatException nfe) {
+ log.write("9999", " impossibile recuperare property timeout - impostato valore di default: " + defaultTimeOut);
+ timeOut = defaultTimeOut;
+ }
+ }
+
+ public Response invoke(Request request, HeaderType header) throws Exception{
+ log.write("9999", "EsitoVerificaCodiceSessione - soapAction='Invoke' start");
+
+ CloseableHttpClient client = null;
+ CloseableHttpResponse response = null;
+ StringBuilder req = new StringBuilder();
+ StringBuilder resp = new StringBuilder();
+ String bid = header.getBusinessID();
+
+ try {
+ SSLContext sslContext = WSUtils.createSSLContext("SSL");
+ if(sslContext != null) {
+ SSLConnectionSocketFactory scf = WSUtils.createSSLConnectionSocketFactory(sslContext,
+ Resources.NOW_SUPPORTED_PROTOCOLS(), Resources.NOW_SUPPORTED_CIPHER_SUITES());
+ client = HttpClients.custom().useSystemProperties().setSSLSocketFactory(scf).setConnectionTimeToLive(timeOut,
+ TimeUnit.MILLISECONDS).build();
+ } else {
+ client = HttpClients.custom().useSystemProperties().setConnectionTimeToLive(timeOut, TimeUnit.MILLISECONDS).build();
+ }
+
+ HttpPost httpPost = new HttpPost(url);
+
+ // Set Header HTTP Post
+ Header[] headers = new BasicHeader[2];
+ headers[0] = new BasicHeader("Content-Type", "text/xml; charset=UTF-8");
+ headers[1] = new BasicHeader("SOAPAction", "Invoke");
+ httpPost.setHeaders(headers);
+
+ // Set SOAPBody HTTP Post
+ StringEntity lEntity = new StringEntity(createHttpRequest(header, request));
+ httpPost.setEntity(lEntity);
+
+ // Loggata request EsitoVerificaCodiceSessione inviata a Now
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Inizio Log Request");
+ BufferedReader requestReader = new BufferedReader(new InputStreamReader(lEntity.getContent()));
+ String lineReq;
+ while ((lineReq = requestReader.readLine()) != null) {
+ req.append(lineReq).append('\n');
+ }
+ log.write("9999", "businessId: " + bid + " - " + req.toString());
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Fine Log Request");
+
+ response = client.execute(httpPost);
+
+ BufferedReader rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
+ String line;
+ while ((line = rd.readLine()) != null) {
+ resp.append(line).append('\n');
+ }
+
+ if (response.getStatusLine().getStatusCode() != 200) {
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Inizio Log Error");
+ log.write("9999", "businessId: " + bid + " - " + resp.toString());
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Fine Log Error");
+ throw new Exception(header.getTransactionID() + " - Soap fault exception");
+ }
+
+ // Loggata response EsitoVerificaCodiceSessione ricevuta da Now
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Inizio Log Response");
+ log.write("9999", "businessId: " + bid + " - " + resp.toString());
+ log.write("9999", "businessId: " + bid + " - [EsitoVerificaCodiceSessione] - Fine Log Response");
+ Response ack = getRispostaFromHttp(resp.toString());
+ log.write("9999", "EsitoVerificaCodiceSessione - soapAction='Invoke' end");
+ return ack;
+ } catch (Exception e) {
+ log.write("0003", "businessId: " + bid + " - Eccezione durante l'invocazione del ws [EsitoVerificaCodiceSessione.Invoke]: " + e);
+ throw e;
+ } finally {
+ try {
+ if (client != null) {
+ client.close();
+ }
+ if (response != null) {
+ response.close();
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ private String createHttpRequest(HeaderType header, Request request) throws Exception {
+ MessageFactory messageFactory = MessageFactory.newInstance();
+ SOAPMessage soapMessage = messageFactory.createMessage();
+ SOAPPart soapPart = soapMessage.getSOAPPart();
+ String serverURI = "http://telecomitalia.it/SOA/SOAP/SOAPHeader";
+ String serverURI2 = "http://www.tim.com/NOW/xsd/NOW_EsitoVerificaCodiceSessione/";
+ SOAPEnvelope envelope = soapPart.getEnvelope();
+ // SOAPHeader soapHeader = envelope.getHeader();
+
+ SOAPBody soapBody = envelope.getBody();
+
+ SOAPBodyElement hElement = soapBody.addBodyElement(envelope.createName("Header", "soap", serverURI));
+ hElement.addChildElement("sourceSystem", "soap").addTextNode(header.getSourceSystem());
+ SOAPElement interactionDate = hElement.addChildElement("interactionDate", "soap");
+ interactionDate.addChildElement("Date", "soap").addTextNode(header.getInteractionDate().getDate());
+ interactionDate.addChildElement("Time", "soap").addTextNode(header.getInteractionDate().getTime());
+ hElement.addChildElement("businessID", "soap").addTextNode(header.getBusinessID());
+ hElement.addChildElement("messageID", "soap").addTextNode(header.getMessageID());
+ hElement.addChildElement("transactionID", "soap").addTextNode(header.getTransactionID());
+
+ SOAPBodyElement element = soapBody.addBodyElement(envelope.createName("Request", "now", serverURI2));
+ SOAPElement elementEsito = element.addChildElement("EsitoVerificaCodiceSessione", "now");
+ elementEsito.addChildElement("CODICE_ORDINE_WHS", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getCODICE_ORDINE_WHS());
+ elementEsito.addChildElement("ID_NOTIFICA", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getID_NOTIFICA());
+ if(!Func.isNull(request.getEsitoVerificaCodiceSessione().getDATA_NOTIFICA()))
+ elementEsito.addChildElement("DATA_NOTIFICA", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getDATA_NOTIFICA());
+ elementEsito.addChildElement("ESITO", "now").addTextNode(String.valueOf(request.getEsitoVerificaCodiceSessione().getESITO()));
+ elementEsito.addChildElement("CODICE_MOTIVAZIONE", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getCODICE_MOTIVAZIONE());
+ elementEsito.addChildElement("MOTIVAZIONE", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getMOTIVAZIONE());
+ if(!Func.isNull(request.getEsitoVerificaCodiceSessione().getNOTE()))
+ elementEsito.addChildElement("NOTE", "now").addTextNode(request.getEsitoVerificaCodiceSessione().getNOTE());
+
+ soapMessage.saveChanges();
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ soapMessage.writeTo(baos);
+ return baos.toString();
+ }
+
+ private Response getRispostaFromHttp(String risposta) throws Exception {
+ SOAPBody soapBody = WSUtils.getSOAPBody(risposta);
+ Response ack = new Response();
+ org.w3c.dom.Node nMaster = soapBody.getChildNodes().item(0);
+ if(nMaster != null) {
+ org.w3c.dom.Node n = WSUtils.getChildByName(nMaster, "ID_NOTIFICA");
+ if (n != null) {
+ ack.setID_NOTIFICA(n.getFirstChild().getNodeValue());
+ }
+ n = WSUtils.getChildByName(nMaster, "ESITO");
+ if (n != null) {
+ ack.setESITO(Enum_Response_ESITO.fromValue(n.getFirstChild().getNodeValue()));
+ }
+ }
+ return ack;
+ }
+
+ /**
+ * Implements method in Loggable public Interface
+ * @return
+ * @throws Exception
+ */
+ public LogInfo getLogInfo() throws Exception {
+ LogInfo logInfo = new LogInfo();
+ logInfo.setProcess(getClass().getName());
+ logInfo.setLogPath(Resources.getLogPath());
+ logInfo.setTypeInfo(Resources.getTypeInfo());
+ logInfo.setTypeDebug(Resources.getTypeDebug());
+ logInfo.setTypeError(Resources.getTypeError());
+ return logInfo;
+ }
+
+}
\ No newline at end of file
diff --git a/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneSOAPHandler.java b/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneSOAPHandler.java
new file mode 100644
index 00000000..fc2e6506
--- /dev/null
+++ b/gnpdev/dbcfx/src/it/valueteam/gnp/ws/now/esitoverificacodicesessionefase2/EsitoVerificaCodiceSessioneSOAPHandler.java
@@ -0,0 +1,81 @@
+package it.valueteam.gnp.ws.now.esitoverificacodicesessionefase2;
+
+import it.valueteam.gnp.log.Loggable;
+import it.valueteam.gnp.log.ProcessLogger;
+import it.valueteam.gnp.obj.LogProcess;
+import it.valueteam.gnp.systemcontroller.formatcontroller.crm.WSSOAPHandler;
+
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+import javax.xml.soap.SOAPHeader;
+import javax.xml.soap.SOAPMessage;
+import java.io.ByteArrayOutputStream;
+
+public class EsitoVerificaCodiceSessioneSOAPHandler extends WSSOAPHandler implements Loggable {
+
+ protected ProcessLogger log;
+
+ public EsitoVerificaCodiceSessioneSOAPHandler() throws Exception {
+ LogProcess logProcess = new LogProcess();
+ logProcess.setCodice(codiceProcesso);
+ logProcess.setProcess(this);
+ log = new ProcessLogger(logProcess);
+ }
+
+ public boolean handleRequest(MessageContext context) {
+ SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+
+ try {
+ SOAPMessage message = soapMsgCtx.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ String bid = getBid(header);
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Inizio Log Request");
+ soapMsgCtx.getMessage().writeTo(baos);
+ log.write("9999",baos.toString());
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Fine Log Request");
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ return false;
+ }
+ return true;
+ }
+
+ public boolean handleResponse(MessageContext context) {
+ SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+
+ try {
+ SOAPHeader header = ((SOAPMessageContext) context).getMessage().getSOAPHeader();
+ String bid = getBid(header);
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Inizio Log Response");
+ soapMsgCtx.getMessage().writeTo(baos);
+ log.write("9999",bid + " - "+baos.toString());
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Fine Log Response");
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ return false;
+ }
+ return true;
+ }
+
+ public boolean handleFault(MessageContext context) {
+ SOAPMessageContext soapMsgCtx = (SOAPMessageContext) context;
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+
+ try {
+ SOAPMessage message = soapMsgCtx.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ String bid = getBid(header);
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Inizio Log Error");
+ soapMsgCtx.getMessage().writeTo(baos);
+ log.write("9999",bid + " - "+baos.toString());
+ log.write("9999",bid + " - [EsitoVerificaCodiceSessioneSOAPHandler] - Fine Log Error");
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ return false;
+ }
+ return true;
+ }
+
+}
diff --git a/gnpdev/wsdbcfx/wsdl/now/NOWEsitoVerificaCodiceSessione_concrete.wsdl b/gnpdev/wsdbcfx/wsdl/now/esitoverificacodicesessionefase2/client/NOWEsitoVerificaCodiceSessione_concrete.wsdl
similarity index 100%
rename from gnpdev/wsdbcfx/wsdl/now/NOWEsitoVerificaCodiceSessione_concrete.wsdl
rename to gnpdev/wsdbcfx/wsdl/now/esitoverificacodicesessionefase2/client/NOWEsitoVerificaCodiceSessione_concrete.wsdl
diff --git a/gnpdev/wsdbcfx/wsdl/now/esitoverificacodicesessionefase2/client/handler.config.xml b/gnpdev/wsdbcfx/wsdl/now/esitoverificacodicesessionefase2/client/handler.config.xml
new file mode 100644
index 00000000..354c1786
--- /dev/null
+++ b/gnpdev/wsdbcfx/wsdl/now/esitoverificacodicesessionefase2/client/handler.config.xml
@@ -0,0 +1,9 @@
+
+
+ EsitoVerificaCodiceSessioneSOAPHandler
+ it.valueteam.gnp.ws.now.esitoverificacodicesessionefase2.EsitoVerificaCodiceSessioneSOAPHandler
+
+
\ No newline at end of file