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 9077713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T19:26:24+00:00 2026-06-16T19:26:24+00:00

Ashish here again. I have developed a route which parses incoming SOAP request and

  • 0

Ashish here again.

I have developed a route which parses incoming SOAP request and logs some of information from the request.
I used headers and XPATH for fetching information from SOAP service request. The route successfully parse and logs appropriate information.

The route is as follows:

 <route streamCache="true">

        <from uri="<some URI>"/>  

        <setHeader headerName="SOAPAction">
            <constant>http://www.something.com/constant>
        </setHeader>

         <setHeader headerName="actionId">
            <xpath resultType="java.lang.String">//ws:actionId/text()</xpath>
          </setHeader>


    <choice>

            <when>
                <xpath>//ws:actionId = '1'</xpath>
                <to ref="callService" />                   
            </when>

            <otherwise>

                <log message="Wrong Action ID : ${in.headers.actionId}" 
                          loggingLevel="ERROR"/>                  

            </otherwise>   

        </choice>

    </route>

As per logic the route must redirect to callService URI if actionId is 1, otherwise it should log wrong action Id without any response.

The logic works if actionId is 1, it redirects to callService and sends appropriate response to caller. If actionId is other than 1, it writes the log about wrong action Id with action Id but it sends the same request as response to the caller.

I checked it using soapUI and Java Socket Programming.But output is same, logs the actionId accurately but sends the same request as response to the caller.

I don’t want same request as response. Response must be blank.

Can anybody help me to find the solution.

Regards,

Ashish

  • 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-16T19:26:25+00:00Added an answer on June 16, 2026 at 7:26 pm

    You need to set the response to empty or what empty means for you in that situation as well.
    And the response needs to fit the WSDL contract what the response can be.

    So in the otherwise add code to set the empty response
    For example something a like:

    <otherwise>
        ...
        <transform>
          <constant>NO DATA</constant>
        </transform>
     </constant>
    

    Though also mind if you use camel-cxf then the dataFormat option can affect how an empty response should be created.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have developed a messaging application in j2me which adds text message, gets pictures
Ok, I know I am missing something here. I have the following operation contract:
All, I have the following Package Description: CREATE OR REPLACE PACKAGE ashish.PKG_Customer AUTHID CURRENT_USER
I am writing the below queries in oracle: DBMS_OUTPUT.....'Ashish' Select col1 into val1 from
I have the below script from a user. When ran on perl 5.8.4 and
I am Ashish from Mumbai and very new to Apache Camel. Currently I am
I have this code say: std::string str(ashish); str.append(\0\0); printf(%d, str.length()); It is printing 6
I have a request URL i need to parse that URL and have to
I have one login form like : Username: Ashish Password: Pass Contact no: 1234567890
Adding on one more query extending from here Detecting language of email body :

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.