2011-06-19 9 views
1

私のWSDLファイルのスニペットです。上記のいずれかの行でWSDL警告:soapbind:fault要素に欠陥があります。どういう意味ですか?

<wsdl:portType name="MtchWS">             
    <wsdl:operation name="inference"> 
     <wsdl:input message="tns:inferencerequest" name="inferencerequest"/> 
     <wsdl:output message="tns:inferenceresponse" name="inferenceresponse"/> 
     <wsdl:fault message="tns:errorresponse" name="errorresponse"/>    
    </wsdl:operation> 
</wsdl:portType> 

<wsdl:binding name="MtchWSBinding" type="tns:MtchWS">     
    <soap:binding style="document"             
     transport="http://schemas.xmlsoap.org/soap/http"/>       
    <wsdl:operation name="inference"> 
     <soap:operation soapAction="http://www.mywebsite.com/webservice"/>   
     <wsdl:input name="inferencerequest"> 
      <soap:body use="literal"/>            
     </wsdl:input> 
     <wsdl:output name="inferenceresponse"> 
      <soap:body use="literal"/> 
     </wsdl:output> 
     <wsdl:fault name="errorreponse"> 
      <!-- <soap:fault use="literal"/>--> 
     </wsdl:fault> 
    </wsdl:operation> 
</wsdl:binding> 

<wsdl:service name="MtchWSService"> 
    <wsdl:port binding="tns:MtchWSBinding" name="MtchWSPort">   
     <soap:address location="http://localhost:8080/mwp/mws"/>    
    </wsdl:port> 
</wsdl:service>  

( "WSDL:バインディング名=" を含む1 MtchWSBinding」タイプ= "TNS:MtchWS")は、私が言って警告を受ける。

WS-I:( BP2032)欠陥のある要素:fault要素: "name"属性の値が親要素の "name"属性の値と一致しないwsdl:fault。

これはどういう意味がありますか? Webサービスは正常に動作しているようですが、私はWSDL2ObjCの問題を抱えていますが、この警告に関連しています。

tnx

+1

を追加しました。 – bmargulies

答えて

2

ok私は修正しました。または使用しているWebサービスキットはバグがある:

はちょうどあなたが最も重要な部分(障害soapbind)をオフに残してきたいずれの

<wsdl:fault name="errorresponse"> 
      <soap:fault name="errorresponse" use="literal"/> 
     </wsdl:fault> 
関連する問題