Web services are in UTF8

This commit is contained in:
Laurent Destailleur 2009-03-09 21:23:46 +00:00
parent a27af6c433
commit 92464b40e7
2 changed files with 10 additions and 7 deletions

View File

@ -26,6 +26,7 @@
set_include_path($_SERVER['DOCUMENT_ROOT'].'/htdocs');
require_once("../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
require_once(NUSOAP_PATH.'/nusoap.php'); // Include SOAP
@ -51,7 +52,7 @@ $server->register('getVersions',
// Tableau parametres entree
array(),
// Tableau parametres sortie
array('dolibarr'=>'xsd:string','mysql'=>'xsd:string','apache'=>'xsd:string'),
array('dolibarr'=>'xsd:string','os'=>'xsd:string','php'=>'xsd:string','webserver'=>'xsd:string'),
$ns);
@ -67,9 +68,10 @@ function getVersions()
$versions_array=array();
$versions_array['dolibarr']=DOL_VERSION;
$versions_array['mysql']='NA';
$versions_array['apache']='NA';
$versions_array['dolibarr']=version_dolibarr();
$versions_array['os']=version_os();
$versions_array['php']=version_php();
$versions_array['webserver']=version_webserver();
return $versions_array;
}

View File

@ -1,12 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="ISO-8859-1"?>
<definitions xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="dolibarr" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="dolibarr">
<types><xsd:schema targetNamespace="dolibarr">
<types><xsd:schema targetNamespace="dolibarr"
>
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/" />
</xsd:schema>
</types>
<message name="getVersionsRequest"></message>
<message name="getVersionsResponse"><part name="dolibarr" type="xsd:string" /><part name="mysql" type="xsd:string" /><part name="apache" type="xsd:string" /></message>
<message name="getVersionsResponse"><part name="dolibarr" type="xsd:string" /><part name="os" type="xsd:string" /><part name="php" type="xsd:string" /><part name="webserver" type="xsd:string" /></message>
<portType name="WebServicesDolibarrPortType"><operation name="getVersions"><input message="tns:getVersionsRequest"/><output message="tns:getVersionsResponse"/></operation></portType>
<binding name="WebServicesDolibarrBinding" type="tns:WebServicesDolibarrPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="getVersions"><soap:operation soapAction="http://localhostdolibarr/webservices/server.php/getVersions" style="rpc"/><input><soap:body use="encoded" namespace="dolibarr" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="dolibarr" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation></binding>
<service name="WebServicesDolibarr"><port name="WebServicesDolibarrPort" binding="tns:WebServicesDolibarrBinding"><soap:address location="http://localhostdolibarr/webservices/server.php"/></port></service>