Skip to Content

How to send response message from Java mapping class? Please help!

Hi Experts,

I have a sync scenario

-Req --> -



< Res -- <-----

The Req message contains:



<Desc>Extrenal Order</Desc>



Response message is:


<LogTxt>Qty value cannot be more than 3 chars</LogTxt>


In the XI I have to validate the input request message using a schema. For this I am writing a java mapping program using aii_map_api.jar.

My requirement is that If the input message schema validation fails then I want to send a response message back to sender.

How can I send a response message back to the sender in java mapping program?

Kindly help with sample code example.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2008 at 10:45 AM


    First, I think PI 7.1 has this functionality and perhaps it comes in a SP for PI 7.0 and XI 3.0. So first have a look at that before creating custom development.

    Second, if you use the java mapping, you will only have access to a request or response message. I would advise using a custom java module in the module processor and insert this message in the sender communication channel. This will allow you to validate request and send a response.



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2008 at 09:33 AM

    This is not possible.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.