SOAP错误:解析WSDL:在WSD中找不到任何可用的绑定服务 [英] SOAP-ERROR: Parsing WSDL: Could not find any usable binding services in WSD

查看:569
本文介绍了SOAP错误:解析WSDL:在WSD中找不到任何可用的绑定服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想进行werbservice调用,但这会给我以下错误:

I want to make a werbservice invocation but it gives me the following error:

SOAP错误:解析WSDL:在

SOAP-ERROR: Parsing WSDL: Could not find any usable binding services in

这是代码

error_reporting(E_ALL);
ini_set('display_errors', '1');


define('URI', 'http://200.31.114.39/Servicio-Rest/STMPOST_SMAR.svc?singlewsdl');

try {
    $client = new SoapClient(URI);
    print_r($client);
    //~ $result = $client->SomeFunction();
} catch (SoapFault $fault) {
    trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}

有什么问题吗?

仅供参考:

我已经启用肥皂

$ php -i | grep -i soap

soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

推荐答案

您要使其成为客户端的WSDL是抽象的WSDL文档. 可以将抽象WSDL用于分析目的,但是它不包含调用服务的所有必要信息.

The WSDL you are trying to make a client for is an abstract WSDL document. An abstract WSDL could be used for analyzing purposes but it does not contain all the necessary information to call a service.

有关通过SOAP调用服务的技术信息存储在WSDL的绑定元素中.如果是WSDL,则没有可用的绑定信息.

The technical information about calling a service for example via SOAP is stored in the binding element of a WSDL. In case of your WSDL there is no binding information available.

这篇关于SOAP错误:解析WSDL:在WSD中找不到任何可用的绑定服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆