Is there a way to get an item in the MessageContext for a handler to look at. This is from the client code that is calling the gnerated code.
| HelloWorld_Impl service = new HelloWorld_Impl(); | HelloWorldEndpoint endPoint = service.getHelloWorldEndpointPort(); | | Stub stub = (Stub) endPoint; | | stub._setProperty(Stub.USERNAME_PROPERTY, "scott"); | stub._setProperty(Stub.PASSWORD_PROPERTY, "password"); | stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://localhost:7070/helloworld/1.0"); | | try { | String output = endPoint.hello("Scott"); | | } catch (RemoteException e) { | // TODO Auto-generated catch block | e.printStackTrace(); | super.fail("exception caught in test case"); | } | I know how to get a hold of the message context from the ejb that is called | SOAPMessageContext msgContext = (SOAPMessageContext)_ctx.getMessageContext(); | SOAPMessage soapMessage = msgContext.getMessage(); | SOAPHeader soapHeader; | try { | soapHeader = soapMessage.getSOAPHeader(); | Iterator it = soapHeader.extractAllHeaderElements(); | if (it.hasNext() == false) | log.info("No header elements"); | } | I need to place something in the context or some way to pass something to one of my handlers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893460#3893460 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893460 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user