import_asset
This method allows adding and editing:
- Data of 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_assetRequestType.java |
Return | web\wwwroot\ws\java\asset\Import_assetResponseType.java |
Request:
ID # | Required | Description |
---|---|---|
IDOBJECT | X | Asset ID # |
NMOBJECT | X | Asset name |
IDOBJECTTYPE | X | Asset type ID # |
IDTEAM | X | Responsible team ID # |
FGAPPLICATION | X | Asset specification: 1 - Gage; 2 - Equipment; 4 - Others; 6 - Tooling; 7 - Tools; 11 - Computer. |
DTSTARTOPER | X | Operation start date. |
QUANTITY | X | Asset quantity |
CAVITY | Cavity (Required when "Tooling"). | |
MANUFACTURER | Manufacturer (company name). | |
IDSERIALNUMBER | Serial number. | |
IDMODEL | Template. | |
IDCALENDAR | X | Calendar ID #. |
SUPPLIER | Supplier (company name). | |
VLEQUIPMENTCOST | Equipment cost. | |
VLCOST | Hourly cost. | |
IDUSER | X¹ | User ID. |
ATTRIBUTES | Example: identifier_of_attribute1=value_of_attribute1; identifier_of_attribute2=value_of_attribute2; identifier_of_attribute3=value_of_attribute3. Example with a multivalued attribute: identifier_of_attribute1=value1_of_attribute1,value2_of_attribute1,value3_of_attibute1 Note: For attributes with a numeric value, the decimal place separator must be "." (dot). For date fields, the value must have the “Y-M-D” (Year-Month-Day) format. | |
DSDESCRIPTION | Description | |
CHARACTERISTICS | Characteristics | |
DSOBSERVATION | Comments | |
DTREVISION | Revision date |
info
X¹ - Required only when the asset type used contains revision.
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:asset">
<soapenv:Header/>
<soapenv:Body>
<urn:import_asset>
<!--You may enter the following 21 items in any order-->
<urn:idobject>?</urn:idobject>
<urn:nmobject>?</urn:nmobject>
<urn:idobjecttype>?</urn:idobjecttype>
<urn:idteam>?</urn:idteam>
<urn:fgapplication>?</urn:fgapplication>
<urn:dtstartoper>?</urn:dtstartoper>
<urn:quantity>?</urn:quantity>
<urn:cavity>?</urn:cavity>
<urn:manufacturer>?</urn:manufacturer>
<urn:idserialnumber>?</urn:idserialnumber>
<urn:idmodel>?</urn:idmodel>
<urn:idcalendar>?</urn:idcalendar>
<urn:supplier>?</urn:supplier>
<urn:vlequipmentcost>?</urn:vlequipmentcost>
<urn:vlcost>?</urn:vlcost>
<urn:dtrevision>?</urn:dtrevision>
<urn:iduser>?</urn:iduser>
<urn:attributes>?</urn:attributes>
<urn:dsdescription>?</urn:dsdescription>
<urn:characteristics>?</urn:characteristics>
<urn:dsobservation>?</urn:dsobservation>
</urn:import_asset>
</soapenv:Body>
</soapenv:Envelope>
Return:
ID # | Description |
---|---|
return | SUCCESS: Return regarding the executed item FAILURE: -1 |