Skip to content

Instantly share code, notes, and snippets.

@alexfx
Created October 27, 2017 03:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexfx/e90b9518a5fb04c1dc82a6bbc08d329a to your computer and use it in GitHub Desktop.
Save alexfx/e90b9518a5fb04c1dc82a6bbc08d329a to your computer and use it in GitHub Desktop.
Example MTOM SOAP Request for the CheckInAAF Operation
POST /services/Assets HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.832)
Host: 127.0.0.1
Content-Type: multipart/related; type="application/xop+xml"; boundary=--MIMEBoundary633235863336759492;
start="<0.633235863336759492@example.org>"; start-info="text/xml; charset=utf-8"
Content-Length: 292839
Expect: 100-continue
Connection: Keep-Alive
----MIMEBoundary633235863336759492
content-id: <0.633235863336759492@example.org>
content-type: application/xop+xml; charset=utf-8; type="text/xml; charset=utf-8"
content-transfer-encoding: binary
<soap:Envelope xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<!-- credentials go here -->
</soap:Header>
<soap:Body>
<CheckInAAF xmlns="http://avid.com/interplay/ws/assets/types">
<InterplayURI>interplay://WGA?mobid=060a2b340101010101010f0013-000000-465dda6e65350079-060e2b347f7f-2a80</InterplayURI>
<AAF>
<xop:Include href="cid:1.633235863336915744@example.org" />
</AAF>
<Attributes>
<Attribute Group="USER" Name="Camera Man">John Smith</Attribute>
</Attributes>
</CheckInAAF>
</soap:Body>
</soap:Envelope>
----MIMEBoundary633235863336759492
content-id: <1.633235863336915744@example.org>
content-type: application/octet-stream
content-transfer-encoding: binary
a bunch of binary data would go here
----MIMEBoundary633235863336759492--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment