우리는 타사 SOAP 서비스에 연결해야하며 WCF를 사용하고 있습니다. 이 서비스는 Apache AXIS를 사용하여 개발되었으며, 우리는이 서비스를 제어 할 수 없으며 작동 방식을 변경하지 않습니다. 우리가보고있는 문제는 요청이 웹 서비스 보안을 사용하여 포맷되기를 기대하기 때문에 정확한 서명 등을하고 있습니다.하지만 제 3 자의 응답은 안전하지 않습니다. 철사를 킁킁 거리면 응답이 잘 돌아옵니다 (타임 스탬프, 서명 등은 없지만). 기본 .NET 구성 요소는 보안 문제로 간주하기 때문에 오류가 발생하므로 실제 비누 응답을받지 못합니다. 보안 요청을 보내도록 WCF 프레임 워크를 구성하는 방법이 있습니까? 그러나 응답의 보안 필드가 필요하지는 않습니까? OASIS 사양을 살펴보면 응답이 안전해야한다는 요구는 나타나지 않습니다.요청에 보안을 사용하도록 WCF에 알리는 방법이 있습니까? 그렇지만 응답에서 무시하십시오.
우리가받을 예외는 다음과 같습니다 : 내용
, 여기에 우리가 볼 수있는 예외입니다, 내가 본 덧붙여
System.ServiceModel.Security.MessageSecurityException was caught
Message="Security processor was unable to find a security header in the message. This might be because the message is an unsecured fault or because there is a binding mismatch between the communicating parties. This can occur if the service is configured for security and the client is not using security."
Source="mscorlib"
StackTrace:
Server stack trace:
at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessageCore(Message& message, TimeSpan timeout)
at System.ServiceModel.Security.TransportSecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout)
at System.ServiceModel.Security.SecurityProtocol.VerifyIncomingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState[] correlationStates)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.ProcessReply(Message reply, SecurityProtocolCorrelationState correlationState, TimeSpan timeout)
at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
을 알리는 게시물의 많은 당신은 밖으로, 다음의 타임 스탬프를 떠날 경우 보안 필드는 예상되지 않습니다. 이것은 옵션이 아닙니다 - 우리가 통신하는 서비스는 타임 스탬프를 요구합니다.
또한이 패치는 .NET 3.0 핫픽스도 있습니다 .NET 3.5 SP1 –
의 일부입니다,하지만 요청에 있습니다. 또한 3.5 SP1 용 핫픽스는 Windows 7 SP1 (및 Server 2008)에서도 사용 가능합니다. – nickvane