code: public void useNewSOAPServiceWithOldClientAndRedirection() throws Exception {
          URL wsdlURL = getClass().getResource("/CustomerService.wsdl");
          com.example.customerservice.CustomerServiceService service = 
              new com.example.customerservice.CustomerServiceService(wsdlURL);
          
          com.example.customerservice.CustomerService customerService = 
              service.getCustomerServiceRedirectPort();
  
          System.out.println("Using new SOAP CustomerService with old client and the redirection");
          
          customer.v1.Customer customer = createOldCustomer("Barry Old to New SOAP With Redirection");
          customerService.updateCustomer(customer);
          customer = customerService.getCustomerByName("Barry Old to New SOAP With Redirection");
          printOldCustomerDetails(customer);
      }
docs: Old SOAP client uses new SOAP service with the
  redirection to the new endpoint and transformation
  on the server side