cancel
Showing results for 
Search instead for 
Did you mean: 

how to use value of a field from Request message in response message.

former_member192181
Participant
0 Kudos

Hi All,

Iam trying to use value of a field from request message in response message in a sync  File-JDBC Scenario.

Please help me out.

Thanks,

Lalitha.

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member192181
Participant
0 Kudos

I have got udf as below for  this purpose. But I want use Standard Beans.

REQUEST MESSAGE 

  //write your code here

   //write your code here

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey keySource = DynamicConfigurationKey.create("http://axis.com/EPH","RequestValue"); 

if (conf != null) {

conf.put(keySource,Txn_Id);

}

return Txn_Id;

RESPONSE MESSAGE

  //write your code here

   //write your code here

DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey keySource = DynamicConfigurationKey.create("http://axis.com/EPH","RequestValue"); 

return conf.get(keySource);

Former Member
0 Kudos

Hi Lalitha,

Could you please let us know if you were able to configure the bean and the details please.

Thanks,

Jane

former_member192181
Participant
0 Kudos

Hi Jane,

I have tried to use beans. But I too don't know the configuration process. So I have done through java mapping.

Former Member
0 Kudos

Hi Lalitha,

Glad to see your reply. Could you please provide the java code which you have used?It will be a great help!!

Thanks,

Tina

Former Member
0 Kudos

Hi Lalitha,

I just tried the bean configuration in SOAP to RFC interface. I did the module configuration in RFC receiver adapter. I followed the same set up as its mentioned in the links provided in the above posts. I used GetPayloadValueBean and putPayloadValueBean. did not use Remove bean.And its working as expected.

In your case since its File- JDBC[Sync]-File you would need to configure the module parameters in the JDBC reciever channel. Which would put the required field value from the request into the response payload . And then you can map that accordingly further.

Thanks,

Jane

former_member192181
Participant
0 Kudos

Thanks for your reply.I know how to do a Sync scenario. But I want use Value of a field from request in response using GetPayloadValueBean and putPayloadValueBean.

Regards,

Lalitha

former_member192181
Participant
0 Kudos

Hi,

Thanks for your responses.

I have seen both the blogs,where they have mentioned how to use parameters. But not in adapter (Sender or receiver);

I have three Adapters. File Sender, JDBC Receiver and File Receiver.

Its a File to JDBC Sync Scenario.

If possiblle please provide some more info than provided in blogs.

iaki_vila
Active Contributor
0 Kudos

Hi Laitha,

You need to use an Async/Sync bridge. In this wiki you have an example of FILE-RFC-FILE, similar that your scenario (changing RFC by JDBC): File-RFC-File(Without BPM) - Process Integration - SCN Wiki

Regards.

Former Member
0 Kudos

Hi

Check this. It has step by step details

Former Member
0 Kudos