1
매개 변수하지만 난 WSDL 파일 느릅 나무 매개 변수가 필요하고에 읽기 알아낼 수 없습니다 구조화하는 방법 : 나는했습니다WSDL 내가이 작업 getCountries을 invoque하기 위해 노력하고있어
http://webservice.nizacars.es/Rentway_WS/getCountries.asmx?WSDL
이미와 시도 :.
$this->soap_client->getCountries(
array(
'countriesRequest' => array(
'companyCode' => $this->login,
'allCountries' => true
)
)
)
$this->soap_client->getCountries(
array(
'companyCode' => $this->login,
'allCountries' => true
)
)
$this->soap_client->getCountries(
'companyCode' => $this->login,
'allCountries' => true
)
하지만 나는이 "이 [서버가 요청을 처리 할 수 없습니다지고있어 이후는, 사양과 일치하지있어 보인다 ---> 개체 참조의 인스턴스로 설정되지 않았습니다 개체] "
SoapClient와 마지막 요청 :: __ getLastRequest은 다음과 같습니다
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.jimpisoft.pt/Rentway_Reservations_WS/getCountries">
<SOAP-ENV:Body>
<ns1:getCountries/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
편집 솔루션 :
$data = array(
'getCountries' => array(
'objRequest' => array(
'companyCode' => $this->login,
'allCountries' => true
)
)
);
$result = @$this->_client->__call('getCountries',$data);
이 SoapClient :: __ getLastRequest 방법의 출력 SOAP -ENV = "http://schemas.xmlsoap.org/soap/envelope/"xmlns : ns1 = "http://www.jimpisoft.pt/Rentway_Reservations_WS/getCountries"> SOAP-ENV : Envelope> –
vivoconunxino
출력을 주석 섹션에서 읽을 수 없으므로 원본 질문/OP에 코드 서식 태그를 붙여 붙여보십시오. –
https://www.jimpisoft.pt/Rentway_Reservations_WS/getCountries.asmx?op=getCountries에있는 예제에 따르면 요청에 allCountries 요소가 있어야합니다 (요청한 내용은 wsdl에 따라 유효하지만). –