cancel
Showing results for 
Search instead for 
Did you mean: 

file to soap SYNC. evaluating the data RESPONSE

former_member373665
Participant
0 Kudos

Hi,

I'm doing a scene file to soap and i have 2 problems:

  1. So far I've got to create a file with the data back (response), but I would like to evaluate  this data and depending on the value, mark the adapter as wrong or  succcesfull. I tried to throw an exception on dividing by zero (exception.jpg), but the message is not processed. Is there any way to do this?
  2. In RWB,  I can see the messages in Adapter Engine -- Database (Overview), Does anyone know why?. (overview.jpg)

pictures attached

thanks.


Accepted Solutions (0)

Answers (2)

Answers (2)

nabendu_sen
Active Contributor
0 Kudos

Hi Mariano,

Try to raise exception from a UDF, that would be better option. Please find the below code:

try{

                 if(PERFORM the Validation)

                         throw new RuntimeException(" ");

               }catch(Exception e){

                        thow new StreamTransformationException("Your Excep",e);

              }

former_member373665
Participant
0 Kudos

thanks for your reply,

this is the code i have:

public String test(String var1, Container container) throws StreamTransformationException{

if (var1.equals("error") ) {

  throw new RuntimeException("DO NUMBER DO NOT SEND INVOICE");

}

else {

return "ok";

}

}

but I have the next problem:

when the channel sender reads a directory, if the first reading errors, the other files not processed, how could process the correct files?

thanks.

rajasekhar_reddy14
Active Contributor
0 Kudos

if you created in Sync mode then you need to activate logging configuration in SXMB_ADM to see entries in RWB.

former_member373665
Participant
0 Kudos

thanks for your reply.

i trying to find the option to enable this tuype of messages, but i have not found it,  can you tell me how to do it exactly?

Thanks.