use of pl.x3E.adInterface.LocationDocument in project adempiere by adempiere.
the class ADServiceImpl method getLocation.
public LocationDocument getLocation(LocationDocument req) throws XFireFault {
authenticate(webServiceName, "getLocation");
LocationDocument ret = LocationDocument.Factory.newInstance();
Location loc = ret.addNewLocation();
MLocation location = new MLocation(m_cs.getM_ctx(), req.getLocation().getCLocationID(), null);
loc.setAddress1(location.getAddress1());
loc.setAddress2(location.getAddress2());
loc.setCity(location.getCity());
loc.setPostalCode(location.getPostal());
loc.setCCountryID(location.getC_Country_ID());
loc.setCRegionID(location.getC_Region_ID());
loc.setCountries(this.getCountry(location));
return ret;
}
Aggregations