This function may be used to create a new assignment within Turnitin. Assignments are created within the context of a course. If the course ID provided with the call does not exist within the institution account, the an error will be returned with the SOAP response.
This function takes a collection of assignment settings and creates a new Turnitin assignment. If the call is successful the Turnitin assignment ID associated with the newly created assignment is returned in the SOAP response message.
| Code | Text |
|---|---|
| XXX | "description" |
| XXX | "description" |
| XXX | "description" |
Content-type: text/xml;charset="utf-8"
Accept: text/xml
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://www.imsglobal.org/soap/lis/oms1p0/createByProxyLineItem"
Content-length: 1671
Source: 12
Authorization: OAuth oauth_nonce="37aacdf53c9742a01521ad1038d66c289494ab94",
oauth_timestamp="1337860011",
oauth_consumer_key="49201",
oauth_signature_method="HMAC-SHA1",
oauth_version="1.0",
oauth_body_hash="h3X%2FNrP6fwlo%2BvJZFNS2Ssaoot0%3D",
oauth_signature="DcI2HjS6eAnC9Ic5uWQuYRne13g%3D"
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.imsglobal.org/services/lis/oms1p0/wsdl11/sync/imsoms_v1p0">
<SOAP-ENV:Header>
<ns1:imsx_syncRequestHeaderInfo>
<ns1:imsx_version>V1.0</ns1:imsx_version>
<ns1:imsx_messageIdentifier>79ee36df-f972-45db-b7c3-89f472e37370</ns1:imsx_messageIdentifier>
</ns1:imsx_syncRequestHeaderInfo>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:createByProxyLineItemRequest>
<ns1:lineItemRecord>
<ns1:sourcedGUID>
<ns1:sourcedId/>
</ns1:sourcedGUID>
<ns1:lineItem>
<ns1:context>
<ns1:contextIdentifier>20005116</ns1:contextIdentifier>
<ns1:contextType>courseSection</ns1:contextType>
</ns1:context>
<ns1:label>Demo Assignment 1337860011</ns1:label>
<ns1:extension>
<ns1:extensionNameVocabulary>http://www.turnitin.com/static/source/media/turnitinvocabularyv1p0.xml</ns1:extensionNameVocabulary>
<ns1:extensionValueVocabulary>http://www.imsglobal.org/vdex/lis/omsv1p0/extensionvocabularyv1p0.xml</ns1:extensionValueVocabulary>
<ns1:extensionField>
<ns1:fieldName>DateStart</ns1:fieldName>
<ns1:fieldType>DateTime</ns1:fieldType>
<ns1:fieldValue>2012-05-24T11:46:51Z</ns1:fieldValue>
</ns1:extensionField>
<ns1:extensionField>
<ns1:fieldName>DateDue</ns1:fieldName>
<ns1:fieldType>DateTime</ns1:fieldType>
<ns1:fieldValue>2012-06-23T11:46:51Z</ns1:fieldValue>
</ns1:extensionField>
<ns1:extensionField>
<ns1:fieldName>DatePost</ns1:fieldName>
<ns1:fieldType>DateTime</ns1:fieldType>
<ns1:fieldValue>2012-07-13T11:46:51Z</ns1:fieldValue>
</ns1:extensionField>
</ns1:extension>
</ns1:lineItem>
</ns1:lineItemRecord>
</ns1:createByProxyLineItemRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<tns:imsx_syncResponseHeaderInfo xmlns:tns="http://www.imsglobal.org/services/lis/oms1p0/wsdl11/sync/imsoms_v1p0">
<tns:imsx_version>V1.0</tns:imsx_version>
<tns:imsx_messageIdentifier>80BF9214-A595-11E1-AFE8-ACB9EFE76FDE</tns:imsx_messageIdentifier>
<tns:imsx_statusInfo>
<tns:imsx_codeMajor>success</tns:imsx_codeMajor>
<tns:imsx_severity>status</tns:imsx_severity>
<tns:imsx_messageRefIdentifier>79ee36df-f972-45db-b7c3-89f472e37370</tns:imsx_messageRefIdentifier>
<tns:imsx_description>Assignment LineItem successfully created.</tns:imsx_description>
<tns:imsx_codeMinor>
<tns:imsx_codeMinorField>
<tns:imsx_codeMinorFieldName>TargetEndSystem</tns:imsx_codeMinorFieldName>
<tns:imsx_codeMinorFieldValue>fullsuccess</tns:imsx_codeMinorFieldValue>
</tns:imsx_codeMinorField>
</tns:imsx_codeMinor>
</tns:imsx_statusInfo>
</tns:imsx_syncResponseHeaderInfo>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<tns:createByProxyLineItemResponse xmlns:tns="http://www.imsglobal.org/services/lis/oms1p0/wsdl11/sync/imsoms_v1p0">
<tns:sourcedId>20028414</tns:sourcedId>
</tns:createByProxyLineItemResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>