Skip to Content
avatar image
Former Member

How to send the form based payload in HTTP/HTML parameters(more than one ) to bank websites in synchronous mode from PI

Dear Experts,

I have to integrate with bank website(ABAP proxy to bank URL) in synchronous mode , bank has given the below details, a form based example to post the data using HTTP post method and the expected format by Bank web-server.

"You will post two parameters (strXmldata , strSignature ), the strXmldata  must contain the XML after base64 encoding, the strSignature should contains the digital signature after base64 encoding.


digitalSiganature =  get_Digital_Signature( paymentReqXMLfile ) 

base64DigitalSignature = base64_Encoding (digitalSiganature) 

base64XmlData = base64_Encoding(paymentReqXMLfile) 

replyXML = HTTPS_Post_B2B(“strSignature=”+ base64DigitalSignature+”&strXmldata=”+ base64XmlData)


The following is html file content shows how to post those parameters with the base64 XML payment request and signature


In the following html examples, html used below only as a demonstration of how data can be posted to B2B Gateway (using HTML form tag), when using your built application you post only the parameters named strXmlData (and strSignature if required).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">





<FORM action=" https://<environment-domain/b2b/epay " method="post">

<INPUT type="text" name="strSignature" value="MIIFywYJKoZIhvcNAQcCoIIFvDCCBbgCAQExCzAJBgUrDgMCGgUAMIICKwYJKoZIhvcNAQcBoIICHASCAhg8P3htbCB2ZXJzaW9uPSIxLjAiPz4KPFBheW1lbnRNZXNzYWdlPgo8UGF5bWVudFRyYW5zYWN0aW9uPgogICAgPENvbXBhbnlDb2RlPkFSQU1DT =">

<INPUT type="text" name="strXmldata" value='PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxQYXltZW50TWVzc2FnZT4KPFBheW1lbnRUcmFuc2FjdGlvbj4KICAgIDxDb21wYW55Q29kZT5BUkFNQ08wMDAxPC9Db21wYW55Q29kZT4KICAgIDxTZXF1ZW5jZU51bT4xNjA4MDwvU2VxdWVuY2VOdW0+CiAgICA8VHJhbnNhY ='>

<input type="submit" value="Proceed">

</FORM >

</BODY >

  </HTML >

Figure 9 – Example of a Payment Message Post Request

When you post the above request to the B2B Gateway, the gateway will receive the request analyze it, and answer back in the same session with the execution status message."


1- How do we send form based payload in HTTP/HTML parameters, if parameters are more than one, for example here I need to send over two parameters (strXmldata , strSignature ) ?  I have seen from SAP help in PI 7.3 there is option called "Set Form" in HTTP_AAE receiver adapter , but it says to send only one "Main Payload Parameter" I have not played with this because my system is in installation process. please suggest me how can I send more than one parameters?

2- I have read the blog by William Li

Do you guys think I need to apply DynamicConfiguration here? However as per other threads DynamicConfiguration is not supported in Java HTTP_AAE adapter.

Please suggest me the possibility to achieve this in PI 7.3 and above dual stack , as I am about to start my development.

your help is always appreciated.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 16, 2014 at 06:23 PM
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks to everyone for the suggestion. looks like I need to write the java mapping , at mapping level and convert it into two string  parameters and send it through HTTP_AAE receiver adapter in HTTP body on the required two parameter containing the values.

  • avatar image
    Former Member
    Jan 16, 2014 at 10:08 AM

    Hi Farhan

    I don't think we have the option to send data to two input parameters in case of form submit using HTTP.

    We can send the data to only one parameter in the form.

    Check this links

    HTTP Test Tool for SAP PI 7.3

    HTTP Requests Supported by the Java HTTP Adapter - Advanced Adapter Engine - SAP Library

    But you can think of the other option multi-part as well where you can send the PI payload and attachment together to the application but that will not be a form submit.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks a lot for reply Indrajit. I have gone through the link you have sent already, but I couldn't find anywhere the option to send more than one parameters. I cannot send as an attachment, it will not be accepted by bank.

      I will request all Experts please suggest me to send more than parameters. I am sure others also have faced this kind of requirement.

  • avatar image
    Former Member
    Jan 16, 2014 at 05:46 PM

    Hello Expert,

    Any suggestion for this please. I am waiting to get response from you experts, please help me.



    Add comment
    10|10000 characters needed characters exceeded