Changeset 64 for trunk/tools

Show
Ignore:
Timestamp:
02/20/07 16:11:05 (5 years ago)
Author:
yann
Message:

wsdl test send data...
encoding : utf-8

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/test_wsdl.php

    r63 r64  
    44$wsdl_url = 'http://www.iminr.com/mining/wsMining.asmx?WSDL'; 
    55$default_params = array ( 
    6         'webSiteId' => '10271'
     6        'webSiteId' => 10271
    77        'ip' => '62.202.16.183', 
    88); 
     
    1818                echo "Create SOAP client...\n"; 
    1919                $client = new soapclient($wsdl_url, true); 
     20                $client->setDebugLevel(1); 
    2021        } 
    2122         
    2223        foreach ($params as $name => $value) { 
    2324                echo "add '$value' in '$name'\n"; 
    24                 $request_params = array_merge($default_params, array('name' => $name, 'val' => $value)); 
     25                $request_params = array( 
     26                        'parameters' => array_merge($default_params, array('name' => $name, 'val' => $value)) 
     27                ); 
    2528                $results[$name] = $client->call('wsSendValue', $request_params); 
    2629        } 
     
    4144        echo "$name : " . $result['wsSendValueResult'] . "\n"; 
    4245} 
     46 
     47/* 
     48echo "\nDebug:\n"; 
     49echo $client->getDebug(); 
     50*/ 
    4351?>