CmmImportFile
This method allows importing data with samples of CMM files into existing data collections.
To insert each of these items, it is necessary to follow the standard documented below.
| Java class | |
|---|---|
| Request | web/wwwroot/ws/java/spc/CmmImportFileRequestType.java |
| Return | web/wwwroot/ws/java/spc/CmmImportFileResponseType.java |
Request:
| ID # | Required | Description |
|---|---|---|
| #NMFILE | X | Imported file |
| dtsample | X | Sample date (mm/dd/yyyy) |
| tmsample | X | Sample time (hh:mm) |
| txcontent | X | Imported content |
| idcollect | Collection ID #. If it is entered, it must be used to locate the data collection instead of the file (nmfile) |
Request structure:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:spc">
<soapenv:Header/>
<soapenv:Body>
<urn:CmmImportFile>
<!--You may enter the following 5 items in any order-->
<urn:nmfile>?</urn:nmfile>
<urn:dtsample>?</urn:dtsample>
<urn:tmsample>?</urn:tmsample>
<urn:txcontent>?</urn:txcontent>
<urn:idcollect>?</urn:idcollect>
</urn:CmmImportFile>
</soapenv:Body>
</soapenv:Envelope>
Return:
| ID # | Description |
|---|---|
| return | Returns Status, Code, and Detail • Status can be SUCCESS or FAILURE. • Code returns 1 for success, or 0 for failure. • Detail returns error description in case of failure. |