import_asset_site
This method allows associating:
- Data of a location with an asset
To insert each of these items, it is necessary to follow the standard documented below.
Java class | |
---|---|
Request | web\wwwroot\ws\java\asset\Import_asset_siteRequestType.java |
Return | web\wwwroot\ws\java\asset\Import_asset_siteResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDOBJECT | X | Asset ID # |
DATE | X | Asset location data. Note: It cannot be greater than the current date (Format: yyyy-mm-dd). |
HOUR | X | Asset location time (Format: hh:mm). |
TYPE | X | Location type: 1 - Location, 2 - User, 3 - Location/User, 4 - Coordinate, 5 - Location/Coordinate, 6 - User/Coordinate, 7 - Location/User/Coordinate. |
LOCATION | X¹ | Location ID #. |
USER | X¹ | User ID. |
COORDINATE | X¹ | Coordinate. |
COMMENTS | Asset location comments. | |
FGUPDATECHILDRENSITE | Update the location of the child assets. [1- Update; 2 or empty - Do not update (default value)] |
info
X¹ - Required according to the location type
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:import_asset_site>
<!--You may enter the following 9 items in any order-->
<urn:idobject>?</urn:idobject>
<urn:date>?</urn:date>
<urn:hour>?</urn:hour>
<urn:type>?</urn:type>
<urn:location>?</urn:location>
<urn:user>?</urn:user>
<urn:coordinate>?</urn:coordinate>
<urn:comments>?</urn:comments>
<urn:fgupdatechildrensite>?</urn:fgupdatechildrensite>
</urn:import_asset_site>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: 1. FAILURE: Returns a message regarding the error that occurred |