4 Replies Latest reply on Feb 19, 2008 8:35 PM by mrostan

    Change the endpoint address in runtime using Dispatch


      Hi, I'm using JBossWS 2.0.3 to run this simple code:

      JAXBContext ctx = JAXBContext.newInstance(Discover.class, DiscoverResponse.class);
      Dispatch<Object> dispatch = service.createDispatch(portQName, ctx, Service.Mode.PAYLOAD);
      dispatch.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url)

      but the runtime address is ignored, and JBossWS uses the address specified in the wsdl.

      Somebody else has this problem?

      I've modified DispatchImpl.java to make it working and
      I can post the modification if someone is interested.