3 Replies Latest reply on Dec 4, 2007 10:18 AM by method_ben

    JBoss WSSecurity and .Net Client

      I've tried a lot to interop between .Net (C#) Client using WSE 3.0 and Jboss 4.2.0 Webservices secured with WSSecurity (Signing and encrypting the webservices).
      But still it doesn't work...

      So if anybody has solved this problem, or knows where I can find documentation/help please let me know...

      WSE 3.0 is no requirement, so any (proprietary) solution is ok as well

        • 1. Re: JBoss WSSecurity and .Net Client
          method_ben

          I have the same problem, do you find a solution ?

          • 2. Re: JBoss WSSecurity and .Net Client
            asoldano

             

            "rohstoffmond" wrote:
            I've tried a lot to interop between .Net (C#) Client using WSE 3.0 and Jboss 4.2.0 Webservices secured with WSSecurity (Signing and encrypting the webservices).
            But still it doesn't work...


            Using the right configuration of both .Net and JBossWS you should be able to obtain interoperability. Could you please provide some further information?
            Which version of JBossWS are you using? Which error are you getting (stacktrace and log)? What is your jbossws wsse conf?
            Is the .Net side the server side? if so, could you please post here the wsdl? Is it using WS-Security Policy?


            • 3. Re: JBoss WSSecurity and .Net Client
              method_ben

              I did a web service with JBossWS running on JBoss AS 4.2.2.GA. I installed JBossWS 2.0.2.GA. I deployed it in a war file with the jboss-wsse-client.xml,jboss-wsse-server.xml, wsse.keystore and wsse.truststore (in the WEB-INF).

              "Every things is ok with a java client". I have exported a certificate with the java keytool.

              In my Visual Studio Project, I specify the certificate with WSE Setting 3.0 (the Policy Tab). When I run my .Net client, I get this error :

              System.Security.Cryptography.CryptographicException

              "Object contains only the public half of a key pair. A private key must also be provided."

              The exception is throwed by .Net Environment and I get no exception on my JBoss AS log file.

              I think that the exported certificate from the java keystore does not contain the private key or has not a valid format!?

              The certificate must be converted ?

              Thx