**THIRD REQUEST** -- slightly updated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 */

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux