Wiki
upload File

Purpose

This method is optional and should be used to upload assetts to the localization suppliers. A URI with the location of this asset is returned and this is used for the other calls in the specification.

Note

The asset should be attached using SOAP messages. It is the responsibility of those using this call to decide which technology they would like to use for attaching the asset.

Passed In

Returned

Schema

Request

<xsd:element name="fileUpload">
  <xsd:complexType>
    <xsd:sequence>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

Response

<xsd:element name="fileUploadResponse">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element ref="types:uri"/>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

SOAP attachment

Example of schema for using SOAP attachments

<input>
        <mime:multipartRelated>
          <mime:part>
            <soap:body use="literal"/>
          </mime:part>
          <mime:part>
            <mime:content part="image" type="image/jpeg"/>
          </mime:part>
        </mime:multipartRelated>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
    <operation name="sendOctet">
      <soap:operation soapAction="/">
      <input>
        <mime:multipartRelated>
          <mime:part>
            <soap:body use="literal"/>
          </mime:part>
          <mime:part>
            <mime:content part="octet" type="application/octet-stream"/>
          </mime:part>
        </mime:multipartRelated>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>