soap 无法拓展 php,php – SOAP-ERROR:解析WSDL:无法加载

在PHP中:我收到一个错误:

SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://xxx.xxxx.asmx?WSDL' :

failed to load external entity "http://xxx.xxxx.asmx?WSDL"

我的代码是:

header('Content-Type: text/plain');

if (!class_exists('SoapClient'))

{

die ("You haven't installed the PHP-Soap module.");

}

ini_set('max_execution_time',1 );

try {

$options = array(

'soap_version'=>SOAP_1_2,

'exceptions'=>true,

'trace'=>1,

'cache_wsdl'=>WSDL_CACHE_NONE

);

$client = new SoapClient('http://xxx.xxxx.asmx?WSDL', $options);

// Note where 'CreateIncident' and 'request' tags are in the XML

$results = $client->CreateIncident(

array(

'FirstName'=>'gyaan',

'LastName'=>'p',

'Email'=>'aa@gmail.com',

'QueryProductClass'=>'QueryProductClass',

'ChannelCode'=>12,

'CampaignCode'=>234,

'Lob'=>'Lob',

'PackageName'=>'SEONI',

'PackageCode'=>'SMP',

'TravelYear'=>2012,

'TravelMonth'=>06,

'TravelDay'=>29,

'CityOfResidence'=>'Jabalpur',

'ncidentNotes'=>'testing ignor this',

'MobilePhone'=>'1234567890',

'DepartureCity'=>'bangalore',

'NoOfDaysTravel'=>'3 Days',

'VendorName'=>'TEST HIQ'

)

);

} catch (Exception $e) {

echo "

Exception Error!

";

echo $e->getMessage();

}

?>

请告诉我我在做什么错误

我在WSDL和肥皂中是新的

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值