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);
endpoint._setProperty(Stub.USERNAME_PROPERTY, "me"); endpoint._setProperty(Stub.PASSWORD_PROPERTY, "mypassword");
The dynamic proxy that you get from the JNDI lookup implements the javax.xml.rpc.Stub interface. So the code above should work when you cast the dynamic proxy to a Stub.