iPlanet代理服务器发生WCF错误 [英] WCF error with iPlanet proxy server

查看:89
本文介绍了iPlanet代理服务器发生WCF错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个Silverlight应用程序(网站1),该应用程序与WCF服务库(在IIS网站2中托管)进行通信,如果我直接点击Silverlight应用程序的IIS网址,一切都可以正常工作,但是当尝试通过iPlanet代理服务器URL使用时,Silverlight应用程序却无法正常工作能够与WCF服务库站点进行通信,拒绝401访问,我在ieHttpHeaders实用程序中获得了以下信息:

POST http://MYSERVERHOST:1161/MYServiceLibrary/MYService.svc HTTP/1.1
接受:*/*
接受语言:en-US
引荐来源:http://MYSERVERHOST:1161/MYSilverlightApp/ClientBin/MySilverlightApp.xap
内容长度:651
接受编码:身份
内容类型:text/xml; charset = utf-8
SOAPAction:& quot; http://tempuri.org/IMYService/GetAccounts& quot;
用户代理:Mozilla/4.0(兼容; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022 ; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)
主机:MYSERVERHOST:1161
代理连接:保持活动
语法:无缓存
< s:信封xmlns:s =& quot; http://schemas.xmlsoap.org/soap/envelope/& lt; s:Body& lt ; GetAccounts xmlns =& quot; http://tempuri.org/& gt;& lt;/GetAccounts& gt;& lt;/s:Body& lt;/s :信封& gt;

HTTP/1.1 401 401:访问被拒绝
服务器:未知Web服务器
日期:2010年12月21日,星期二18:55:14 GMT
万维网身份验证:基本领域=""Intranet-MYSERVERHOST [13:55:14:4800]& quot;
内容类型:text/html
缓存控制:proxy-revalidate
内容长度:235
代理连接:保持活动
连接:保持活动
Set-Cookie:SMCHALLENGE = YES;路径=/; domain = .MYSERVERHOST; HTTPOnly
代理支持:基于会话的身份验证


问候,
Kthatik

解决方案

代理服务器是否也可能需要身份验证?

我会根据所使用的选项来检查在web.config或通过ServiceClient或ChannelFactory中的代码设置代理服务器身份验证时必须使用哪些选项.


Hi,

I''ve a Silverlight application (website1) which communicates with WCF Service Library (hosted in IIS website2), everything works fine if I directly hit IIS Url of silverlight application, but when try using via iPlanet proxy server URL, Silverlight applcation is not able to communicate with WCF service library site, 401 Access denied, I got below information in ieHttpHeaders utility:

POST http: //MYSERVERHOST:1161/MYServiceLibrary/MYService.svc HTTP/1.1
Accept: */*
Accept-Language: en-US
Referer: http://MYSERVERHOST:1161/MYSilverlightApp/ClientBin/MySilverlightApp.xap
Content-Length: 651
Accept-Encoding: identity
Content-Type: text/xml; charset=utf-8
SOAPAction: &quot;http://tempuri.org/IMYService/GetAccounts&quot;
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; MS-RTC LM 8)
Host: MYSERVERHOST:1161
Proxy-Connection: Keep-Alive
Pragma: no-cache
&lt;s:Envelope xmlns:s=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;&gt;&lt;s:Body&gt;&lt;GetAccounts xmlns=&quot;http://tempuri.org/&quot;&gt;&lt;/GetAccounts&gt;&lt;/s:Body&gt;&lt;/s:Envelope&gt;

HTTP/1.1 401 401: Access Denied
Server: Unknown Web Server
Date: Tue, 21 Dec 2010 18:55:14 GMT
Www-authenticate: basic realm=&quot;intranet-MYSERVERHOST [13:55:14:4800]&quot;
Content-type: text/html
Cache-Control: proxy-revalidate
Content-length: 235
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: SMCHALLENGE=YES; path=/; domain=.MYSERVERHOST; HTTPOnly
Proxy-support: Session-based-authentication


regards,
Kthatik

解决方案

Is it possible that the proxy server also requires authentication?

I''d check out what options you have to set proxy server authentication in either web.config, or through code in your ServiceClient or ChannelFactory, depending on which one you''re using.


这篇关于iPlanet代理服务器发生WCF错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆