SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2003
    Location
    iran
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    some problem of soap client

    hello
    I have this code :
    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);
    ?>
    and when I run file i get this error :
    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 :

    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)
    what I do wrong ?

  2. #2
    SitePoint Member
    Join Date
    Nov 2003
    Location
    iran
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    excuse me anybody dont know what I do wrong ?
    please help me
    tnx


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •