on 07-10-2017 4:10 PM
Hi,
My Scenario is proxy to Third party and its Sync. I have to use the dynamic URL. I am not sure if I should use HTTP_AAE or REST as I need to use POST. I am trying to use HTTP_AAE and using the below UDF.
//Get the dynamic configuration from the container DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); // beginning of setHttpHeader d2a0e4bf0852e83b928c90e621036c29 String funcName = "updateHttpURL"; // get trace object using container AbstractTrace trace = container.getTrace(); trace.addInfo(funcName + "called with value - 1" ); //Create the TServerLocation key in namespace http://sap.com/xi/XI/System/SOAP. This key will hold the dynamically created URL DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/HTTP_AAE", "urlParamOne"); //Put the url value from the input in the configuration under the specified key conf.put(key, url); //return the data for mapping to the output return data;
MY CC config is
I am now getting an error ERROR_SENDING_HTTP_REQUEST-Message Processing Failed. Reason : java.net.UnknownHostException: 192
Obviously its not taking the dynamic IP.
Please suggest.
Sherwin,
I believe HTTP_AAE adapter doesn't support Dynamic URL . Only Dynamic Query parameters is possible via HTTP_AAE.
1742088 - FAQ: PI 7.30 / PI 7.31 HTTP_AAE Adapter
A: It is not possible to make use of Dynamic Configuration to send host & port to form HTTP URL.
Br,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
I am trying using the SOAP but it is giving error
ct="TV" bresettabindex="true">Returning to application. Exception: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_EVA_Esku_Details_Sync_Response_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; The element type "br" must be terminated by the matching end-tag "</br>".
Successful test with http request (REST)
Unsuccessful test with http request (SOAP)
Please suggest.
Thanks,
Sherwin
Hi Guys,
The issue is resolved. I used the SOAP channel with java UDF and XSLT mapping.
Thanks,
Sherwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sherwin,
In your screenshot you have a host of "192." instead of a valid IP address. The configuration would need to be adjusted before you could attempt to execute the scenario end to end.
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.