on 09-27-2016 3:44 PM
Hi Expert,
I am working a synchronous scenario sender ABAP Proxy -> PI 7.4 -> HTTP AAE To get HTML data and write to file to ECC system, Firstly focus on get HTML data
By dynamic parameter from UDF,
DynamicConfiguration conf = (DynamicConfiguration) mapParameters
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey parmValue;
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamOne");
conf.put(parmValue, sCMD);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamTwo");
conf.put(parmValue, sCurrency);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamThree");
conf.put(parmValue, sYear);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamFour");
conf.put(parmValue, sUsersList);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamFive");
conf.put(parmValue, sSelectPeriod);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "UrlParamSix");
conf.put(parmValue, sloadmode);
https://www.xxxxxx.xxxx/econdata/exchangerate.php?cmd=printexcell&cboCurrency=All&ddlYear=2016&Users..., 2016&loadmode=2
But I'm facing error "STATUS_CODE_NOT_OK- 503 <h4>Error: Host not found. Please check the website address.</h4><address>HTTP_Proxy/v2.0</address></body></html>"
I'm not sure which parameter that missing. Please guide me.
Hi Piyawat,
Make sure you entered right proxy host and it is accessible looks like error message complaining about proxy host.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
Really appropriate your replied.
Now, I can found out that the link calling with wrong pattern, If I config with https://
Then, How can I call https:// link with HTTP_AAE ?
This is current configuration
Host : https://www.xxxxxx
Port : 443
Part : /econdata/exchangerate_ajax_calls.php
|
Hi Praveen,
Finally, I did it.
1. The Certificate, I do export from website and import to my PI system, (Public cer -> Public cer)
2. Code changed from Url to URL
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamOne");
conf.put(parmValue, sCMD);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamTwo");
conf.put(parmValue, sCurrency);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamThree");
conf.put(parmValue, sYear);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamFour");
conf.put(parmValue, sUsersList);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamFive");
conf.put(parmValue, sSelectPeriod);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System", "URLParamSix");
conf.put(parmValue, sloadmode);
3. HTTP_AAE configuration.
Message Protocal : GET
Host : www.xxxxxx
Port : 443
Part : /xxxxxxx.php
Use SSL : true
Main payload parameter name : dummy
----
Again Thank you very much for your guide and helpful article.
Best Regards,
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.