2

아래 코드에서 Jason Lattimer와 비슷한 코드를 사용했지만 실패했습니다. 더 이상 wsdl에서 "식별자"를 찾을 수 있습니다. 아무도 이것에 대한 도움을 줄 수 있습니까?XRMServices/2011/Organization.svc에서 식별자 가져 오기 문제

function GetADFS($url) { 
    $ch = curl_init(); 
    curl_setopt ($ch, CURLOPT_URL, $url . "XrmServices/2011/Organization.svc?wsdl=wsdl0"); 
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
    curl_setopt ($ch, CURLOPT_TIMEOUT, 60); 
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, false); 

    $response = curl_exec ($ch); 
    curl_close ($ch); 

    $responsedom = new DomDocument(); 
    $responsedom->loadXML ($response); 

    // **************************************************  
    // ************************************************** 
    // Can no longer find this Identifier 
    // ************************************************** 
    // ************************************************** 
    $identifiers = $responsedom->getElementsbyTagName ("Identifier"); 
    $identifier = $identifiers->item (0)->textContent; 

    return str_replace ("http://", "https://", $identifier); 
} 

답변

0

그것은 네임 스페이스 'MS-xRM을'에있어 매우

$identifiers = $responsedom->getElementsbyTagNameNS ("ms-xrm","Identifier"); 

$identifiers = $responsedom->getElementsbyTagName ("Identifier"); 

를 교체하고 확인. 다음으로이 노드가 보이지 않으면 실제 WSDL을 체크인하여 ADFS를 사용할 때만 해당 노드를 사용할 수 있기 때문에 CRM 구성에 문제가있을 수 있습니다.

+0

감사합니다. 너는 내 질문에 대답했다. AD를 사용하고 있지만 ADFS는 사용하지 않습니다. 내부 AD 배포와 비슷한 것을 얻으려면 어떻게해야합니까? – Campey

+0

'비슷한'이 무슨 뜻입니까? ADFS가 없으면 '식별자'노드가 없습니다. – pen2

+0

그렇다면 연합 서버가 아닌 Active Directory 서버를 어떻게 찾을 수 있습니까? – Campey