Skip to main content
Version: 2.2.1

createEditSupply

This method allows adding and editing:

  • Data of a supply.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb\wwwroot\ws\java\supply\CreateEditSupplyRequestType.java
Returnweb\wwwroot\ws\java\supply\CreateEditSupplyResponseType.java

Request:

ID #RequiredDescription
IDBOJECTXSupply ID #
NMOBJECTXSupply name
IDOBJECTTYPEXSupply type ID #
IDTEAMXResponsible team ID #
IDMEASUNITYXMeasurement unit
VLCOSTCost
DTREVISIONRevision date
IDCOLORColor ID #
IDODOROdor ID #
IDONUCODEUNID code
ABNTCODEABNT code
IDDANGEROUSNESSHazard ID #
IDCLASSIFICATIONClassification ID #
FGCONTROLLot and series control [1 - Lot, 2 - Series].
FGPHYSICALSTATEPhysical state [1 - Solid, 2 - Liquid, 3 - Gas, 4 - Sludge]
IDUSERUser ID.
ATTRIBUTESExample:
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_attribute1
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.
DSOBSERVATIONComments
DSCONSTITUENTSGeneral description of composition
info

X¹ - Required only when the supply type used contains revision.

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sp">
<soapenv:Header/>
<soapenv:Body>
<urn:createEditSupply>
<!--You may enter the following 19 items in any order-->
<urn:IDOBJECT>?</urn:IDOBJECT>
<urn:NMOBJECT>?</urn:NMOBJECT>
<urn:IDOBJECTTYPE>?</urn:IDOBJECTTYPE>
<urn:IDTEAM>?</urn:IDTEAM>
<urn:VLCOST>?</urn:VLCOST>
<urn:IDMEASUNITY>?</urn:IDMEASUNITY>
<urn:DTREVISION>?</urn:DTREVISION>
<urn:IDCOLOR>?</urn:IDCOLOR>
<urn:IDODOR>?</urn:IDODOR>
<urn:IDONUCODE>?</urn:IDONUCODE>
<urn:IDABNTCODE>?</urn:IDABNTCODE>
<urn:IDDANGEROUSNESS>?</urn:IDDANGEROUSNESS>
<urn:IDCLASSIFICATION>?</urn:IDCLASSIFICATION>
<urn:FGCONTROL>?</urn:FGCONTROL>
<urn:FGPHYSICALSTATE>?</urn:FGPHYSICALSTATE>
<urn:IDUSER>?</urn:IDUSER>
<urn:ATTRIBUTES>?</urn:ATTRIBUTES>
<urn:DSOBSERVATION>?</urn:DSOBSERVATION>
<urn:DSCONSTITUENTS>?</urn:DSCONSTITUENTS>
</urn:createEditSupply>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: Return regarding the executed item
FAILURE: -1