0 Replies Latest reply on Sep 22, 2010 7:05 AM by Oliver Specht

    WS Security with .NET server

    Oliver Specht Newbie


      I want to implement a WS Client to communicate with a .NET server which uses WS Security authentification.


      I did the following in my client code:


              URL securityURL = TestClientBean.class.getResource("/jboss-wsse-client.xml");
              ((StubExt) services).setSecurityConfig(securityURL.toExternalForm());
              ((StubExt) services).setConfigName("Standard WSSecurity Client");
              ((BindingProvider) services).getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "USER");
              ((BindingProvider) services).getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "PASS");


      The jboss-wsse-client.xml is empty except for the default header stuff...


      But I always get:


      12:47:51,673 ERROR [CommonClient] Exception caught while (preparing for) performing the invocation:
          javax.xml.ws.soap.SOAPFaultException: Fehler beim Überprüfen der Sicherheit für die Nachricht.
          at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:84)
          at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:107)


      How can I debug that? I really do not know where to start...


      Thanks for any help,