求关于php用WEBSERVICE 来做电信ISAG下行发短信的案例_百度知道

请问网路上各位PHP高手大哥,本人现在要做一个电信提供了接口,做一个ISAG下行,发送短信的客户端,不知如何做起,本人尝试过用SOAP来做,做不成功.以下是本人的程序:<!--more--><br>set_time_limit(0); <br>//ini_set("soap.wsdl_cache_enabled", "0");<br>$timestamp = date("mdhis");<br>$password = "1519xxxxxxxxx1".$timestamp;<br><br>$SOAP = new SoapClient("wsdl/NORTH/ctcc_sms_send_service_2_1.wsdl");<br>$xmlstr .="";<br>$xmlstr .="&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;";<br>$xmlstr .="&lt;soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"&gt;";<br>$xmlstr .="&lt;soapenv:Header&gt;";<br>$xmlstr .="&lt;ns1:RequestSOAPHeader soapenv:actor=\"http://schemas.xmlsoap.org/soap/actor/next\" soapenv:mustUnderstand=\"0\" xmlns:ns1=\"http://www.chinatelecom.com.cn/schema/ctcc/common/v2_1\"&gt;";<br>$xmlstr .="&lt;ns1:spId&gt;15XXXX44&lt;/ns1:spId&gt;";<br>$xmlstr .="&lt;ns1:spPassword&gt;".$password."&lt;/ns1:spPassword&gt;";<br>$xmlstr .="&lt;ns1:timeStamp&gt;".$timestamp."&lt;/ns1:timeStamp&gt;";<br>$xmlstr .="&lt;ns1:productId&gt;11500000000000XXXXX55&lt;/ns1:productId&gt;";<br>$xmlstr .="&lt;ns1:OA&gt;&lt;/ns1:OA&gt;";<br>$xmlstr .="&lt;ns1:FA&gt;&lt;/ns1:FA&gt;";<br>$xmlstr .="&lt;ns1:linkId&gt;&lt;/ns1:linkId&gt;";<br>$xmlstr .="&lt;ns1:SAN&gt;&lt;/ns1:SAN&gt;";<br>$xmlstr .="&lt;/ns1:RequestSOAPHeader&gt;";<br>$xmlstr .="&lt;/soapenv:Header&gt;";<br>$xmlstr .="&lt;soapenv:Body&gt;";<br>$xmlstr .="&lt;sendSms xmlns=\"http://www.chinatelecom.com.cn/schema/ctcc/sms/send/v2_1/local\"&gt;";<br>$xmlstr .="&lt;addresses&gt;tel:+8613xxxxxx551&lt;/addresses&gt;";<br>$xmlstr .="&lt;senderName&gt;106XXXX8&lt;/senderName&gt;";<br>$xmlstr .="&lt;message&gt;SOHU 彩信&lt;/message&gt;";<br>$xmlstr .="&lt;receiptRequest&gt;";<br>$xmlstr .="&lt;endpoint xmlns=\"\"&gt;http://61.135.132.206:8080/axis/services/SmsNotification&lt;/endpoint&gt;";<br>$xmlstr .="&lt;interfaceName xmlns=\"\"&gt;SendSms&lt;/interfaceName&gt;";<br>$xmlstr .="&lt;correlator xmlns=\"\"&gt;1224146261455&lt;/correlator&gt;";<br>$xmlstr .="&lt;/receiptRequest&gt;";<br>$xmlstr .="&lt;/sendSms&gt;";<br>$xmlstr .="&lt;/soapenv:Body&gt;";<br>$xmlstr .="&lt;/soapenv:Envelope&gt;";<br><br>//echo $xmlstr;<br><br>$te2 = array("spId"=&gt;"15xxxx4","spPassword"=&gt;md5($password),"timeStamp"=&gt;$timestamp,"productId"=&gt;"115000xxxxxxxxxxx5");<br>$SOAPHEADER = new soapheader('http://soapinterop.org/echoheader/',"RequestSOAPHeader",$te);<br><br>$te = array("addresses"=&gt;"tel:+86135xxxxx551","senderName"=&gt;"106xxxx8","message"=&gt;"test");<br>$SOAP -&gt;__soapCall("sendSms" ,  $te);

能讲具体点吗,谢谢

来源URL:http://zhidao.baidu.com/link?url=4GpUSh1Jd25X-ZRgM6MjN9Q37WBuF2L7VeP6D5fHDeiaG4pKXH0Al86eLgAyzT4RlwPn_GbVKTR2MWeQbFI3pK