hello
I have this code :
and when I run file i get this error :PHP Code:<?php
require('SOAP/Client.php');
$endpoint = 'http://www.webservicex.net/globalweather.asmx?WSDL';
$client = new SOAP_Client($endpoint);
$method = 'GetWeather';
$params = array('CityName' => 'bushehr', 'CountryName' => 'iran');
$ret = $client ->call($method, $params);
print_r($ret);
?>
http://www.miladmovie.com/php/code/soap/soap_client.php
it exmple of webservicex
http://www.webservicex.net/globalwea...?op=GetWeather
it has to string parameter I have two string parameter
but I got error :
what I do wrong ?Code:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Data.SqlClient.SqlException: Procedure or Function 'getWeather' expects parameter '@CountryName', which was not supplied. at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at WebServicex.GlobalWeather.GetWeather(String CityName, String CountryName)![]()



Bookmarks