J'ai développé un petit WebService en Java et je voudrais développer le client en PHP pour tester l'interopérabilité de mon service.

Voici mon code :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
<?php
$wsdl="http://localhost:8080/ws/hello?wsdl";
$client=new soapclient($wsdl); 

$response = $client->hello("toto");
print($response->return);
?>
Et voici le résultat que j'obtiens en sortie :
Ce qui me gêne, c'est la valeur null que j'obtiens en sortie. Normalement, ça devrait m'afficher toto.

Voici le 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
 
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://hello.ws.syntheses.fr/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://hello.ws.syntheses.fr/" name="HelloWSService">
	<types>
		<xsd:schema>
			<xsd:import namespace="http://hello.ws.syntheses.fr/" schemaLocation="http://localhost:8080/ws/hello?xsd=1"></xsd:import>
		</xsd:schema>
	</types>
	<message name="hello">
		<part name="parameters" element="tns:hello"></part>
	</message>
	<message name="helloResponse">
		<part name="parameters" element="tns:helloResponse"></part>
	</message>
	<portType name="Hello">
		<operation name="hello">
			<input message="tns:hello"></input>
			<output message="tns:helloResponse"></output>
		</operation>
	</portType>
	<binding name="HelloPortBinding" type="tns:Hello">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"></soap:binding>
		<operation name="hello">
			<soap:operation soapAction=""></soap:operation>
			<input>
				<soap:body use="literal"></soap:body>
			</input>
			<output>
				<soap:body use="literal"></soap:body>
			</output>
		</operation>
	</binding>
	<service name="HelloWSService">
		<port name="HelloPort" binding="tns:HelloPortBinding">
			<soap:address location="http://localhost:8080/ws/hello"></soap:address>
		</port>
	</service>
</definitions>
Pouvez-vous m'aider à résoudre mon problème svp ? (ps: je suis une bille en php)