使用HTTP POST使用Worklight进行SMS通知的SMS网关?

时间:2014-10-27 16:49:45

标签: ibm-mobilefirst

我正在使用IBM Worklight Studio V6.2.0.0,我想在Skebby SMS Broker中使用Worklight SMS Notification消息。我根据Worklight documentationSkebby documentation API为经纪人配置了SMSConfig.xml文件:

<sms:config xmlns:sms="http://www.worklight.com/sms/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <gateway id="skebby" hostname="gateway.skebby.it" port="80" 
            programName="api/send/smseasy/advanced/http.php" toParamName="recipients[]" textParamName="text">
        <parameter encode="true" name="method" value="send_sms_classic"/>
        <parameter encode="true" name="username" value="foo"/>
        <parameter encode="true" name="password" value="foo"/>
        <parameter encode="true" name="sender_string" value="Foo"/> 
    </gateway>
</sms:config>    

从WebSphere Console输出,我没有看到任何错误但是分析HTTP流量,我看到一个错误,因为请求是由HTTP GET和这个方法做出的,但只允许POST。

我怎样才能强迫&#34; HTTP POST而不是GET?

然后我尝试使用端口443使用HTTPS而没有获得ClientProtocolException的运气,是否可以使用HTTPS?

然后我发现recipients[]密钥的值toParamName是urlencoded recipients%5B%5D=,如何避免这种情况?

由于

1 个答案:

答案 0 :(得分:1)

目前,Worklight中的SMS支持仅支持HTTPGET次呼叫。

您可以提交要由Worklight产品设计人员评估的功能请求以供将来发布 见这里:http://www.ibm.com/developerworks/rfe/