As an alternative to requestQuote
& acceptQuote
, where a relationship already exists, or the cost is prepaid for all required translations, or perhaps the translation service is deployed in-house and is a MT engine, there may be a case to simply call translate as the quote/accept mechanism isn’t required.
<xsd:element name="submitJobRequest"> <xsd:complexType> <xsd:sequence> <xsd:element ref="types:ticket"/> <xsd:element ref="types:count-group"/> <xsd:element ref="types:service"/> <xsd:element ref="types:domain"/> <xsd:element ref="types:languagePair"/> <xsd:element ref="types:requiredBy"/> <xsd:element ref="types:info"/> <xsd:element ref="types:purchaseOrder"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="ticket"> <xsd:complexType> <xsd:attribute name="jobId" type="string" use="required"/> <xsd:attribute name="projectId" type="string" use="required"/> <xsd:attribute name="userId" type="string" use="required"/> </xsd:complexType> </xsd:element> <xsd:element name="count-group"> <xsd:complexType> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element name="count" type="xlf:ElemType_count"/> </xsd:sequence> <xsd:attribute name="name" type="xsd:string" use="required"/> </xsd:complexType> <xsd:element name="requiredBy"> <xsd:complexType> <xsd:attribute name="date" type="dateTime" use="optional"/> </xsd:complexType> </xsd:element> <xsd:element name="info" type="string"/>
<xsd:element name="submitJobResponse"> <xsd:complexType> <xsd:sequence> <xsd:element ref="types:ticket"/> <xsd:element ref="types:acknowledgement"/> </xsd:sequence> </xsd:complexType> </xsd:element>
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <submitJobRequest xmlns="urn:oasis:names:tc:wstrans:v1:types"> <ticket jobId="job-001" projectId="proj-001" userId="user-001"/> <count-group name='project-count'> <count count-type="total" unit="words">1001</count> </count-group> <service>01.00</service> <domain>01.00</domain> <languagePair> <source> <locale country="US" language="en"/> </source> <target> <locale country="FR" language="fr"/> </target> </languagePair> <requiredBy date="2004-10-14T09:47:07.415Z"/> <info>Info</info> <purchaseOrder id="PO-123-456"/> </submitJobRequest> </soapenv:Body> </soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <submitJobResponse xmlns="urn:oasis:names:tc:wstrans:v1:types"> <ticket jobId="job-001" projectId="proj-002" userId="user-003"/> <acknowledgement>Quantity: 10000 words Service: 01.00 Domain: 01.00 LanguagePair: US_en -> FR_fr RequiredBy: 05-Oct-04 Info: Info PurchaseOrder: PO-123-456 </acknowledgement> </submitJobResponse> </soapenv:Body> </soapenv:Envelope>