1 Reply Latest reply on Apr 13, 2005 6:02 AM by Thomas Diesler

    how to do basic athentication with dynamic proxy client?

    Johan Borchers Newbie

      Hello

      I'm using JBoss 4.0.1sp1.

      I do call an external WS from a SLSB. It works OKE.

      InitialContext context = new InitialContext();
      DaisyService service = (DaisyService) context.lookup("java:comp/env/service/DaisyService");
      TapeFacadeEndpoint port = service.getTapeFacadeEndpointPort();
      result = port.getXMLByNumber(number);
      


      But I want to add basic authentication to my dynamic proxy code.
      I see examples of basic authentication with client stubs but not with dynamic proxy.

      Code example of adding basic authentication to a stub
      endpoint._setProperty(Stub.USERNAME_PROPERTY, "me");
      endpoint._setProperty(Stub.PASSWORD_PROPERTY, "mypassword");
      


      Has anyone any idea of how I can add basic authentication to my dynamic proxy code?


      T.I.A.
      Johan