PHP Classes

Easy PHP SOAP Server Web Service: SOAP based Web Services using callback functions

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 77 All time: 10,159 This week: 524Up
Version License PHP version Categories
easywsdemo 1.0.0Public Domain7Web services, PHP 7
Description 

Author

This package can be used to implement SOAP based Web Services using callback functions.

It allow to register Web service end points that will be handled by given callback functions.

The package can take parameters that specify values of each supported Web service call without needing to define those parameters in WDSL format.

Such parameters define values like the call parameter names and types, the return value type, description, etc..

Picture of Mario Carrocera
  Performance   Level  
Name: Mario Carrocera is available for providing paid consulting. Contact Mario Carrocera .
Classes: 18 packages by
Country: Mexico Mexico
Age: 59
All time rank: 309536 in Mexico Mexico
Week rank: 178 Up4 in Mexico Mexico Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Example

<?php
include_once '../NuSoap/nusoap.php';

$server = new soap_server();

$server->configureWSDL('On Time Core', 'urn:server');
$server->wsdl->schemaTargetNamespace = 'urn:server';

$server->register('Conect',
array(
'user' => 'xsd:string', 'password' => 'xsd:string'),
array(
'return' => 'xsd:string'),
'urn:server',
'urn:server#loginServer',
'rpc',
'encoded',
'Basic Information');

$server->register('PssChk',
array(
'user' => 'xsd:string', 'password' => 'xsd:string'),
array(
'return' => 'xsd:string'),
'urn:server',
'urn:server#loginServer',
'rpc',
'encoded',
'Validate User and password');


function
Conect($user, $password)
{
    include_once
'../ontime/"OnTime.php';
   
$ws=new OnTime();
   
$ws->Connect($user,$password);
    if (
$ws->err=="0") {
   
$response = array('status'=> True,'return'=> array('Conect'->$ws->conected,"Error"=>$ws->errtext,'Features'=>$ws->features,'level'=>$ws->level,'status'=>$ws->status,'public'=>$ws->user,'private'=>$ws->userp,'safety'=>$ws->safety));
    } else{
        if (
array_key_exists($ws->err, $ws->errtext)) {
           
$response = array('status'=> False,'return'=> array('code'=> $ws->err,'msg'=> $this->errtext[$this->err]));
        } else{
           
$response = array('status'=> False,'return'=> array('code'=> $ws->err,'msg'=> 'Not Defined'));
        }
    }
    return
json_encode($response);
}

function
PssChk($user, $password)
{
    include_once
'../ontime/"OnTime.php';
   
$ws=new OnTime();
   
$ws->PssChk($user,$password);
    if (
$ws->err=="0") {
       
$response = array('status'=> True,'return'=> 'Empty');
    } else{
        if (
array_key_exists($ws->err, $ws->errtext)) {
           
$response = array('status'=> False,'return'=> array('code'=> $ws->err,'msg'=> $this->errtext[$this->err]));
        } else{
           
$response = array('status'=> False,'return'=> array('code'=> $ws->err,'msg'=> 'Not Defined'));
        }
    }
    return
json_encode($response);
}

$server->service(file_get_contents("php://input"));

?>


Details

One of the easy ways to acces a backend is using a webserver, this is a tiny demostration how you can create it using nusoap, that is a public class, is include in the package but can fin the original at https://github.com/f00b4r/nusoap

The must atractive to use NuSoap tht not need write wsdl file


  Files folder image Files (18)  
File Role Description
Files folder imageNuSoap (13 files)
Files folder imagewsserver (2 files)
Accessible without login Plain text file licencia Data Auxiliary data
Accessible without login Plain text file license Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (18)  /  NuSoap  
File Role Description
  Plain text file class.nusoap_base.php Class Class source
  Plain text file class.soapclient.php Class Class source
  Plain text file class.soap_fault.php Class Class source
  Plain text file class.soap_parser.php Class Class source
  Plain text file class.soap_server.php Class Class source
  Plain text file class.soap_transport_http.php Class Class source
  Plain text file class.soap_val.php Class Class source
  Plain text file class.wsdl.php Class Class source
  Plain text file class.wsdlcache.php Class Class source
  Plain text file class.xmlschema.php Class Class source
  Accessible without login Plain text file Important Data Auxiliary data
  Plain text file nusoap.php Class Class source
  Plain text file nusoapmime.php Class Class source

  Files folder image Files (18)  /  wsserver  
File Role Description
  Accessible without login Plain text file AClaration Data Auxiliary data
  Accessible without login Plain text file WSOTCore.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadeasywsdemo-2021-04-17.zip 144KB
Downloadeasywsdemo-2021-04-17.tar.gz 137KB
Install with ComposerInstall with Composer
Needed packages  
Class DownloadWhy it is needed Dependency
HTML LayOut using PHP on Time Download .zip .tar.gz Implement Layout Optional
OnTime Table Trait Download .zip .tar.gz multifield table winth record validation Required
On Time Data Dictionary and Record Trait Download .zip .tar.gz Data dictionary and Record validation Required
OnTime Timezones and Formats Trait Download .zip .tar.gz Manega dates & times Required
OnTime Basic Content Trait Backend Download .zip .tar.gz Trait to create 2 field tables Required
OnTime Group Backend Download .zip .tar.gz Best practice for safety Recommended
OnTime Core Backend Download .zip .tar.gz Core is tha main class of the framerok Required
HTML Nav bar using PHP on Time Download .zip .tar.gz Implements a Nav Bar Optional
HTML CSS Styles using PHP on Time Download .zip .tar.gz Implement css html Optional
HTML Google Fonts using PHP on Time Download .zip .tar.gz Implement Google Font on HTML Optional
HTML Metatags using PHP on Time Download .zip .tar.gz Html Meta Tag pacakage Optional
OnTime PHP Multi Language trait Download .zip .tar.gz Add Multilenguage to the database Optional
Easy PHP SOAP Client Web Service Download .zip .tar.gz This packege is a way to conect to the server Optional
OnTime Debugger Backend Trait Download .zip .tar.gz The debuguer Optional
HTML Include Images and Text using PHP on Time Download .zip .tar.gz Implement image & text Optional
 Version Control Reuses Unique User Downloads Download Rankings  
 100%9
Total:77
This week:0
All time:10,159
This week:524Up