0
저는 nusoap을 처음 사용하여 webservice 서버를 개발했습니다. 내 기능에, 나는이반송 봉투와 nusoap
/**
* @param string $sXml
* @param string $sFilters
* @return mixedHello you !
* @soap
*/
를 선언 있도록
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UpdateLeadResponse xmlns="http://icrm.pat.it/fiat/ws">
<UpdateLeadResult>
<ID>string</ID>
<ResultCode>OK</ResultCode>
<ResultDescription>string</ResultDescription>
</UpdateLeadResult>
</UpdateLeadResponse>
</soap:Body>
</soap:Envelope>
내가 YII 프레임 워크를 사용하십시오 StdClass
$rep = new StdClass();
$test = new stdClass();
$test->LeadID = "";
$test->ResultCode = "OtherError";
$test->ResultDescription = $errorDesc;
$rep->UpdateLeadResult = $test;
를 반환 할 시도했다 : 이 같은 응답을 반환해야
하지만 지금 내가 SoapUI로 테스트 할 때, 나는 이렇게 어떻게 동봉 된 태그 '반환'을 제거 할 수 있습니다.
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:WebServControllerwsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:ProcessRequestResponse>
<return xsi:type="SOAP-ENC:Struct">
<UpdateLeadResult xsi:type="SOAP-ENC:Struct">
<LeadID xsi:type="xsd:string"></LeadID>
<ResultCode xsi:type="xsd:string">OK</ResultCode>
<ResultDescription xsi:type="xsd:string"/>
</UpdateLeadResult>
</return>
</ns1:ProcessRequestResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
개
덕분에 많은