Login   Register  
PHP Classes
elePHPant
Icontem

File: example_weather_proxy_call.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Przemek Berezowski  >  SOAP Proxy  >  example_weather_proxy_call.php  >  Download  
File: example_weather_proxy_call.php
Role: Example script
Content type: text/plain
Description: Basic example
Class: SOAP Proxy
Generate code to access SOAP services from an WSDL
Author: By
Last change:
Date: 2011-02-09 14:00
Size: 354 bytes
 

Contents

Class file image Download
<?php
include('src_config.php');

require(
'SoapProxy.php');
require(
'output/WeatherService.php');

//create service instance 
$service = new WeatherService($wsdl$opts);

//create and setup parameter for call
$param = new WeatherParam_GetWeather();
$param->City 'New York';

//run ws method
$result $service->GetWeather($param);

var_dump($result);