• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending SMS by accessing the url of sms service provider

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ,

I am given SMS Service Provider URL , Login username and password.and message
Like this:
http://info.some-service.com/WebServicessSMS.aspx?User=abnjh & passwd=PWD & mobilenumber=979875777 &message=Thanks you for registering with ba ba ba .& sid=2323 & mtype=K

I need to send sms by accessing this URL using java code.
I could send sms by giving the url manually in the browser.

How can we access through objWebRequest = (HttpWebRequest)WebRequest.Create("(info.some-service.com/WebServicessSMS.aspx");

Can anyone please send me the full code to send this asap .

Thanks in advance

[UD: replaced what looked like it might be a real password]
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Neha George wrote:Can anyone please send me the full code to send this asap .


1. Welcome to JavaRanch.
2. EaseUp (←click). We're all volunteers here, and urgency is your problem, not ours.
3. This site is NotACodeMill. We're happy to give you help you if you ShowSomeEffort; but you need to show us what you've already tried first.

Winston
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out URLConnection (created through a java.net.URL object, you can cast it to HttpURLConnection if the URL starts with "http://" or "https://"). If you want to make life even easier you can also use Apache's HttpClient.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic