WebSite-PHP Framework PHP
Multi language
Simple Ajax mode
No HTML, no JavaScript
URL rewriting
Mail sending
Sitemap - RSS - Web service
Download WebSite-PHP FrameWork now
 


Loading
 


Simple Webservice client

Tutorials

>

Tutorial Webservice

>

Simple Webservice client


Helloworld-01-client: Tutorial of the composant Webservice of the PHP FrameWork WebSite-PHP.

Simple Webservice client:

HelloWorld, Your Login !!!
Welcome, Your Login !!!


Go back to tutorial of the componant Webservice



Source code

Source code


File: /pages/tutorials/webservice/helloworld-01-client.php

<?php
/* 
 * Use: http://YOUR_DOMAIN/tutorials/webservice/
 *         helloworld-01-client.html
 */

class Helloworld01Client extends Page {
    public function 
InitializeComponent() {
        
parent::$PAGE_TITLE "Simple Webservice client";
        
        
// Init webservice
        
$client = new WebSitePhpSoapClient(
                    
$this->getBaseLanguageURL().
                    
"/tutorials/webservice/".
                    
"helloworld-01-server.wsdl?wsdl");
        
        
// call web services methods
        
$client->setLogin("Your Login");
        
$hello $client->helloWorld();
        
$welcome $client->welcomeMessage("red");
        
$welcome html_entity_decode($welcome);
        
        
// display result message
        
$this->render = new Object($hello"<br/>"
                            
$welcome);
    }
}
?>


Go back to tutorial of the componant Webservice


Share

 


Copyright © 2009-2017 WebSite-PHP Framework PHP
Home Documentation Download Quick start Tutorials Wiki Issue Tracker