powerbuilder开发http接口

chenyoulin7 2012-06-27 05:03:56
HTTP接口约定
为了降低客户的开发技术难度,根据客户需求,提供企业版的HTTP接口。采用HTTP的POST和GET方式进行短信的发送。
注意事项:
1. 发送短信建议使用POST方式提交,可以进行大批量短信发送;
2. GET方式提交发送号码最大一次提交100个;
3. 发送号码移动、电信、联通、小灵通可以混合提交;
4. 发送号码以”,”分隔(半角逗号),
    例如: 13688888888,13088888888,01088888888,……;
5. 调用接口注意要用UTF-8进行编码。

发送短信
  企业版账号发送短信。
  入口地址: http://121.37.61.15/sms/http/sendmessage
参数说明:
1.发送短信所需参数如下:
参 数 说 明  必选/可选
username 发送短信的企业账号 必选
password 账号对应的登录密码 必选
codes 发送号码;以”,”分隔(半角逗号)
例如:
13688888888,13088888888,01088888888,……; 必选
content 发送内容; 必选
sendtime 发送时间;
不加sendtime参数为立即发送,如果加sendtime参数且发送号码大于5个为预约发送;为预约发送;
sendtime参数格式为 YYYY-mm-dd HH:mm:ss
例如:2008-10-21 10:00:00; 可选
返回结果:
返回值 返回值含义
>=0 成功发送的条数
-1 失败
-7 用户认证失败(用户名密码)
-9 缺少参数
-11 短信内容包含有敏感词
-12 余额不足
-15 内容为空


调用接口示例:(发送100条短信,GET示例)
http://121.37.61.15/sms/http/sendmessage?username={username}&password={password}&codes=136xxxxxxxx,138xxxxxxxx&content=%E6%B5%8B%E8%AF%95%E5%8F%91%E9%80%81%E7%9F%AD%E4%BF%A1
(短信内容为:测试发送短信)


上面是对方公司给我的接口文档一部分,请问我应该在pb里面怎样开发接口程序呢,第一次做这种接口,麻烦知道的大哥大姐步骤详细点。谢谢了
...全文
1124 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
oicqxtq 2013-09-06
  • 打赏
  • 举报
回复
取手机号你可以从数据库中循环取出来,你再根据自己需要修改.
oicqxtq 2013-09-06
  • 打赏
  • 举报
回复
long ll_i string ls_mobile ls_mobile="13800138000" for ll_i=1 to 100 Inet iinet_base GetContextService("Internet", iinet_base) iinet_base.HyperlinkToURL("http://121.37.61.15/sms/http/sendmessage?username={username}&password={password}&codes="+ls_mobile+"&content=%E6%B5%8B%E8%AF%95%E5%8F%91%E9%80%81%E7%9F%AD%E4%BF%A1") next
天下云飞 2012-06-28
  • 打赏
  • 举报
回复
使用inet,网上有例子,可以下一个看看
简单如下:
inet ln_inet
n_inet_html ln_html
String ls_url

if GetContextService("Internet", ln_inet) = 1 THEN

ln_html = CREATE n_inet_html
ls_url = "http://121.37.61.15/sms/http/sendmessage"
ls_url += ...
ln_inet.GetURL(ls_url,ln_html)

DESTROY ln_html

END IF
手机短消息二次开发接口 简 介 为了对短消息信息应用开发商提供支持,本公司提供了一个高可靠性开发接口,支持用户的短信息定向开发。该接口可运行于任何Windows平台,支持中英文短消息发送接收,支持目前大多数型号的手机。随着手机短信增值业务的发展,我们将不断地增加开发软件包的功能。 通过该短消息开发接口,企业不仅可以将其与自身的MIS系统结合,提高信息处理的实时性,还可以非常容易地建立起自己的短消息中心,用于处理客户投诉、产品推广、广告发布等常用业务,进一步提高工作效率与节省成本。该接口可广泛用于远程控制,电讯,CALL台,电力,教育,广告等行业。 短消息二次开发接口以动态连接库的形式提供,支持所有Windows平台下开发语言,如Visual C++, VB, FoxPro , C++ Builder, Delphi, Power Builder和Lotus Notes等。 接口特点: 接口直接使用手机做为发送设备,无须另外配置设备,减少平台建设成本。 消息的发送与接收采用消息驱动方式,速度快,效率高。 加入状态报告功能,所以接口也适用于实时性与准确性很强的应用。 加入免提短信、发送Logo、发送铃声等功能,使接口个性化味道十足。 接口标准化,函数少,调用简单,使用起来十分方便。 将手机与USB充电线配合,可解决手机供电问题,实现短消息的不间断发送。 应用程序可灵活应用,支持多串口发送方式,适用于大批量消息处理。 适用机型: NOKIA 5110/6110/8810/3210/3310/3330/8210/8250/8850/8310 等机型 Siemens S2588/3508/3518/3568/6688/3618/6688/SL45XX 等机型 其它标准GSM手机 专用短消息发送设备 连接方式: 数据线(NOKIA需要FBUS通讯协议) 红外线 开发接口包含函数:(更详细内容请查看NkiDll.h文件) Sms_Init 初始化串口并与手机连接 Sms_GetMobileName取所连接手机的手机名称或手机型号 Sms_GetIMEI 取所连接手机的手机串口(IMEI) Sms_Send 发送指定的短信,它能自动分段发送,每段信息最大长度为70个字 Sms_SendSmart  发送增值短信,目前仅支持Nokia的图片短信、Logo、分组图片、铃声 Sms_Get 返回接收队列中短信 Sms_Get2 返回接收队列中短信 Sms_GetSimSms   返回手机SIM卡中原已接收到的短消息 Sms_Delete 删除SIM卡中指定的短信记录 Sms_ClearSim   清空Sim卡中原已接收到的短消息 Sms_GetSimNum 取SIM卡短信容量 Sms_GetRecvNum 返回接收队列中短信的数目 Sms_Exit 释放资源,断开串口与手机的连接 开发接口NkiDll.zip包含文件: readme.txt 本文件,短消息开发接口简介 NkiDll.chm 短消息开发接口应用帮助文件 \DLL \NkiDll.h 短消息开发接口头文件 \NkiDll.Lib 短消息开发接口库文件 \NkiDll.Dll 短消息开发接口动态连接库(主要文件) \DemoNkiDll.exe 测试短消息接口的工具 \Example 示例程序与原代码(Visual C++,VB,Power Builder,FoxPro) \Dog 加密狗驱动程序(试用版无需) 广州首易信息技术有限公司
Excel Report Builder
Excel Report 万能报表平台
Excel 使用WEB服务(webservice)访问远程数据库
使用本软件可以使你的应用系统(数据库)和excel相连。
可以把它嵌入到你的应用系统里,做为应用系统的外挂程序。
可以利用excel强大的编辑功能,随心所欲地开发出精美的报表。
本软件基于Web Service(Web服务)新技术,所以它支持web网络,
可以通过Internet访问远程数据。
只要你稍懂SQL,就可以在Excel Report 万能报表平台上设计报表。
通过设置字段,参数等信息来设计报表。
BI智能报表,支持透视表。
提供存储过程接口,便于用户二次开发
有用户管理,报表权限的管理。
支持多语种。
软件环境:
客户端: Windows 2000及以上版本,Microsoft Office 2000及以上版本
服务器端:Windows和Linux都可以,jsdk1.4,tomcat5
数据库:支持Oracle, SQL Server 等数据库。
下载地址:
SQL Server SP3:
http://203.208.248.203:81/pan/Excel/sql2ksp3.exe
SQL Server SP4:
http://download.microsoft.com/download/9/b/f/9bff6646-2cdb-4069-ada0-548be9cb9338/SQL2000-KB884525-SP4-x86-CHS.EXE
报表安装包:
http://203.208.248.203:81/pan/Excel/j2sdk-1_4_2_06-windows-i586-p.exe
http://203.208.248.203:81/pan/Excel/jakarta-tomcat-5.0.27.exe


http://203.208.248.203:81/pan/Excel/Excel_Report_Setup.rar
联系方式:
http://pansoft.ik8.com
QQ: 10124900
MSN: bear_pan@hotmail.com
E_Mail: bear_pan@163.com


Excel Report Builder
Excel Report Builder is an easy and convenient tool for the creation and customization of reports which takes advantage of the formatting and presentation capabilities of Microsoft Excel. The program allows the rapid construction of reports.A GUI style design environment, which allows the user to design their reports visually inside MS Excel. Reports can be saved and then viewed and printed as pure Excel documents.
The reports are created and printed rapidly.In fact, it is by harnassing the power of Excel that gives Excel Report Builder these abilities.No technical knowledge is needed in order for the user to customise his or her own reports.

Key Features of the Database Report Builder for Excel include:
Report creation using Microsoft Excel
Get data through webservice,so you can get remote data
Support of the SQL-queries for the data sets creation
Calling of the stored procedures for the data sets creation
Creation of the reports with parameters
Work with the Microsoft Excel macros
Charts creation in a report

Software:
Client: Windows 2000 or above,Microsoft Office 2000 or above
Server: jsdk1.4,tomcat5
Database: Oracle or SQL Server
Download:
SQL Server SP3:
http://203.208.248.203:81/pan/Excel/sql2ksp3.exe
SQL Server SP4:
http://download.microsoft.com/download/9/b/f/9bff6646-2cdb-4069-ada0-548be9cb9338/SQL2000-KB884525-SP4-x86-CHS.EXE
Excel Report Builder:
http://203.208.248.203:81/pan/Excel/j2sdk-1_4_2_06-windows-i586-p.exe
http://203.208.248.203:81/pan/Excel/jakarta-tomcat-5.0.27.exe


http://203.208.248.203:81/pan/Excel/Excel_Report_Setup.rar


Contact:
http://pansoft.ik8.com
QQ: 10124900
MSN: bear_pan@hotmail.com
E_Mail: bear_pan@163.com

Excel Report Builder
Excel Report 万能报表平台
Excel 使用WEB服务(webservice)访问远程数据库
使用本软件可以使你的应用系统(数据库)和excel相连。
可以把它嵌入到你的应用系统里,做为应用系统的外挂程序。
可以利用excel强大的编辑功能,随心所欲地开发出精美的报表。
本软件基于Web Service(Web服务)新技术,所以它支持web网络,
可以通过Internet访问远程数据。
只要你稍懂SQL,就可以在Excel Report 万能报表平台上设计报表。
通过设置字段,参数等信息来设计报表。
BI智能报表,支持透视表。
提供存储过程接口,便于用户二次开发
有用户管理,报表权限的管理。
支持多语种。
软件环境:
客户端: Windows 2000及以上版本,Microsoft Office 2000及以上版本
服务器端:Windows和Linux都可以,jsdk1.4,tomcat5
数据库:支持Oracle, SQL Server 等数据库。
下载地址:
报表安装包:
http://203.208.248.203:81/pan/Excel/j2sdk-1_4_2_06-windows-i586-p.exe
http://203.208.248.203:81/pan/Excel/jakarta-tomcat-5.0.27.exe
http://203.208.248.203:81/pan/Excel/setup4.42.rar
联系方式:
http://pansoft.ik8.com
QQ: 10124900
MSN: bear_pan@hotmail.com
E_Mail: bear_pan@163.com

Excel Report Builder
Excel Report Builder is an easy and convenient tool for the creation and customization of reports which takes advantage of the formatting and presentation capabilities of Microsoft Excel. The program allows the rapid construction of reports.A GUI style design environment, which allows the user to design their reports visually inside MS Excel. Reports can be saved and then viewed and printed as pure Excel documents.
The reports are created and printed rapidly.In fact, it is by harnassing the power of Excel that gives Excel Report Builder these abilities.No technical knowledge is needed in order for the user to customise his or her own reports.

Key Features of the Database Report Builder for Excel include:
Report creation using Microsoft Excel
Get data through webservice,so you can get remote data
Support of the SQL-queries for the data sets creation
Calling of the stored procedures for the data sets creation
Creation of the reports with parameters
Work with the Microsoft Excel macros
Charts creation in a report

Software:
Client: Windows 2000 or above,Microsoft Office 2000 or above
Server: jsdk1.4,tomcat5
Database: Oracle or SQL Server
Download:
Excel Report Builder:
http://203.208.248.203:81/pan/Excel/j2sdk-1_4_2_06-windows-i586-p.exe
http://203.208.248.203:81/pan/Excel/jakarta-tomcat-5.0.27.exe
http://203.208.248.203:81/pan/Excel/setup4.42.rar

Contact:
http://pansoft.ik8.com
QQ: 10124900
MSN: bear_pan@hotmail.com
E_Mail: bear_pan@163.com

662

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder Web 应用
社区管理员
  • Web 应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧