如何配置自定义绑定以使用WCF使用此WS-secure Web服务?
我正在尝试将WCF客户端配置为能够使用返回以下响应消息的Web服务: 响应消息 为此,我构建了一个无法工作的自定义绑定。我一直收到一条安全标题为空的消息 我的装订: 我的请求似乎使用了与响应相同的SOAP和WS-Security版本,但使用了不同的名称空间前缀o而不是wsse。这可能是我一直收到安全标头为空消息的原因吗 请求消息 我需要如何配置我的WCF客户端绑定才能使用此Web服务 非常感谢您的帮助如何配置自定义绑定以使用WCF使用此WS-secure Web服务?,wcf,client,ws-security,Wcf,Client,Ws Security,我正在尝试将WCF客户端配置为能够使用返回以下响应消息的Web服务: 响应消息 为此,我构建了一个无法工作的自定义绑定。我一直收到一条安全标题为空的消息 我的装订: 我的请求似乎使用了与响应相同的SOAP和WS-Security版本,但使用了不同的名称空间前缀o而不是wsse。这可能是我一直收到安全标头为空消息的原因吗 请求消息 我需要如何配置我的WCF客户端绑定才能使用此Web服务 非常感谢您的帮助 Sander我的问题似乎在以下kb文章中得到了解决: 尚未下载修复程序,因为似乎没有可用的下载
Sander我的问题似乎在以下kb文章中得到了解决:
尚未下载修复程序,因为似乎没有可用的下载链接。。。将保持此线程的更新。仍然不走运。一些额外信息:我正在使用OC4J网络服务。WSE可以很好地使用此服务。SOAPUI还支持ws-security、passwordtext。
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://myservice.wsdl">
<env:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" env:mustUnderstand="1" />
</env:Header>
<env:Body>
<ns0:StatusResponse>
<result>
...
</result>
</ns0:StatusResponse>
</env:Body>
</env:Envelope>
<customBinding>
<binding name="myCustomBindingForVestaServices">
<security authenticationMode="UserNameOverTransport"
messageSecurityVersion="WSSecurity11WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11"
securityHeaderLayout="Strict"
includeTimestamp="false"
requireDerivedKeys="true">
</security>
<textMessageEncoding messageVersion="Soap11" />
<httpsTransport authenticationScheme="Negotiate" requireClientCertificate ="false" realm =""/>
</binding>
</customBinding>
<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">
<o:UsernameToken u:Id="uuid-d3b70d1f-0ebb-4a79-85e6-34f0d6aa3d0f-1">
<o:Username>user</o:Username>
<o:Password>pass</o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body>
<getPrdStatus xmlns="http://myservice.wsdl">
<request xmlns="" xmlns:a="http://myservice.wsdl" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
...
</request>
</getPrdStatus>
</s:Body>
</s:Envelope>