我已經下載了,並且正在嘗試使用WSO2 ESB並使用wsHttpBindings設置WCF服務的代理。當我使用Soap Tracing時,一切正常 - 當我關閉它時,每次都會出現500內部服務器錯誤。我完全堅持這一點,不明白爲什麼會這樣。WSO2 ESB - Soap Tracing關閉時代理不起作用
我已經嘗試設置通過代理和基於WCF的代理服務器,我總是有完全相同的問題 - 與肥皂跟蹤啓用一切看起來不錯,完美的作品。如果我關掉它,否則不碰任何東西,我得到一個500錯誤:
System.ServiceModel.ProtocolException: An HTTP Content-Type header is required for SOAP messaging and none was found. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
我有一個basicHttpBinding的嘗試它,它似乎做工精細用肥皂跟蹤打開或關閉。這個問題似乎只是與wsHttpBindings。
這裏是代理的完整源:
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="ContactService"
transports="http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<outSequence>
<send/>
</outSequence>
<endpoint>
<wsdl service="ContactService"
port="ContactService_WsHttp"
uri="http://localhost/Actions/ContactService.svc?singleWsdl"/>
</endpoint>
</target>
<publishWSDL uri="http://localhost/Actions/ContactService.svc?singleWsdl"/>
<description/>
</proxy>
我已經加入了完整的源代碼爲代理原來的問題 - 它是如此奇怪的是,它的工作原理100%,與在啓用SOAP示蹤預期ESB,但是當我關閉它時根本不起作用,我得到了500錯誤!我不認爲示蹤者應該改變ESB的工作方式? – Wiredness