PHP MTOM SOAP Server: Read binary files sent in SOAP requests using MTOM

Recommend this page to a friend!
  Info   View files (33)   Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2020-06-24 (1 month ago) Not yet rated by the usersTotal: 459 All time: 6,003 This week: 260
Version License PHP version Categories
mtop-soap-server 1.0.16BSD License5.0PHP 5, Files and Folders, Web services
Description Author

This package can read binary files sent in SOAP requests using MTOM (Message Transmission Optimization Mechanism).

It can detect binary files encoded more efficiently for transmission using the SOAP MTOM recommendation and decode the attached binary data for regular SOAP server handling.

This package is somewhat inspired in the BeSimple SOAP server package.

Innovation Award
PHP Programming Innovation award nominee
November 2014
Number 9


Prize: One downloadable copy of CodeLobster Professional
Some Web service APIs take as parameters files that may contain binary data.

Web services based on the SOAP protocol send data encapsulated in XML containers. This makes binary data be encoded, so it does not contain bytes that would not be allowed in XML documents.

Encoding binary data inside XML documents would take much more data to be transmitted in the SOAP requests.

The MTOM W3C recommendation defines how binary data can be transmitted as a binary attachment. This way it avoids the size overhead and the loss in speed of the data transmission.

This package extends the PHP SOAP server class to be able to decode binary data attachments sent in a SOAP request.

Manuel Lemos
Picture of Cleidson Dias do Nascimento
Name: Cleidson Dias do ... is available for providing paid consulting. Contact Cleidson Dias do ... .
Classes: 1 package by
Country: Brazil Brazil
Age: 40
All time rank: 3294253 in Brazil Brazil
Week rank: 713 35 in Brazil Brazil
Innovation award
Innovation award
Nominee: 1x

Details

MTOM Server Soap

Latest Version Software License Contributor Covenant

Some Web service APIs take as parameters files that may contain binary data.

The MTOM W3C recommendation defines how binary data can be transmitted as a binary attachment. This way it avoids the size overhead and the loss in speed of the data transmission.

SwA is a W3C Note. It was submitted as a proposal, but it was not adopted by the W3C. Instead, MTOM is the W3C Recommendation for handling binary data in SOAP messages. With the release of SOAP 1.2 additionally the note SOAP 1.2 Attachment Feature was published.

This package extends the PHP SOAP server class to be able to decode binary data attachments sent in a SOAP request using MTOM (Message Transmission Optimization Mechanism) or SwA (Soap With Attachments) and can detect binary files encoded more efficiently for transmission and decode the attached binary data for regular SOAP server handling.

This package is somewhat inspired in the BeSimple SOAP server package.

To use and very simple, just follow the steps below

Technologies

This project was developed with the following technologies: - PHP

Prerequisites

How To Use

$ composer require phpclasses/mtop-soap-server

Usage

use SERVERSOAP\SERVERSoap;
use SERVERSOAP\implement\helper\SOAPhelper;

if you want to use MTOM

$servidorSoap = new SERVERSoap ( "some.wsdl", array (
'encoding'=>'ISO-8859-1',
'attachment_type' => SOAPhelper::ATTACHMENTS_TYPE_MTOM
) );
$servidorSoap->setClass ( "some" );
$servidorSoap->handle();

if you want to use the SwA

$servidorSoap = new SERVERSoap ( "some.wsdl", array (
'encoding'=>'ISO-8859-1',
'attachment_type' => SOAPhelper::ATTACHMENTS_TYPE_SWA
) );
$servidorSoap->setClass ( "some" );
$servidorSoap->handle();

if you want contribute for us, read the CONTRIBUTING.md

  Files  
File Role Description
abstracts (5 directories)
implements (5 directories)
interfaces (2 directories)
test (1 directory)
CONTRIBUTING.md Data Auxiliary data
CONTRIBUTING.md Data Auxiliary data
LICENSE Lic. License text
README.md Doc. Documentation
SERVERSoap.php Class Class source

  Files  /  abstracts  
File Role Description
converter (1 file)
core (1 file)
filter (1 file)
message (1 file)
mime (1 directory)

  Files  /  abstracts  /  converter  
File Role Description
   TypeConverter.php Class Class source

  Files  /  abstracts  /  core  
File Role Description
   AbstractSOAPCore.php Class Class source

  Files  /  abstracts  /  filter  
File Role Description
   Filter.php Class Class source

  Files  /  abstracts  /  message  
File Role Description
   SoapMessage.php Class Class source

  Files  /  abstracts  /  mime  
File Role Description
part (1 file)

  Files  /  abstracts  /  mime  /  part  
File Role Description
   Part.php Class Class source

  Files  /  implements  
File Role Description
converter (2 files)
core (3 files)
filter (3 files)
helper (1 file)
mime (2 directories)

  Files  /  implements  /  converter  
File Role Description
   MtomTypeConverter.php Class Class source
   SwaTypeConverter.php Class Class source

  Files  /  implements  /  core  
File Role Description
   SOAPCore.php Class Class source
   SoapRequest.php Class Class source
   SoapResponse.php Class Class source

  Files  /  implements  /  filter  
File Role Description
   FilterHelper.php Class Class source
   MimeFilter.php Class Class source
   XmlMimeFilter.php Class Class source

  Files  /  implements  /  helper  
File Role Description
   SOAPhelper.php Class Class source

  Files  /  implements  /  mime  
File Role Description
parser (1 file)
part (2 files)

  Files  /  implements  /  mime  /  parser  
File Role Description
   MimeParser.php Class Class source

  Files  /  implements  /  mime  /  part  
File Role Description
   MimePart.php Class Class source
   MultiPart.php Class Class source

  Files  /  interfaces  
File Role Description
converter (2 files)
filter (2 files)

  Files  /  interfaces  /  converter  
File Role Description
   SoapConverterInterface.php Class Class source
   TypeConverterInterface.php Class Class source

  Files  /  interfaces  /  filter  
File Role Description
   SoapRequestFilter.php Class Class source
   SoapResponseFilter.php Class Class source

  Files  /  test  
File Role Description
testSoap (4 files, 1 directory)

  Files  /  test  /  testSoap  
File Role Description
Fixtures (3 files)
   composer.json Data Auxiliary data
   MTOM.wsdl Data Auxiliary data
   MTOMClient.php Example Example script
   MTOMServer.php Class Class source

  Files  /  test  /  testSoap  /  Fixtures  
File Role Description
   AttachmentRequest.php Class Class source
   AttachmentType.php Class Class source
   base64Binary.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:459
This week:0
All time:6,003
This week:260

For more information send a message to info at phpclasses dot org.