Neuron ESB User Network

The Service Bus for the Connected Business

Hello everyone.

I am using a service endpoint process step to invoke a third party SOAP web service.

In case a functional error occurs (ex. it is not possible to execute the given operation when an order is in state committed) the service replies with a SoapFault exception.

This causes the error to be logged in the Event Log, even though there's no action required from the user and I would like to ignore the error.

Is there anything I could do differently or configure in order to prevent the error from being logged ?

Thank you

Fabrizio

Views: 211

Reply to This

Replies to This Discussion

Which build are you on?  Any build newer than 3.5.4.883 has a feature on the Service Endpoint step called "Throw Exception on Fault".  If you check this box, and put the service endpoint step inside the Try block of the Exception step, you should be able to catch it without the exception appearing in the event log.

Hi Joe,

I'm running .885 in production and .1017, on DEV, so I should experience the same on both environment.

I just tried again on DEV, "cleaning" the catch block and leaving just a cancel.

As a result I got one message audited as failed and 4 event in the event log (3 ClientConnector and 1 Message Audit Service) as attached.

The scenario is that the third party service is designed to return a SoapFault even when a "functional" error occurs. It includes an error code and I would like to filter on that code, some of the errors can be ignored and I don't want them to be logged in the event log.

Do you see any other possible solution?

Fabrizio

Attachments:

You have to make sure you do a few things here:

1. The Service Endpoint step is in the Try block of an Exception step

2. Make sure the "Throw Exception on Fault" property of the Service Endpoint Step is set to true

3. You have a Cancel step in the Finally block

4. For the faults that you do not want to appear in the event viewer, you need have this line of code in a C# step inside the Cancel block:

context.Data.Header.FaultType = FaultType.None

if you don't do this, then the client connector will see that the reply is a fault and that is the cause of the failed message and the four errors in the event log.  When the above line of code is added, the SOAP Fault is just passed back to the caller (or whatever you want to send back).

Make sense?

Joe

Thanks Joe, now it's more clear.

I have implemented your solution and it works correctly.

Thanks

RSS

Neuron ESB Product Support Forums and Communities

Latest Activity

Anupama Nair posted a discussion

Marketo Adapter Invalid Token

Hi,We are using the Marketo adapter to push account updates to Marketo. It works well for some time then starts failing with Invalid Token unless restarted. Is there a configuration that can be done so it can auto refresh the token when required?Thanks!See More
Nov 6, 2023
Sayantini Basak posted a discussion

Maximum payload size(REST API) for requests interfacing to NeuronESB

I am new to Neuron ESB and in our current scenario,We need to process batch transactions comprising of ~1000 records and send them to Neuron ESB for further processing. I would like to understand what is the maximum size of payload that can be transferred using REST interface to Neuron ESB.See More
Jul 22, 2022
Profile IconRobert E Dunie and Sayantini Basak joined Neuron ESB User Network
Apr 28, 2022
Profile IconDayanand, Frederic C, Steffen Greve-Oksfeldt and 1 more joined Neuron ESB User Network
Mar 16, 2022
Profile IconCam Vong and Mitja Luznar joined Neuron ESB User Network
Jan 27, 2022
Profile IconWill Hitzges, Chad Parsons, michael larsen and 4 more joined Neuron ESB User Network
Jun 11, 2021
Anupama Nair posted a discussion

ODBC stored proc polling with temporary tables

We have set up an ODBC adapter to poll a stored proc.We found that if the stored proc has a temporary table defined the rows returned are always 0.Any idea why this would be and what we can do to get around it?See More
Dec 14, 2020
Prasanth Kharade is now a member of Neuron ESB User Network
Dec 30, 2019

Badge

Loading…

© 2024   Created by Neuron Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service