Hi Troybtj!
I'm trying to post the scripts to you but I think they are too long and the reply system don't accept it, what could I do?
francisco
the reply error:
"
You have included 14 images in your message. You are limited to using 5 images so please go back and correct the problem and then continue again.
Images include use of smilies, the vB code [img] tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.
"
here a slice of my reply :
I've just arrived to a good result for a first 'greet' example (listed below as 'Number one')
But I still have a problem with a second example (I'll try to send the 'Number two' in another reply - here I had overflow.); If you could analyse
and give me a help I would be grateful
regards francisco
======================================================
'Number one' (ok) : adding a function 'greet'
..................
it runs ok
the scripts are:
CLIENT - TopXMLCLT3.php
------
<?php
try
{
ini_set("soap.wsdl_cache_enabled", "0");
$client = new SoapClient('hello4.wsdl');
$result = $client->soapCall('greet', array(array('name' => 'Chicao313')));
echo "Result = ". $result->greetReturn;
//printf("Result = %s\n", $result->greetReturn);
}
catch (Exception $e)
{
echo "Error message = ".$e->toString();
//printf("Message = %s\n",$e->__toString());
}
?>
SERVER - TopXMLSRV3.php
------
<?php
function greet($param)
{
$retval = 'Hello11 '.$param->name;
$result = array('greetReturn' => $retval);
return $result;
}
$server = new SoapServer('hello4.wsdl'); //not sure of this
$server->addFunction('greet');
$server->handle();
?>
WSDL
-----
<?xml version='1.0' ?>
<wsdl:definitions
xmlns:impl='helloService'
xmlns:intf='helloService'
xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
xmlns:wsdlsoap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
targetNamespace='helloService'>
etc etc ...