Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - web service php - request and response

web service php - request and response

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

web service php - request and response

Postby miscialo » Thu Jan 14, 2010 12:35 am

hi! i would create a webservice in php and an android client that sends to the server 2 integers. the service generates a random number between them and give the result to the client ...

so i 'm confused between ksoap, rest, xml-rpc, post method...

what is the simple way to do that?? does anybody have any ideas?

help me please...
miscialo
Freshman
Freshman
 
Posts: 8
Joined: Thu Jan 14, 2010 12:26 am

Top

Postby miscialo » Thu Jan 14, 2010 12:49 am

this is an example of webservice...

Code: Select all
<?php
  $soap = new SoapServer(
    'RandomNumberService.wsdl',
    array('uri' => 'http://localhost/')
  );
  $soap->setClass('ServiceClass');
  $soap->handle();
 
  class ServiceClass {
    function randomNumber($lower, $upper) {
      return rand($lower, $upper);
    }
  }
?>


how could create a client for android?
miscialo
Freshman
Freshman
 
Posts: 8
Joined: Thu Jan 14, 2010 12:26 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests