cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Insert value from Request message to Response message using GetPayloadValueBean

Former Member
0 Likes
4,325

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-getpayloadvalue...

Please help me if there is any configuration changes.

Thanks and Regards,

Md.Thouheed

View Entire Topic
Former Member
0 Likes

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

Please share the sample XML if possible.

Former Member
0 Likes

Hi Raghuraman,

Sample XML payload:

<?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>

manoj_khavatkopp
Active Contributor
0 Likes

Mohammad,

The xmlns parameter value is wrong which does not match with your xml you should have it as :

Parameter Name : xmlns

Parameter Value : xmlns:ns0="http://file2soapsync";

Br,

Manoj

Former Member
0 Likes

Hi Manoj,

Thanks for replying, but still its throwing error like MP: exception caught with cause com.sap.aii.af.lib.mp.module.ModuleException: GetPayloadValueBean: Value cannot be null: /p1:mt_req/Currency_ip/Req_No

I'm not getting any idea in parameter value which value i can pass there,now i'm passing "test" is it correct?

Thanks and Regards,

Md.Thouheed

manoj_khavatkopp
Active Contributor
0 Likes

Can you please give the exact xml after your mapping because in the earlier reply i see you have ns0 as prefix and now i see p1.

Former Member
0 Likes

What i shared earlier sample XML Payload is exact only, now i'm taken Xpath in receiver determination.

After Mapping Sample XML Payload:

<?xml version="1.0" encoding="UTF-8"?> <ns1:ConversionRate xmlns:ns1="http://www.webserviceX.NET/"> <ns1:Req_NO>1</ns1:Req_NO> <ns1:FromCurrency>INR</ns1:FromCurrency> <ns1:ToCurrency>EUR</ns1:ToCurrency> </ns1:ConversionRate>

Former Member
0 Likes

It worked ?Share the XML after mapping.

former_member190293
Active Contributor
0 Likes

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.