请问网路上各位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 .="<?xml version=\"1.0\" encoding=\"UTF-8\"?>";<br>$xmlstr .="<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\">";<br>$xmlstr .="<soapenv:Header>";<br>$xmlstr .="<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\">";<br>$xmlstr .="<ns1:spId>15XXXX44</ns1:spId>";<br>$xmlstr .="<ns1:spPassword>".$password."</ns1:spPassword>";<br>$xmlstr .="<ns1:timeStamp>".$timestamp."</ns1:timeStamp>";<br>$xmlstr .="<ns1:productId>11500000000000XXXXX55</ns1:productId>";<br>$xmlstr .="<ns1:OA></ns1:OA>";<br>$xmlstr .="<ns1:FA></ns1:FA>";<br>$xmlstr .="<ns1:linkId></ns1:linkId>";<br>$xmlstr .="<ns1:SAN></ns1:SAN>";<br>$xmlstr .="</ns1:RequestSOAPHeader>";<br>$xmlstr .="</soapenv:Header>";<br>$xmlstr .="<soapenv:Body>";<br>$xmlstr .="<sendSms xmlns=\"http://www.chinatelecom.com.cn/schema/ctcc/sms/send/v2_1/local\">";<br>$xmlstr .="<addresses>tel:+8613xxxxxx551</addresses>";<br>$xmlstr .="<senderName>106XXXX8</senderName>";<br>$xmlstr .="<message>SOHU 彩信</message>";<br>$xmlstr .="<receiptRequest>";<br>$xmlstr .="<endpoint xmlns=\"\">http://61.135.132.206:8080/axis/services/SmsNotification</endpoint>";<br>$xmlstr .="<interfaceName xmlns=\"\">SendSms</interfaceName>";<br>$xmlstr .="<correlator xmlns=\"\">1224146261455</correlator>";<br>$xmlstr .="</receiptRequest>";<br>$xmlstr .="</sendSms>";<br>$xmlstr .="</soapenv:Body>";<br>$xmlstr .="</soapenv:Envelope>";<br><br>//echo $xmlstr;<br><br>$te2 = array("spId"=>"15xxxx4","spPassword"=>md5($password),"timeStamp"=>$timestamp,"productId"=>"115000xxxxxxxxxxx5");<br>$SOAPHEADER = new soapheader('http://soapinterop.org/echoheader/',"RequestSOAPHeader",$te);<br><br>$te = array("addresses"=>"tel:+86135xxxxx551","senderName"=>"106xxxx8","message"=>"test");<br>$SOAP ->__soapCall("sendSms" , $te);
能讲具体点吗,谢谢
来源URL:http://zhidao.baidu.com/link?url=4GpUSh1Jd25X-ZRgM6MjN9Q37WBuF2L7VeP6D5fHDeiaG4pKXH0Al86eLgAyzT4RlwPn_GbVKTR2MWeQbFI3pK