Posted: Fri Jul 19, 2002 6:05 am Post subject: Fields Validation
Newbie
Joined: 25 Jun 2002 Posts: 6 Location: Lisboa
Hello everybody.
I receive a message in a xml format and i make a parsing to a format like this
data1/data2/..../datan
i have some fields that i don´t want to appear in the message if they don´t pass a validation.
for example, my validation is :
if InputRoot.XML."SOAP-ENV:Envelope"."SOAP-
ENV:Body"."ns1:Execute".evento.envelope.indicador_anulacao = '1' then
if this validation is passed then this fields should appear:
SET "OutputRoot"."MRM"."MSG_IN_ANULACAO"."MSG_IN_EV_ANL_COMPR" = length(InputRoot.XML."SOAP-ENV:Envelope"."SOAP-ENV:Body"."ns1:Execute".evento.anulacao.aplicacao_origem) +
length(InputRoot.XML."SOAP-ENV:Envelope"."SOAP-ENV:Body"."ns1:Execute".evento.anulacao.referencia_origem) + 3;
SET "OutputRoot"."MRM"."MSG_IN_ANULACAO"."MSG_IN_EV_ANL_APLIC_ORIG" = Substring(InputRoot.XML."SOAP-ENV:Envelope"."SOAP-ENV:Body"."ns1:Execute".evento.anulacao.aplicacao_origem from 1 for 2);
SET "OutputRoot"."MRM"."MSG_IN_ANULACAO"."MSG_IN_EV_ANL_REF_ORIG" = Substring(InputRoot.XML."SOAP-ENV:Envelope"."SOAP-ENV:Body"."ns1:Execute".evento.anulacao.referencia_origem from 1 for 4;
end if;
The problem is that the validation is well done but the fields still appear in the message.
Does anyone knows why this happen or what must i have to do?
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
Luis,
Could you post sample input message and the ESQL code in your compute node? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum