Hi Experts ,
We are using a pi 7.4 single stack system and developed bellow interface which we are using the http adapter to send messages to the mobile phone.we are trying to test the URL of the company provided to us in the middle ware as we can able to test the URL well in the google and rest adapter outside middle ware now i am testing it in middle ware but not able to send the messages to mobile no speificied. we are used some udf execute the same please find the suggest us best possible way to test the API link in the middle ware pi 7.4 single stack.
Hi,
URL - http://ipaddress/smpp/sendsms?username=xxxxx&password=xxxxx&to=&from=&text=testmessage.
Scenario - ECC(proxy) -> PO(HTTP adapter) -> SMS portal
Development:
ESR - In the mapping
Five parameters- username , password , to , from and text from ECC to PO as part of request message.
UDF -
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey parmValue;
try{
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamOne");
conf.put(parmValue, var1);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamTwo");
conf.put(parmValue, var2);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamThree");
conf.put(parmValue, var3);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamFour");
conf.put(parmValue, var4);
parmValue = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "URLParamFive");
conf.put(parmValue, var5);
}catch(Exception ex){}
return "";
Integration Directory-
Communcation channel:
Tranport Protocol - HTTP 1.1
Message Protocol - GET
General Tab-
Addressing Mode - URL Address
Target Host - 103.112.70
Target Port - 80
Path - smpp/sendsms
Mainpayload Parameter Name - MT_SMS
Advanced Tab-
Header fileds - EMPTY
Query Parameters - sender party - enabled
sender service - enbled
Receiver Interface - enabled
Message ID - enabled
Quality of service - enabled
Adapter -Specific Message Properties
set Adapter -specific Message Properties - enabled
URL parameters - enabled
parameter 1(URLParamOne) - username
parameter 2(URLParamTwo)-password
parameter3(URLParamThree)-to
parameter4(URLParamFour)-from
parameter5(URLParamFive)-text
________________________