2014-03-25 2 views
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> 

덕분에 많은

답변

0

나는 내가 제거 그래서 내가이 retrun 태그를 포함 할 수 없습니다 구현해야하는이 게시물에 효과적으로 WSDL을 발견이 하나

[링크] HTTP : //pear.php .net/bugs/bug.php? id = 2877 [/ link]

하지만 어디서 수정을해야할지 모르겠다.

도움 주셔서 감사합니다.