Welcome Guest, Not a member yet? Register   Sign In
Problems testing free WebService WSDL using PHP soap functions
#3

[eluser]CARP[/eluser]
Yes, tried adding @ with the parameter, but no luck

EDIT: This code worked (without proxy. Gotta test behing proxy)

Code:
$url = 'http://www.webservicex.net/globalweather.asmx?WSDL';
        $conn_params = array(
            'proxy_host' => '10.2.0.1',
            'proxy_port' => '6588'
        );
        $ser_params = array (
            'GetWeather' => array (
                "CityName" => "San Juan",
                "CountryName" => "Argentina"
            )
        );        
        
        //$client = new SoapClient($url);
        $client = new SoapClient($url);
        $result = $client->__soapCall('GetWeather', $ser_params);
        print_r ($result);

I've only changed the $ser_params array, and included a sub_array

Hope this can be useful for others


Messages In This Thread
Problems testing free WebService WSDL using PHP soap functions - by El Forum - 04-12-2010, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB