**THIRD REQUEST** -- Slightly updated
| From: | Sam Masiello | Date: | Fri, 19 Dec 2003 22:32:10 +0000 |
| Subject: | **THIRD REQUEST** -- Slightly updated | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-9751@lists.php.net to get a copy of this message | ||
I have slightly changed the client and server code that I had below to
update where I am at now, but calling the client script STILL does not
generate ANY output...nothing! I have a hard time believing that NOBODY
out there has even an inkling on how to help with this :)
Even if I change the return from emailSubmit to a simple string instead
of using SOAP_Value, it doesn't help.
If any more information is needed in order to get some sort of
constructive response, please let me know and I will provide what I can.
Thanks again!
Below is where I am at now:
/* START CLIENT CODE */
require_once("SOAP/Client.php") ;
$url = "http://path_to_my_wsdl/mywsdl.wsdl" ;
$wsdl = new SOAP_WSDL($url);
$client = $wsdl->getProxy() ;
$params=array('header'=>'hi', 'body'=>'there') ;
$options=array(
'namespace' => 'urn:mxlogic.outlookaddin', 'style' =>
'document', 'use'
=> 'literal');
print $client->emailSubmit($params, $options);
/* END CLIENT CODE */
/* START SERVER CODE */
require_once("SOAP/Server.php") ;
class SOAP_My_Server {
var $dispatch_map = array();
function SOAP_My_Server() {
$this->dispatch_map['pingService'] = array(
'in' => array(),
'out' => array('pingReturn'=>
array('ack'=>'boolean', 'time'=>'int'))) ;
$this->dispatch_map['emailSubmit'] = array(
'in' => array('header'=>'string',
'body'=>'string'),
'out' =>
array('submitReturn'=>'boolean')) ;
}
function emailSubmit($header, $body) {
return new SOAP_Value('return', 'boolean', true);
}
function pingService() {
$myreturn = array('ack'=>'1',
'time'=>'3600') ;
return new SOAP_Value('return', 'pong', $myreturn) ;
}
}
$options =
array('namespace'=>'urn:mxlogic.outlookaddin','type'=>'document','use'=>
'literal') ;
$server=new SOAP_Server;
$soapmyserver= new SOAP_My_Server;
$server->addObjectMap($soapmyserver,$options);
$server->service($GLOBALS['HTTP_RAW_POST_DATA']);
/* END SERVER CODE */