客户就给了我这个东西,可以用来实现吗
客户就提供了一个这个文档给我。
请问可以实现短信吗?
看的不太明白。请大神指点。
移动业务接口说明
1.短信业务接口(WebService接口)
短信下发接口:
消息数据报
1.发送短信请求SOAP:
服务器IP: 211.141.87.121
发送到URL: /soap-sms.php
POST /soap-sms.php HTTP/1.1
Host: 211.141.87.121
Content-Type: text/xml; charset=GB2312
Content-Length: 285
<?xml version="1.0" encoding="GB2312"?>
<svc_init ver="2.0.0">
<sms ver="2.0.0">
<client>
<id>XXX-user </id>
<pwd>111111</pwd>
<serviceid>106588827777</serviceid>
</client>
<sms_info>
<phone>13112341234</phone>
<content>发送短信。</content>
</sms_info>
</sms>
</svc_init>
说明:phone是手机号码。
content 是要发送的短信内容。
2.发送短信返回SOAP:
HTTP/1.1 200 OK
Date: Wed, 01 Feb 2012 02:16:13 GMT
Server: Apache/2.0.49 (Win32) PHP/4.3.7
X-Powered-By: PHP/4.3.7
Connection: close
Content-Type: text/html; charset=GB2312
<?xml version="1.0" encoding="GB2312"?>
<svc_result ver="2.0.0">
<response_info>
<retcode>00</retcode>
<retmesg>OK!</retmesg>
</response_info>
</svc_result>
说明: retcode为00是成功发送(其他代码是没有成功)。
retmesg为返回代码说明信息。