Hi,
One option is set BindingProvider.ENDPOINT_ADDRESS_PROPERTY in request context:
final Greeter port = service.getGreeterPort();
BindingProvider provider = (BindingProvider)port;
provider.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
address);
Regards,
Andrei.
> -----Original Message-----
> From: Ken Hancock [mailto:[email protected]]
> Sent: Mittwoch, 18. Oktober 2017 16:31
> To: [email protected]
> Subject: Dynamically changing endpoints
>
> I'm implementing a client for a soap endpoint where the messages return
> different callouts to be used for individual soap operations, each endpoint
> supporting the same service wsdl. Does anyone have suggestions on the best
> way to change the endpoint for different soap operations?
>
> I could create a separate proxy for each operation, but that seems
> particularly
> slow and heavyweight.