Skip to Content
0
Former Member
Dec 10, 2008 at 01:12 PM

sendin SMS via webservicex.net

45 Views

Hi,

i try this for sending an SMS. i don't get any error, but but the mobile does't get the SMS.

What mistake has the code?

When i try it direct from the browser i get the message OK, but also the mobile doesn't get

the SMS.

CONCATENATE

'http://www.webservicex.net/SendSMSworld.asmx'

'?FromEmailAddress=' 'ichatich.de'

'&CountryCode=' '49'

'&MobileNumber=' '1111111111' "mobile No. without leading zero (D2)

'&Message=' 'Ich bin eine SMS via ABAP'

INTO WF_STRING .

***

  • Create by URL*

CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL

EXPORTING

URL = WF_STRING

IMPORTING

CLIENT = HTTP_CLIENT

EXCEPTIONS

ARGUMENT_NOT_FOUND = 1

PLUGIN_NOT_ACTIVE = 2

INTERNAL_ERROR = 3.

***

  • Send*

CALL METHOD HTTP_CLIENT->SEND.

CALL METHOD HTTP_CLIENT->RECEIVE.

RESULT = HTTP_CLIENT->RESPONSE->GET_CDATA( ).

HTTP_CLIENT->CLOSE( ).

*

Regards, Dieter