Java:是否可以从Java应用程序发送SMS [英] Java: Is it possible to send SMS from a Java application

查看:141
本文介绍了Java:是否可以从Java应用程序发送SMS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从Java应用程序发送SMS。在这种情况下我不想使用J2ME。我只想了解J2SE和J2EE。有没有可用的API来实现这一目标?如果可以,我们是否必须使用任何服务提供商?你能告诉我如何实现这个目标吗?

Is it possible to send SMS from a Java application. I don't want to use J2ME in this case. I want to know with respect to J2SE and J2EE only. Is there any API available to achieve this? If it is available whether we have to use any service provider or not for this? Can you tell me how to achieve that?

推荐答案

当然。我们目前正在通过爱立信IPX 发送短信。我们只需POST到特定的URL来发送消息(当我们收到短信时,他们会将XML文档发布到我们的URL)。这在大多数语言中都很容易实现。

Certainly. We're currently sending SMS messages via Ericsson IPX. We simply POST to a specific URL to send the message (and they post an XML document to our URL when we receive SMSes). This is easy to do in most languages.

只要音量足够低,还有不少低端提供商允许免费或低价短信。

There are also quite a few lower-end providers that allow free or low-cost SMSes as long as the volume is low enough.

这篇关于Java:是否可以从Java应用程序发送SMS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆