cancel
Showing results for 
Search instead for 
Did you mean: 

SMS using HTTP adapter

Former Member
0 Kudos

Hi Experts

We have requirement to send SMS from ECC through PI  and our company registered with one SMS sending Service provider .

he provided us the below API.

http://host/sms.php?id=XXXX&pw=XXXX&dnr=%2Bphoneno&snr=SPH&msg=This+is+a+test

By passing id,password,phoneno,message to above url, it will send SMS automatically.

So we designed our scenario  as Proxy to HTTP.

we will hardcode id,password details in the URL.

but how to map phone no ,message to URL in the above format.

Thanks

Sai



Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear sai ,

For this you first import the external defination

which is available on http://api.myvaluefirst.com/psms/dtd/messagev12.dtd

map your  phone number and all.

And in http reciever give your url and path and pass the payload by using the prolog parameter.

thanks and regards,

Anup Banerjee

gagandeep_batra
Active Contributor
0 Kudos

Hi Sai,

The following link might help you.

http://www.saptechnical.com/Tutorials/XI/RFCtoSOAP/page1.htm

Regards

Gagandeep

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>but how to map phone no ,message to URL in the above format.

check this section

"If you want to use URL parameters, choose Apply URL Parameters and enter the parameters in the fields Parameter 1 to Parameter 6."

http://help.sap.com/saphelp_nw70ehp2/helpdata/EN/43/64dbb0af9f30b4e10000000a11466f/content.htm

you can set those in the mapping - ASMA - and they will be used for URL creation

Regards,

Michal Krawczyk

Former Member
0 Kudos

Hi Michal,

using ASAP, can map only

Sender party 

  • Sender service
  • Receiver interface
  • Message ID
  • Quality of service
  • Queue ID

but my requirement was to map payload to url.in the specified format.

Ex: phone no ,sms message will come in message payload to map in URL

Thanks

Sai

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>using ASAP, can map only

I think you're thinking about something else - with ASMA you can map lots of other things

(adapter dependent)

>>>>Ex: phone no ,sms message will come in message payload to map in URL

exactly what I'm saying - you can map payload to URL values with the section that I've shown you

so this is exactly what you need

have a look at this example from Bill:

http://scn.sap.com/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-cha...

you only need to do the same with Apply URL parameters - do you get it now ?

another example:

http://scn.sap.com/people/william.li/blog/2007/09/07/posting-and-testing-using-xipi-http-adapter

Regards,

Michal Krawczyk