on 01-16-2014 8:20 AM
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.
Pseudocode:
digitalSiganature = get_Digital_Signature( paymentReqXMLfile )
base64DigitalSignature = base64_Encoding (digitalSiganature)
base64XmlData = base64_Encoding(paymentReqXMLfile)
replyXML = HTTPS_Post_B2B(“strSignature=”+ base64DigitalSignature+”&strXmldata=”+ base64XmlData)
processReplyXMLinCORE-SYSTEM(replyXML)
The following is html file content shows how to post those parameters with the base64 XML payment request and signature
Note:
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">
<HTML>
<HEAD>
</HEAD>
<BODY>
<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."
Questions
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 http://scn.sap.com/people/william.li/blog/2007/09/07/posting-and-testing-using-xipi-http-adapter
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.
Thanks,
Farhan
Check this http://scn.sap.com/thread/3474187
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Expert,
Any suggestion for this please. I am waiting to get response from you experts, please help me.
Thanks,
Farhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.