1 Reply Latest reply on Aug 19, 2010 3:35 PM by R R

    Service#getPort always returns a new port

    Kreek Fred Newbie

      Hi,

       

      When I use Service#getPort I always get a new port.

      Example when executing the following code:

       

      (BindingProvider)(service.getPort("PortName"))
              .getRequestContext().put(ENDPOINT_ADDRESS_PROPERTY,address);
      service.getPort("PortName").doSomething();
      


      the second call to Service#getPort returns a new port and does not use the ENDPOINT_ADDRESS_PROPERTY.

       

      Could anybody tell me whether I'm doing something wrong, this is by design, an undocumented feature, just a bug.