使用WS-Security将.Net应用程序连接到JAVA Web服务。寻找一个英雄! [英] Connecte .Net app to JAVA web service with WS-Security. Looking for a HERO!

查看:69
本文介绍了使用WS-Security将.Net应用程序连接到JAVA Web服务。寻找一个英雄!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用BinarySecurityToken将.Net应用程序连接到java web服务。 

I need to connect an .Net app to a java webservice with BinarySecurityToken. 

到目前为止我所拥有的是:

What i have so far is:

< system.serviceModel>
< bindings>
< customBinding>
< binding name =" MyBinding" >
< textMessageEncoding messageVersion =" Soap11" />
< security authenticationMode =" MutualCertificate" enableUnsecuredResponse = QUOT;真" allowSerializedSigningTokenOnReply = QUOT;真"
messageSecurityVersion =" WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10"
includeTimestamp =" false"
>
< / security>
< httpTransport />
< / binding>
< / customBinding>
< / bindings>
< behavior>
< endpointBehaviors>
< behavior name =" BindingBehavior">
< clientCredentials>
< clientCertificate findValue =" xxxx"
storeLocation =" LocalMachine" STORENAME = QUOT;我"
x509FindType =" FindByThumbprint" />
< serviceCertificate>
< defaultCertificate findValue =" xxxx"
storeLocation =" LocalMachine" STORENAME = QUOT;根和QUOT;
x509FindType =" FindByThumbprint" />
< authentication certificateValidationMode =" None" />
< / serviceCertificate>
< / clientCredentials>
< / behavior>
< / endpointBehaviors>
< / behavior>

< endpoint address =" url"
binding =" customBinding" bindingConfiguration = QUOT; MyBinding"
contract =" PostPaymentConfiguration.M"
name =" PostPaymentConfiguration"

<system.serviceModel> <bindings> <customBinding> <binding name="MyBinding" > <textMessageEncoding messageVersion="Soap11" /> <security authenticationMode="MutualCertificate" enableUnsecuredResponse="true" allowSerializedSigningTokenOnReply="true" messageSecurityVersion="WSSecurity10WSTrustFebruary2005WSSecureConversationFebruary2005WSSecurityPolicy11BasicSecurityProfile10" includeTimestamp="false" > </security> <httpTransport /> </binding> </customBinding> </bindings> <behaviors> <endpointBehaviors> <behavior name="BindingBehavior"> <clientCredentials> <clientCertificate findValue="xxxx" storeLocation="LocalMachine" storeName="My" x509FindType="FindByThumbprint" /> <serviceCertificate> <defaultCertificate findValue="xxxx" storeLocation="LocalMachine" storeName="Root" x509FindType="FindByThumbprint" /> <authentication certificateValidationMode="None" /> </serviceCertificate> </clientCredentials> </behavior> </endpointBehaviors> </behaviors> <endpoint address="url" binding="customBinding" bindingConfiguration="MyBinding" contract="PostPaymentConfiguration.M" name="PostPaymentConfiguration"

behaviorConfiguration =" BindingBehavior" < identity>

behaviorConfiguration="BindingBehavior" <identity>


          <dns value="10" />
        </identity>
      </endpoint>

当我用fiddler检查我的标题时,我没有看到添加了签名属性。 

When i check with fiddler my header i dont see the signature atribute added. 

我无法找到为什么没有添加。

I cant find why is not being added.

感谢任何帮助

关于论坛的讽刺,不知道在哪里添加这个。

Sry about the forum, dont know where to add this.

推荐答案

嗨GVarini,

Hi GVarini,

感谢您在此发帖。

您的项目类型是什么?你在JAVA应用程序中这样做吗? 

What is the type of your project? Do you do this in JAVA application? 

如果它与JAVA更相关,你可以在StackOverFlow中发布一个新线程。

If it is more related to JAVA, you could post a new thread in StackOverFlow.

< a href ="https://stackoverflow.com/questions/tagged/java"> https://stackoverflow.com/questions/tagged/java

最诚挚的问候,

Best Regards,

Wendy


这篇关于使用WS-Security将.Net应用程序连接到JAVA Web服务。寻找一个英雄!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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