cancel
Showing results for 
Search instead for 
Did you mean: 

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

gopalkrishna_baliga
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

This is not possible.

Regards

Stefan

Former Member
0 Kudos

any solution for above problem

Former Member
0 Kudos

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

gopalkrishna_baliga
Participant
0 Kudos

I don't have PI7.1. I am using 7.0. So I have to use java mapping.