我在調用Java Web服務的代碼中發生錯誤。該代碼在我團隊其餘的PC上運行良好。我有完全相同的源代碼副本。所以我猜這是我個人電腦上的配置問題,埋在什麼地方,與源代碼本身無關?從.NET代碼調用Java Web服務時出錯?
我得到的錯誤是:
HTTP請求與客戶端的認證方案「匿名」
下面是從web.config 2個配置部分禁止。
<binding
name="SEITokenServiceBinding"
closeTimeout="00:01:00"
openTimeout="00:01:00"
receiveTimeout="00:10:00"
sendTimeout="00:01:00"
allowCookies="false"
bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536"
maxBufferPoolSize="524288"
maxReceivedMessageSize="65536"
messageEncoding="Text"
textEncoding="utf-8"
transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas
maxDepth="32"
maxStringContentLength="8192"
maxArrayLength="16384"
maxBytesPerRead="4096"
maxNameTableCharCount="16384" />
<security
mode="None"/>
</binding>
<client>
<endpoint
address="http://10.1.1.1:8180/tokenService"
binding="basicHttpBinding"
bindingConfiguration="SEITokenServiceBinding"
contract="TokenService.SEITokenService"
name="SEITokenServicePort">
<identity></identity>
</endpoint>
</client>
我對我們的系統管理員說過。他們發誓我們都有相同的配置文件。我甚至試圖更新我的政策,以確保我擁有最新的政策。仍然不起作用。 – Bernard 2009-11-25 15:12:11
我不敢肯定,我害怕。對不起,我無法提供更多幫助。 – 2009-11-25 15:26:26