Diamond Manager
Click here for a complete list of operations.
UploadLots
Upload a list of lots to user's inventory.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /webservices/Upload/DiamondManager.asmx HTTP/1.1 Host: technet.rapaport.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://technet.rapaport.com/UploadLots" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/"> <Ticket>string</Ticket> </AuthenticationTicketHeader> </soap:Header> <soap:Body> <UploadLots xmlns="http://technet.rapaport.com/"> <Parameters> <LotList>string</LotList> <LotListFormat>Rapnet or RapXML or CertNet or PolyPlus</LotListFormat> <ReplaceAll>boolean</ReplaceAll> <FirstRowHeaders>boolean</FirstRowHeaders> <ReportOption>Daily or Weekly or PerUpload or None</ReportOption> </Parameters> </UploadLots> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <UploadLotsResponse xmlns="http://technet.rapaport.com/"> <UploadLotsResult> <LotUploadStatusDetails> <Errors> <UploadError xsi:nil="true" /> <UploadError xsi:nil="true" /> </Errors> <ResultsPath>string</ResultsPath> <AccountID>int</AccountID> <UploadID>int</UploadID> <Timestamp>string</Timestamp> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Steps> <StepName>string</StepName> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Comments>string</Comments> </Steps> <Steps> <StepName>string</StepName> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Comments>string</Comments> </Steps> <UploadReportUrl>string</UploadReportUrl> <RowsReceived>int</RowsReceived> <RapnetRowsReceived>int</RapnetRowsReceived> <IndexRowsReceived>int</IndexRowsReceived> <ProgressStatus>int</ProgressStatus> <ProgressRowsCount>int</ProgressRowsCount> <RowsValid>int</RowsValid> <RowsInvalid>int</RowsInvalid> <RapnetLotsAdded>int</RapnetLotsAdded> <RapnetLotsUpdated>int</RapnetLotsUpdated> <RapnetLotsDeleted>int</RapnetLotsDeleted> <IndexLotsAdded>int</IndexLotsAdded> <IndexLotsUpdated>int</IndexLotsUpdated> <IndexLotsDeleted>int</IndexLotsDeleted> <LastUpdated>dateTime</LastUpdated> <ConnectionString>string</ConnectionString> <UploadCompleted>boolean</UploadCompleted> <Step1Status>string</Step1Status> <Step2Status>string</Step2Status> <Step3Status>string</Step3Status> <CurrentStep>int</CurrentStep> <UploadFaild>boolean</UploadFaild> </LotUploadStatusDetails> <QueueUploadID>int</QueueUploadID> <InvalidLots>string</InvalidLots> <Timestamp>string</Timestamp> </UploadLotsResult> </UploadLotsResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /webservices/Upload/DiamondManager.asmx HTTP/1.1 Host: technet.rapaport.com Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthenticationTicketHeader xmlns="http://technet.rapaport.com/"> <Ticket>string</Ticket> </AuthenticationTicketHeader> </soap12:Header> <soap12:Body> <UploadLots xmlns="http://technet.rapaport.com/"> <Parameters> <LotList>string</LotList> <LotListFormat>Rapnet or RapXML or CertNet or PolyPlus</LotListFormat> <ReplaceAll>boolean</ReplaceAll> <FirstRowHeaders>boolean</FirstRowHeaders> <ReportOption>Daily or Weekly or PerUpload or None</ReportOption> </Parameters> </UploadLots> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <UploadLotsResponse xmlns="http://technet.rapaport.com/"> <UploadLotsResult> <LotUploadStatusDetails> <Errors> <UploadError xsi:nil="true" /> <UploadError xsi:nil="true" /> </Errors> <ResultsPath>string</ResultsPath> <AccountID>int</AccountID> <UploadID>int</UploadID> <Timestamp>string</Timestamp> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Steps> <StepName>string</StepName> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Comments>string</Comments> </Steps> <Steps> <StepName>string</StepName> <StartTime>dateTime</StartTime> <EndTime>dateTime</EndTime> <Duration>string</Duration> <Comments>string</Comments> </Steps> <UploadReportUrl>string</UploadReportUrl> <RowsReceived>int</RowsReceived> <RapnetRowsReceived>int</RapnetRowsReceived> <IndexRowsReceived>int</IndexRowsReceived> <ProgressStatus>int</ProgressStatus> <ProgressRowsCount>int</ProgressRowsCount> <RowsValid>int</RowsValid> <RowsInvalid>int</RowsInvalid> <RapnetLotsAdded>int</RapnetLotsAdded> <RapnetLotsUpdated>int</RapnetLotsUpdated> <RapnetLotsDeleted>int</RapnetLotsDeleted> <IndexLotsAdded>int</IndexLotsAdded> <IndexLotsUpdated>int</IndexLotsUpdated> <IndexLotsDeleted>int</IndexLotsDeleted> <LastUpdated>dateTime</LastUpdated> <ConnectionString>string</ConnectionString> <UploadCompleted>boolean</UploadCompleted> <Step1Status>string</Step1Status> <Step2Status>string</Step2Status> <Step3Status>string</Step3Status> <CurrentStep>int</CurrentStep> <UploadFaild>boolean</UploadFaild> </LotUploadStatusDetails> <QueueUploadID>int</QueueUploadID> <InvalidLots>string</InvalidLots> <Timestamp>string</Timestamp> </UploadLotsResult> </UploadLotsResponse> </soap12:Body> </soap12:Envelope>