Binary

From Training Material
Jump to navigation Jump to search
title
Web Services Basics For Non-programmers
author
Pete George (NobleProg Ltd)

Day Two Schedule ⌘

  1. WSDL
  2. Handling Binary Content
  3. RESTfull Web Services
  4. Other Technologies
  5. Conclusion

Handling Binary Content ⌘

Learning Objectives

  • To understand the need for sending binary data to and from Web services
  • To be aware of the Message Transmission Optimization Mechanism

SOAP Messaging ⌘

Binary 1.png

Parse Whole Message ⌘

Binary 2.png

Binary Content is the Answer ⌘

Binary 3.png

Binary Content is the Problem! ⌘

Binary 4.png

Base64Binary ⌘

  • Base64 Encoding scheme
  • Encoding bits into legal characters
  • For relatively small content
  • Included in many SOAP toolkits

WS-Attachment ⌘

  • Large payloads/binary data as an attachment
  • Stopped work on it 2004

MTOM ⌘

  • Message Transmission Optimization Mechanism
  • Method for Web services to exchange binary data
  • Replaced WS-Attachment
  • W3C Recommendation

MTOM Specification ⌘

Defines MTOM as three features:

  • Abstract SOAP Transmission Optimization Feature

-Defines exchanging of SOAP messages that contain binary data

  • Optimized MIME Multipart/Related Serialization of SOAP Messages

-XML-binary Optimized Packaging (XOP) in place of the binary data

-Binary data represented in a MIME container

  • HTTP SOAP Transmission Optimization Feature

-Defines that MIME + XOP SOAP message sent over HTTP

Quiz – No Prizes! No Pressure! ⌘

Binary 5.png