Bonjour à tous,

Quelqu'un serait'il me dire ou est l''erreur ( ou les erreurs :\) dans mon fichier wsdl ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions targetNamespace="ipinte.vlsm.fr"  xmlns:tns="http://ipinte.vlsm.fr/testwb/"  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" >
	<wsdl:types>
		<xsd:schema elementFormDefault="qualified" targetNamespace="ipinte.vlsm.fr">
			<xsd:element name="GetCountNewRecRequest">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="table" type="xsd:string" />
						<xsd:element name="date" type="xsd:string" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="GetCountNewRecResponse">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="countRes" type="xsd:string" />
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:schema>
	</wsdl:types>
 
	<wsdl:message name="GetCountNewRecSoapIn">
		<wsdl:part name="parameters" element="tns:GetCountNewRecRequest" />
	</wsdl:message>
	<wsdl:message name="GetCountNewRecSoapOut">
		<wsdl:part name="parameters" element="tns:GetCountNewRecResponse" />
	</wsdl:message>
 
	<wsdl:portType name="UpdatePortType">
		<wsdl:operation name="GetCountNewRec">
			<wsdl:documentation></wsdl:documentation>
			<wsdl:input message="tns:GetCountNewRecSoapIn"/>
			<wsdl:output message="tns:GetCountNewRecSoapOut"/>
		</wsdl:operation>
	</wsdl:portType>
 
	<wsdl:binding name="UpdateBinding" type="tns:UpdatePortType">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
		<wsdl:operation name="GetCountNewRec">
			<soap:operation/>
			<wsdl:input>
				<soap:body use='literal' namespace='http://www.ericmery.fr/ns'/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use='literal' namespace='http://www.ericmery.fr/ns'/>
			</wsdl:output>
		</wsdl:operation>
	</wsdl:binding>
 
 
	<wsdl:service name="GlobalIpinte">
		<wsdl:port name="UpdatePort" binding="tns:UpdateBinding">
			<soap:address location="http://ipinte.vlsm.fr/testwb/admin.php" />
		</wsdl:port>
	</wsdl:service>
</wsdl:definitions>
:

Le fichier admin.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
		function GetCountNewRec($table,$date) { 
			$countRes = "test";
			return $countRes."Hello  !"; 
		} 
 
	$server = new SoapServer("ipinte.wsdl", array("soap_version" => SOAP_1_1));
	// $server = new SoapServer(null, array('uri' => 'http://ipinte.vlsm.fr/admin/admin.php'));
	$server->addFunction("GetCountNewRec"); 
	$server->handle();

Car lorsque je le teste avec :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
<?php
$client = new SoapClient("ipinte.wsdl");
var_dump($client->GetCountNewRec("a","a"));
?>
J'obtient le retour suivant :
object(stdClass)#2 (0) { }

J'ai retourné et refait le fichier X fois, mais je n'arrive pas à résoudre mon problème.


Merci par avance à celui qui sera m'éclairer.