Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

CreateBuildingPlant web This method is used to create a plant for a building by providing the building information and Matrikkel.  

Request

ParameterTypeMandatory/Optional
Comments
Maximum character length/limitDescription
buildingBuildingInputMandatoryNot Relevant
Building number
BuildingNumber and iteration (løpenr).
Building number
BuildingNumber is mandatory.
Iteration can be zero.
matrikkel
MatrikkelMatrikkelMandatoryNot RelevantMatrikkel of the building.
customerName
applicationNamestringMandatory
Name of customer for the plant. (Length of the CustomerName must
Should be less than or equal to
100)applicationNamestringMandatoryThird party application identifier, identifying the client consuming the web service. (Length of the ApplicationName should be less than or equal to 10)
10 charactersThe name of the integration partner

Request - input sample

Image Added


NOTE: The building iteration (løpenr) will be obsolete in the future. 

Response

The CreateBuildingPlant web method will create creates the Plant plant in the system, and return Following properties of returns the following properties for the created plant back to the client.

TypeDescription
BuildingPlantBuilding and plant
info
information associated with the newly created plant

 

Response - output sample

Image Added

Exceptions

Error CodeDescription
105The Plant already exists in the system
123An exception occurred while processing your request
138
ApplicationName
applicationName length
is
has exceeded the maximum
allowed
character limit allowed (10) 
146The
application name CustomerName length is exceeded maximum allowed character limit (100)
applicationName is not set
172
167You are not authorized to use this web method
187
Building number
BuildingNumber is not provided
188Matrikkel is not provided
189No buildings
found 190Customer name is not set197The given building number
are connected to the given
matrikkel and building number
Matrikkel and BuildingNumber
200The given BuildingNumber is not connected to the given
matrikkel
Matrikkel. Please check your
inputs again
input.
123An exception occured while processing your request
280There are no buildings available for the given BuildingNumber, Matrikkel and Iteration