When I use Service#getPort I always get a new port.
Example when executing the following code:
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.
Use ServiceLocator pattern with caching and keep the same instance or alternatively cache the service within user/http session.
Retrieving data ...