cancel
Showing results for 
Search instead for 
Did you mean: 

SMS gateway Interface development

sapjmm
Participant
0 Kudos

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



________________________





Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

why used http adapter not soap or restt in pi?

apu_das2
Active Contributor
0 Kudos

Hi,

Can you please share your message mapping.

Thanks,
Apu

sapjmm
Participant
0 Kudos

Hi Apu das,

It is one to one mapping can i share External message?

apu_das2
Active Contributor
0 Kudos

Hi Murali,

Is it simple one to one mapping with five parameters (username , password , to , from and text) in source side and target side?

If its like that then just put a screen shot of the UDF ... I just want to see where and how you put the UDF.

Thanks,
Apu

Former Member
0 Kudos

Hi Murali,

Why is it a HTTP GET and not a POST? Is'nt PI initiating the connection?

Cheers,

Sriram