Skip to Content

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

Hi Experts,

I have a sync scenario

-Req --> -


>

SOAP XI RFC

< Res -- <-----

The Req message contains:

<Order>

<Orderid>100</Orderid>

<Desc>Extrenal Order</Desc>

<Qty>2500</Qty>

</Order>

Response message is:

<Log>

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

</Log>

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.

Thanks

Gopal

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Feb 26, 2008 at 10:45 AM

    Hi,

    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.

    Regards,

    Yaghya

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 28, 2008 at 09:33 AM

    This is not possible.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded