无法建立信任关系wso2 ESB

时间:2012-09-27 14:50:26

标签: ssl wso2 esb wso2esb

你好我通过http消费代理,所以当我看到这个错误时我感到很惊讶:

无法建立信任关系

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 Web App:

            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>

有什么建议我不能使用代理服务器吗?

感谢您的帮助

1 个答案:

答案 0 :(得分:1)

这与.Net App有关。有关此问题的可用来源数量

例如: http://support.microsoft.com/kb/823177