@Override
  public EndpointInfo createEndpointInfo(ServiceInfo serviceInfo, BindingInfo b, List<?> ees) {
    if (ees != null) {
      for (Object extensor : ees) {
        if (extensor instanceof HTTPAddress) {
          final HTTPAddress httpAdd = (HTTPAddress) extensor;

          EndpointInfo info =
              new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/");
          info.setAddress(httpAdd.getLocationURI());
          info.addExtensor(httpAdd);
          return info;
        } else if (extensor instanceof AddressType) {
          final AddressType httpAdd = (AddressType) extensor;

          EndpointInfo info =
              new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/");
          info.setAddress(httpAdd.getLocation());
          info.addExtensor(httpAdd);
          return info;
        }
      }
    }

    HttpEndpointInfo hei =
        new HttpEndpointInfo(serviceInfo, "http://schemas.xmlsoap.org/wsdl/http/");
    AddressType at = new HttpAddressType();
    hei.addExtensor(at);

    return hei;
  }
 @Override
 public void setAddress(String s) {
   super.setAddress(s);
   if (saddress != null) {
     saddress.setLocation(s);
   }
 }