将WSE 2.0 web服务从Windows 2003迁移到Windows 2008 R2
本文关键字:Windows 2003 迁移 2008 R2 WSE web 服务 | 更新日期: 2023-09-27 18:21:52
只是想知道是否可以将WSE 2.0 web服务(.asmx)从Windows 2003服务器迁移到Windows 2008 R2服务器(IIS 7)?更复杂的是,服务出于安全目的使用x509证书。
我已经将服务从Windows 2003服务器复制到Windows 2008 R2服务器上,通过IIS 7将它们创建为web应用程序,并且它们在URL中显示得很好。然而,当我通过SOAP调用服务时,我会得到SOAP标头异常:
System.Web.Services.Protocols.SoapException:
System.Web.Services.Protocols.SoapHeaderException:
SOAP header Security was not understood.
at System.Web.Services.Protocols.SoapHeaderHandling.SetHeaderMembers(
SoapHeaderCollection headers, Object target, SoapHeaderMapping[] mappings,
SoapHeaderDirection direction, Boolean
client)
at System.Web.Services.Protocols.SoapServerProtocol.CreateServerInstance()
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at Microsoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(
String methodname, SoapEnvelope envelope)
at RawSoapCaller.RawSoapCall.getRawSoapResponseText() in
C:'Data'ISHS'metadata_framework'RawSoapCaller'RawSoapCaller'RawSoapCall.cs:line 59
有人能帮我弄清楚我正在做的事情是否可能吗?如果可能,我的问题可能是什么?或者,我可以采取什么替代方法将WSE 2.0服务从Windows 2003迁移到Windows 2008?
听起来你没有正确地转移证书。
请在此处尝试:http://msdn.microsoft.com/en-us/library/ms824840.aspx