Can't transfer parameters to .Net Webservice in php..

G

Guest

Guest
.NET WEBSERVICE
<WebMethod()> Public Function HelloWorld(ByVal strName As String) As String
HelloWorld = "(Hello World)" + strName.ToString
Return HelloWorld
End Function


http://dietrich.ganx4.com/nusoap/index.php
in this site, nusoap was used to call a webservice in php..
and,php source is like this:

require_once('nusoap.php');
$parameters = array('aaa');
$soapclient = new
soapclient('http://localhost/webservice1/service1.asmx?WSDL','wsdl');
echo $soapclient->call('HelloWorld',$parameters);


if parameters dose not exist,it can call a webservice..,
but parameters dose exist,this code display.. "ARRAY"
What's a problem??

:oops:
 
The variable $parameters is an array, you can't call it directly, you have to call the values by their key!
 
Back
Top