Icon - KMLM List KMLM List

View email archives for the history of this mailing list.

List Home All Archives Dates Threads Authors Subjects
sushidevelopers - Implementing Sushi server in PHP Message Thread: Previous | Next
  • To: sushidevelopers@xxxxxxxxxxxxx
  • From: Anne Durand <Anne.Durand@xxxxxxxxxx>
  • Date: Wed, 07 Nov 2012 17:56:15 +0100
Send Email to sushidevelopers@list.niso.org:
Send new message
Reply to this message
Hello
I am confused...
I know how to give an xml counter report, I know how to set a php soap server qui counter wsdl description file, I have created php Classes using http://www.wsdltophp.com/
But I don't know how to include the xml data report in the response report.
I would like that ReportRequest sends back a report depending on the ReportRequest
I would appreciate I anyone could help me or give me a working example in PHP.
Regards
Anne

file server.php
try {
    require_once 'class.Sushi.php';
    $server = new SoapServer (null, array( 'uri' =>URI ));
    $server->setClass ('Sushi');
    $server->handle();
}

catch (SoapFault $e)
{
    echo $e->getMessage();
}

_______________________________________________________________________________________

file class.Sushi.php
<?php
class Sushi
{


function ReportRequest ($var)
{
    return "Some data "  ;
}

} // en of class
_______________________________________________________________________________________

$var looks like a requestor type variable.

Attachment: Anne_Durand.vcf
Description: Vcard


By Date: Previous | Next Current Thread By Thread: Previous | Next
  • Implementing Sushi server in PHP, Anne Durand  (you are here)