本文整理汇总了PHP中Authority::GetServiceWSDL方法的典型用法代码示例。如果您正苦于以下问题:PHP Authority::GetServiceWSDL方法的具体用法?PHP Authority::GetServiceWSDL怎么用?PHP Authority::GetServiceWSDL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Authority
的用法示例。
在下文中一共展示了Authority::GetServiceWSDL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: resolveLSID
function resolveLSID($l)
{
global $config;
$rdf = '';
$xml = '<?xml version="1.0" encoding="utf-8" ?>' . "\n";
$xml .= "<result>\n";
$xml .= "<lsid>" . $l . "</lsid>\n";
$lsid = new LSID($l);
$proxy = '';
if ($config['proxy_name'] != '') {
$proxy = $config['proxy_name'] . ":" . $config['proxy_port'];
}
$authority = new Authority($proxy);
$ok = false;
if (!$lsid->isValid()) {
$xml .= "<error>LSID is not validly formed</error>\n";
} else {
$ok = $authority->Resolve($l);
if (!$ok) {
$xml .= "<error>DNS lookup for " . $lsid->getAuthority() . " failed</error>\n";
} else {
$authority->GetAuthorityWSDL();
$ok = $authority->GetHTTPBinding();
if (!$ok) {
$xml .= "<error>No HTTP binding found</error>\n";
}
$ok = $authority->GetServiceWSDL($l);
if (!$ok) {
$xml .= "<error>Error retrieving service WSDL</error>";
} else {
$authority->GetMetadataHTTPLocation();
$rdf = $authority->GetHTTPMetadata($l);
$ok = $rdf != '';
}
}
}
if ($ok) {
return $rdf;
} else {
$xml .= "<error_codes" . " HTTP=\"" . $authority->http_code . "\"" . " LSID=\"" . $authority->lsid_code . "\"" . " CURL=\"" . $authority->curl_code . "\"" . " />\n";
$xml .= "</result>\n";
return $xml;
}
}