I am still having trouble. I have the following code
Code: Select all
<?php
require_once('../nusoap.php');
$country_name='Ireland';
$parameters=array('CountryName' => $country_name);
$sclient= new soapclient('http://www.webserviceX.NET/Globalweather.asmx');
$result = $sclient->call('GetCitiesByCountry' , $parameters);
foreach ($result as $name_val)
{
echo $name_val;
}
?>
which i think should just output a list of citys in the country supplied in this case Ireland.
Put instead i am getting this error message at lest i think it's an error message.
Code: Select all
soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
Any one got an idea of whats wrong as i can see nothing. the service address is
http://www.webservicex.net/globalweather.asmx