<?php

//set location here in php and not in the WSDL-file, makes it configurable
$location 'http://www.xxxxxxx.myendpoint.xx/services/myService/';
$wsdl_url $location 'array_in_myService.wsdl';

//set options from config
$options_arr = array();
$options_arr['location'] = $location;
$options_arr['uri'] = $location;

//if you have to use a proxy
$options_arr['proxy_host'] = 'by-proxy.customer-server.de'//DO NOT start porxy_host with http://, since this would indicate port 80
$options_arr['proxy_port'] = 8080;
$options_arr['proxy_login'] = null;
$options_arr['proxy_password'] = null;

//init the client
$client = new SoapClient($wsdl_url$options_arr);

//set a dummy array
$my_arr = array( 'firstname'=>'Marco',
            
'surname'=>'Tidona',
            
'city'=>'Mannheim',
            
'email'=>'marco@t14g.de'
);

//call remote method
$result $client->myServiceAction$my_arr ); //this is where we use the array as parameter

var_dump($result);

?>