Search in sources :

Example 1 with LocationDocument

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;
}
Also used : MLocation(org.compiere.model.MLocation) LocationDocument(pl.x3E.adInterface.LocationDocument) MLocation(org.compiere.model.MLocation) Location(pl.x3E.adInterface.Location)

Aggregations

MLocation (org.compiere.model.MLocation)1 Location (pl.x3E.adInterface.Location)1 LocationDocument (pl.x3E.adInterface.LocationDocument)1