PHP Classes

PHP MTOM SOAP Server

Recommend this page to a friend!

      PHP MTOM SOAP Server  >  All threads  >  PHP MTOM SOAP Server  >  (Un) Subscribe thread alerts  
Subject:PHP MTOM SOAP Server
Summary:Please let me know how to implement this lib. in my real code.
Messages:2
Author:Rose Roja
Date:2014-12-07 09:19:19
 

  1. PHP MTOM SOAP Server   Reply   Report abuse  
Picture of Rose Roja Rose Roja - 2014-12-07 09:19:19
Please let me know how to implement this lib. in my real code.

If it is possible please provide example

  2. Re: PHP MTOM SOAP Server   Reply   Report abuse  
Picture of Cleidson Dias do Nascimento Cleidson Dias do Nascimento - 2015-01-01 01:28:04 - In reply to message 1 from Rose Roja
Hi

Sorry, but I have not had time to make the use of manual for this component.

To use and very simple, just follow the steps below

1 - Copy the implementation to a subfolder in your project called serversoap

2 - On page you want to use the implementation of MTOM do the imports and necessary uses as:

require_once 'seisoap/SEISOAPServer.php';
require_once 'serversoap/implements/helper/SEISOAPhelper.php';

use SERVERSOAP\SEISOAPServer;
use SERVERSOAP\implement\helper\SEISOAPhelper;

3 - Create the object you want to use as follows

if you want to use MTOM
$servidorSoap = new SEISOAPServer ( "some.wsdl", array (
'encoding'=>'ISO-8859-1',
'attachment_type' => SEISOAPhelper::ATTACHMENTS_TYPE_MTOM
) );
$servidorSoap->setClass ( "some" );

if you want to use the SwA
$servidorSoap = new SEISOAPServer ( "some.wsdl", array (
'encoding'=>'ISO-8859-1',
'attachment_type' => SEISOAPhelper::ATTACHMENTS_TYPE_SWA
) );
$servidorSoap->setClass ( "some" );

And finally call the object as an example below

// Only process if accessed via POST
if ($_SERVER['REQUEST_METHOD']=='POST') {
$servidorSoap->handle($HTTP_RAW_POST_DATA);
}

Anything let me know