Skip to main content
Version: 2.2.2

ImportSampleVar

This method allows importing a variable type sample to a collection with a variable type characteristic.

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

Java class
Requestweb/wwwroot/ws/java/spc/ImportSampleVarRequestType.java
Returnweb/wwwroot/ws/java/spc/ImportSampleVarResponseType.java

Request:

ID #RequiredDescription
IDCOLLECTXCollection ID #
IDCHARACTERISTICXCharacteristic ID #
IDSEQUENCESAMPLESample ID #
DTSAMPLEXSample date (mm/dd/yyyy)
TMSAMPLEXSample time (hh:mm)
CONFIGXGeneral data configuration:
1 - Keep general data according to prior sample;
2 - Keep general data according to the characteristic configuration.
IDMACHINEMachine ID #
IDOPERATOROperator ID #
IDINSPECTORInspector ID #
IDSHIFTShift ID #
IDGAGEGage ID #
NMLOTLot
NMMOMO
READINGSXReadings.
Readings must have decimal separator equal to "."
E.g.: 1;2;3.3;4.2
IDPROCESSProcess ID #
ATTRIBUTEIDAttribute ID #
ATTRIBUTEVALUEAttribute value.
Notes according to the attribute type:
_ Numeric: numeric digits without thousand separator and with period (.) as decimal separator
_ Currency: numeric digits without thousand separator and with period (.) as decimal separator
_ Date: YYYY-MM-DD
_ Time: HHHH:MM

Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:spc">
<soapenv:Header/>
<soapenv:Body>
<urn:ImportSampleVar>
<!--You may enter the following 16 items in any order-->
<urn:idcollect>?</urn:idcollect>
<urn:idcharacteristic>?</urn:idcharacteristic>
<urn:idsequencesample>?</urn:idsequencesample>
<urn:dtsample>?</urn:dtsample>
<urn:tmsample>?</urn:tmsample>
<urn:config>?</urn:config>
<urn:idmachine>?</urn:idmachine>
<urn:idoperator>?</urn:idoperator>
<urn:idinspector>?</urn:idinspector>
<urn:idshift>?</urn:idshift>
<urn:idgage>?</urn:idgage>
<urn:nmlot>?</urn:nmlot>
<urn:nmmo>?</urn:nmmo>
<urn:readings>?</urn:readings>
<urn:idprocess>?</urn:idprocess>
<urn:AttributeList>
<!--Zero or more repetitions:-->
<urn:Attribute>
<urn:AttributeID>?</urn:AttributeID>
<!--1 or more repetitions:-->
<urn:AttributeValueList>
<urn:AttributeValue>?</urn:AttributeValue>
</urn:AttributeValueList>
</urn:Attribute>
</urn:AttributeList>
</urn:ImportSampleVar>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 1.
FAILURE: Returns a message regarding the error that occurred