2012-09-27 100 views
0

餵我消耗通過HTTP代理,所以當我看到這個錯誤我感到驚訝:無法建立信任關係WSO2 ESB

無法建立信任關係

System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure. 
    at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, Exception exception)... 

對於一個ASP。 NET網絡應用:

  Example1 es = new Example1(); 
      try 
      { 
       int result = es.checkUserExists("bob"); 
       TextBox1.Text = result.ToString(); 
      } 
      catch (Exception ex) { 
       TextBox1.Text = ex.ToString(); 
      } 

我的代理如下:

<proxy xmlns="http://ws.apache.org/ns/synapse" name="Example1" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> 
    <target> 
     <inSequence> 
     <property name="STATUS" value="asking_id" scope="default" type="STRING"/> 
     <log level="full"> 
      <property name="insequence****" value="This is the in sequence"/> 
      <property xmlns:ns2="http://chi/" name="property_arg0" expression="//ns2:checkUserExists/arg0"/> 
     </log> 
     <send> 
      <endpoint> 
       <address uri="http://192.168.10.176:8080/Example1/UserExist/"/> 
      </endpoint> 
     </send> 
     </inSequence> 
     <outSequence> 
     <switch source="get-property('STATUS')"> 
      <case regex="asking_id"> 
       <log level="full"> 
        <property name="sequence*******" value="outSequence - STATE 01 - asking for balance"/> 
        <property xmlns:ns2="http://chi/" name="property_result******" expression="//ns2:checkUserExistsResponse/return"/> 
        <property name="status********" expression="get-property('STATUS')"/> 
       </log> 
       <property xmlns:ns2="http://chi/" name="id_result" expression="//ns2:checkUserExistsResponse/return" scope="default" type="STRING"/> 
       <enrich> 
        <source type="inline" clone="true"> 
        <ns2:getBalancebyID xmlns:ns2="http://chi/">       
         <arg0 xmlns="">?</arg0>      
        </ns2:getBalancebyID> 
        </source> 
        <target type="body"/> 
       </enrich> 
       <enrich> 
        <source type="property" clone="true" property="id_result"/> 
        <target xmlns:ns2="http://chi/" xpath="//ns2:getBalancebyID/arg0"/> 
       </enrich> 
       <property name="STATUS" value="response" scope="default" type="STRING"/> 
       <send> 
        <endpoint> 
        <address uri="http://192.168.10.176:8080/Example1/UserBalance"/> 
        </endpoint> 
       </send> 
      </case> 
      <case regex="response"> 
       <log level="full"> 
        <property name="sequence*******" value="outSequence - STATE 02 - returning balance"/> 
       </log> 
       <send/> 
      </case> 
     </switch> 
     </outSequence> 
    </target> 
    <publishWSDL key="conf:/UserExist.xml"/> 
    <description></description> 
</proxy> 

爲什麼我不能使用代理的任何建議?

謝謝您的幫助

+0

你端點URL應該指向的服務。 。不是wsdl鏈接 Ratha

+0

仍然不能工作 – nuvio

回答

相關問題