Skip to main content
Version: 2.2.0

ImportSampleAtt

This method allows importing an attribute type sample to a collection with attribute type characteristics.

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

Java class
Requestweb/wwwroot/ws/java/spc/ImportSampleAttRequestType.java
Returnweb/wwwroot/ws/java/spc/ImportSampleAttResponseType.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
QTITENSXQuantity of items
QTDEFECTSITEMXQuantity of defective items
QTREJECTSITEMXQuantity of rejected items
IDPROCESSProcess ID #
DEFECTList of defects and their respective quantities separated by semicolon (;) and colon (:). If the ID # contains one of the two delimiting characters, use backslash () as the antecedent character, according to the format:
Format:
DEFECT01:3;DEFECT;02:4
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:ImportSampleAtt>
<!--You may enter the following 19 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:qtitens>?</urn:qtitens>
<urn:qtdefectsitem>?</urn:qtdefectsitem>
<urn:qtrejectsitem>?</urn:qtrejectsitem>
<urn:idprocess>?</urn:idprocess>
<urn:defect>?</urn:defect>
<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:ImportSampleAtt>
</soapenv:Body>
</soapenv:Envelope>

Return:

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