몇 달 전에이 질문을했지만 웹 서비스가 올바르게 작동하지 않는 것이 문제였습니다. 이제는 완벽하게 작동하고 있으며 여전히 간단한 요청을하는 데 문제가 있습니다. 우선, 시도해 보니 http://www.validwsdl.com/ WS는 http://amibcertifica.amib.com.mx:9090/axis2/services/JpaWebServicesAmib?wsdl
당신 스스로 시도 할 수 있습니다. 해당 웹 사이트에서 정상적으로 작동합니다. 지금은 NuSOAP와 요청을 만들려고 노력하고있어 나는이 오류를 얻을 : namespace mismatch require http://ws.mobius.amib found http://tempuri.org
NuSOAP (클라이언트 측)을 사용하여 네임 스페이스를 설정하는 방법
당신이있어 전체 오류를 확인할 수 있습니다 :
<?php
require_once('nusoap/lib/nusoap.php');
$url = "http://amibcertifica.amib.com.mx:9090/axis2/services/JpaWebServicesAmib?wsdl";
try
{
$client = new nusoap_client($url);
$err = $client->getError();
if ($err) {
// Display the error
echo '<h2>Constructor error</h2><pre>' . $err . '</pre>';
// At this point, you know the call that follows will fail
}
$result = $client->call('findAllComprobanteOperacion');
}
catch (SoapFault $e)
{
echo 'Error0'.$e->getMessage() . "\n";
}
echo '<pre>';print_r($result);
echo $client->debug_str;
?>
: http://dev.etic.com.mx/bmv/test.php
내 코드는 다음과 같다 NuSOAP 버전 : $Id: nusoap.php,v 1.123 2010/04/26 20:15:08 snichol Exp $
나는 웹을 통해이 작업을 수행하는 방법을 모색 해 왔으며 완전히 단서가 없으므로 도움을 얻을 수 있습니다. 미리 감사드립니다.
남자 야! 너 sth 알아? 너는 내 천사 야! 고마워요! nusoap 소스 코드를 검색 및 디버깅하고 탐색 한 후 백만 가지를 테스트 한 결과, 귀하의 답변이 완성되었습니다! – Abadis