Skip to Content

SMS gateway Interface development

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



________________________





Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2015 at 10:04 AM

    Hi Murali,

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

    Cheers,

    Sriram

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 12, 2015 at 10:31 AM

    Hi,

    Can you please share your message mapping.

    Thanks,
    Apu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 15, 2015 at 07:46 PM

    why used http adapter not soap or restt in pi?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.