$url = 'http://b2b.ourgame.com/DDService.asmx?wsdl';$soapClient = new soapclient($url);/* 读取可用的方法和所需的数据结构 */print_r( $soapClient->__getFunctions ()); print_r($soapClient->__getTypes () ); $rs = $soapClient->Sale();print_r($rs);<br><font color="#e78608">------解决方案--------------------</font><br>
ini_set("soap.wsdl_cache_enabled",0); try{ $client = new SoapClient("http://b2b.ourgame.com/DDService.asmx",array("exceptions" => 1)); var_dump($client->Sale(array("arg0"=>1,"arg1"=>"123","arg2"=>"456","arg3"=>"789","arg4"=>4,"arg5"=>5,"arg6"=>"111","arg7"=>"222"))); }catch(Exception $ex){ var_dump($ex->faultstring); }<div class="clear"></div>
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号