Skip to Content

Insert value from Request message to Response message using GetPayloadValueBean

Hi Experts,

I have configured the module in Receiver soap channel. while i’m executing it's throwing error like "GetPayloadValueBean: Value cannot be null:" not able to find the exact functionality of the module “GetPayloadValueBean and PutPayload value bean”.

My scenario is like (file-soap-file) using Sync and Async bridge its works fine. In same scenario i want to use "GetPayloadValueBean".

Soap Receiver Channel:

In parameters value i tried with test double quotes also "test"

Error log:

I have used the below blog and created a scenario in 7.5 single stack

https://blogs.sap.com/2013/03/20/insert-value-from-request-message-to-response-using-getpayloadvaluebean-and-putpayloadvaluebean/

Please help me if there is any configuration changes.

Thanks and Regards,

Md.Thouheed

1.png (24.7 kB)
2.png (53.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Aug 31, 2017 at 04:39 PM
    -1

    Please follow what Raghuraman and Manoj suggested.

    Additionally, you need to mention requestresponsebean and responseonewaybean in sender CC not in receiver CC.

    Thanks and Regards,

    Apu

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2017 at 02:49 PM

    Check if the XML is having value and also try removing parameter value for remove parameter.

    Please share the sample XML if possible.

    Add comment
    10|10000 characters needed characters exceeded

    • I'm not sure about PI processing behavour, but it seems to me that namespace prefix in XPath just should match the prefix in xmlns definition.

      But Manoj is right. Try to use the same prefix as used in your actual XML payload.

      Regards, Evgeniy.

  • Sep 01, 2017 at 09:05 AM

    I just tried with Below XMl and it works fine for me , so i am suspecting either you are providing the wrong xml or the node is not there in the XML.

    And also try to use a different module key for each module in your case , you are using "Payload" for all three module so try to use a unique module key for each one of them

    When i delete the node in XML

    Module Config:

    XML which i tested:

    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_req xmlns:ns0="http://file2soapsync">
    <Currency_ip>
    <Req_No>1</Req_No>
    <FromCurrency>INR</FromCurrency>
    <ToCurrency>EUR</ToCurrency>
    </Currency_ip>
    </ns0:mt_req>
    
    Add comment
    10|10000 characters needed characters exceeded

  • Aug 31, 2017 at 04:15 PM

    Hi Mohammad,

    Check if you have any value in the XML for that particular field ?

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 21 at 04:44 PM

    Hi Mohmmad,

    you can use get://Req_No instead of get:/ns0:mt_req/Currency_ip/Req_No, it should work.

    I have problem with PutPayloadValueBean, did you complete the scenario?

    br

    Domenico

    Add comment
    10|10000 characters needed characters exceeded