Skip to Content

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Apr 25, 2014 at 12:09 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 25, 2014 at 12:04 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Apr 25, 2014 at 12:14 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2014 at 04:52 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 26, 2014 at 06:12 AM

    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);

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Lalitha Devi Chintalapati

      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