Java/Axis 클라이언트에서 사용하고있는 usernameToken 인증을 사용하는 WCF4 서비스를 개발했습니다.WCF 응답의 MustUnderstand 특성으로 인해 Java/Axis 클라이언트에서 오류가 발생합니다.
내가 요청의 본문이 같은 모습에 오는 것을 볼 수 있습니다 ...
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wss:Security xmlns:wss="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wss:UsernameToken>
<wss:Username>username</wss:Username>
<wss:Password>password</wss:Password>
</wss:UsernameToken>
</wss:Security>
</soapenv:Header>
<soapenv:Body>
{snipped}
</soapenv:Body>
</soapenv:Envelope>
우리는이 같은 모습을 반환하는 응답 ...
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<s:Header>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<u:Timestamp u:Id="_0">
<u:Created>2012-05-02T01:23:12.711Z</u:Created>
<u:Expires>2012-05-02T01:28:12.711Z</u:Expires>
</u:Timestamp>
</o:Security>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
{snipped}
</s:Body>
</s:Envelope>
문제는 응답에 mustUnderstand = "1"속성이 있어야합니다. 이로 인해 Java/Axis 클라이언트에서 "Must Understand check failed"오류가 발생합니다.
누구든지이 s : mustUnderstand 특성을 제거하거나 적어도 "1"대신 "0"으로 설정하도록 WCF를 구성하는 방법을 알고 있습니까?
이 도움을한다 ... 다음과 같습니다? http://stackoverflow.com/questions/3551738/how-to-modify-a-wcf-message-headers-mustunderstanding-using-clientinspector – Chris
보안 구성은 무엇입니까? 아마도 구성에서 시간 소인을 제거하면 문제가 해결됩니다. 그렇지 않으면 사용자 정의 메시지 인코더를 구현하여 헤더를 수정해야합니다. –