最近在用php調用java soap介面是總是報錯
下面
回複討論(解決方案)
具體貼出代碼看看吧。
ini_set("soap.wsdl_cache_enabled","0");
set_time_limit(60);
header("Content-type: text/html; charset=utf-8");
$client = new SoapClient('http://133.0.128.141:8081/csp/services/sr/c_hbdx_ci_serRequest?wsdl',array( 'authentication' => SOAP_AUTHENTICATION_BASIC,'soap_version' => SOAP_1_2));
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';
$param = array(
'srTypeId'=>'070001003002002001',
'subsName'=>'楊宇銀',
'subsNumber'=>'13720193280',
'callerNo'=>'13720193280',
'contactPerson'=>'楊宇銀',
'contactMode'=>'0',
'contactPhone1'=>'13720193280',
'contactPhone2'=>'13720193280',
'email'=>'wangqiwen1994@163.com',
'address'=>'湖北武漢',
'subsLevel'=>'1',
'subsBrand'=>'7',
'acceptMode'=>'0',
'acceptStaffNo'=>'7316',
'serviceTitle'=>'預先處理工單',
'serviceContent'=>'分類:簡訊類處理',
'acceptCity'=>'101000',
'subsCity'=>'101011',
'serviceCity'=>'101011',
'urgentId'=>'00006003',
'contactChannel'=>'62',
'flowId'=>'211',
'contactId'=>'233322',
'prodId'=>'1232343243',
'servId'=>'2342343',
'remark01'=>'1',
'remark02'=>'2',
'remark03'=>'3',
'remark04'=>'4',
'remark05'=>'5',
'remark06'=>'6',
'remark07'=>'7',
'remark08'=>'8',
'remark09'=>'9',
'remark10'=>'10'
);
$result = $client->__call('createProblemProcess',$param);
?>
上面是My Code,麻煩各位大神幫我看看那裡的問題,一直報我文章上面的錯誤。
具體貼出代碼看看吧。
ini_set("soap.wsdl_cache_enabled","0");
set_time_limit(60);
header("Content-type: text/html; charset=utf-8");
$client = new SoapClient('http://133.0.128.141:8081/csp/services/sr/c_hbdx_ci_serRequest?wsdl',array( 'authentication' => SOAP_AUTHENTICATION_BASIC,'soap_version' => SOAP_1_2));
$client->soap_defencoding = 'utf-8';
$client->decode_utf8 = false;
$client->xml_encoding = 'utf-8';
$param = array(
'srTypeId'=>'070001003002002001',
'subsName'=>'楊宇銀',
'subsNumber'=>'13720193280',
'callerNo'=>'13720193280',
'contactPerson'=>'楊宇銀',
'contactMode'=>'0',
'contactPhone1'=>'13720193280',
'contactPhone2'=>'13720193280',
'email'=>'wangqiwen1994@163.com',
'address'=>'湖北武漢',
'subsLevel'=>'1',
'subsBrand'=>'7',
'acceptMode'=>'0',
'acceptStaffNo'=>'7316',
'serviceTitle'=>'預先處理工單',
'serviceContent'=>'分類:簡訊類處理',
'acceptCity'=>'101000',
'subsCity'=>'101011',
'serviceCity'=>'101011',
'urgentId'=>'00006003',
'contactChannel'=>'62',
'flowId'=>'211',
'contactId'=>'233322',
'prodId'=>'1232343243',
'servId'=>'2342343',
'remark01'=>'1',
'remark02'=>'2',
'remark03'=>'3',
'remark04'=>'4',
'remark05'=>'5',
'remark06'=>'6',
'remark07'=>'7',
'remark08'=>'8',
'remark09'=>'9',
'remark10'=>'10'
);
$result = $client->__call('createProblemProcess',$param);
?>
上面是My Code,麻煩各位大神幫我看看那裡的問題,一直報我文章上面的錯誤。
你的url不可訪問,貼出 wsdl 看看
你的url不可訪問,貼出 wsdl 看看
大哥133是我的內網地址怎麼可能訪問呢?
對呀!url不可訪問,WSDL你有不給
除了你,還能有誰會知道如何訪問呢?