Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8042975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:45:45+00:00 2026-06-05T04:45:45+00:00

I have 2 custom actions exectuting one after the other in the same service

  • 0

I have 2 custom actions exectuting one after the other in the same service like this

<actions mep="RequestResponse">
    <action name="ActionA" class="ClassA"/>
    <action name="ActionB" class="ClassB"/>
</actions>

Suppose that ActionA does some validations over the received msg. If the validations found that the msg is invalid, how does you send a response to the invoker about that failure?

Right now in my actions I set the response in the message at ActionA and put a mark in it indicating that I found an error in ActionA and ActionB checks for that mark before executing its code. I found this method useful but a burden because all of my actions have to start with:

if (!markIspressent) {
    //Code goes here
}
return message.

I have tried setting the response msg at ActionA and returning null to stop the pipeline but that isn’t working. I also tried another method that I found of throwing an ActionProcessingFaultException(message,"SomeTextGoesInHere") but that also isn’t working.
My main problem with this second one is that the ESB tries to reprocess the msg that thrown that exception and I don’t see the response that I set into message until the ESB gives up and sends it back. But that giving up takes up to 60s.

So my question is how can you send a response msg to the invoker before reaching up the end of the service pipeline.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:45:47+00:00Added an answer on June 5, 2026 at 4:45 am

    The options in finishing earlier the pipeline are:
    – return null;
    – split the service into three (note service 1 is OneWay and based on your action’s results routes to the appropriate service)
    Service 1

    <actions mep="OneWay">
        <action name="ActionA" class="ClassA"/>
        <action name="ActionA1" class="RouteBasedOnMsgContentTo(Service 2 or Service 3)"/>
    </actions>
    

    Service 2

    <actions mep="RequestResponse">
        <action name="ActionB" class="ClassB"/>
    </actions>
    

    Service 3

    <actions mep="RequestResponse">
        <action name="ActionC" class="ClassC-SimplyRespondsTheProblem"/>
    </actions>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one custom action (add) and two custom objects (favorites list) and (tv
In my WiX projects I have two custom actions, in the same DLL. Both
I have a Windows installer project which includes a custom action. This custom action
I have sevevral custom actions as part of an MSI project, defined in vS2008.
I have added a custom action to the CustomList type. For testing purposes I
I have a basic WIX custom action: UINT __stdcall MyCustomAction(MSIHANDLE hInstaller) { DWORD dwSize=0;
I have managed to create a custom action in C# using MakeSfxCA which is
I have a custom validation attribute derived from action filter attribute. Currently the attribute
I have two custom ActionFilters on an action. In first of the actionfilters, I
Projects have many tasks and a task has a custom RESTful action called 'approve'.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.