Ik zag een soortgelijk ander topic alleen lijkt mijn probleem iets anders. Ik ben ook geen echte programmeur maar een XML uitlezen en de inhoud op het scherm toveren lukte me altijd wel maar een .wsdl uitlezen lijkt toch andere koek....
Dit is wat ik nu heb...
en de output geeft dan dit...
Dit is wat ik nu heb...
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| <?php //require_once('SoapClientAuth.php'); date_default_timezone_set('Europe/Amsterdam'); ini_set("soap.wsdl_cache_enabled", "0"); #- verbinden met WSDL $client = new SoapClient("http://www.site.nl/api/v2/wsdl/products.wsdl", array('login'=> "user", 'password'=> "passwd")); print_r( $client->__getFunctions() ); ?><br /><br /><br /><? print_r( $client->__getTypes() ); class Product { public $cat_id; public $item_id; public $title; public $minprice; public $image_url; public $direct_link;} function productitemsearch() { $product = new Product(); $product->cat_id = $cat_id; $product->item_id = $item_id; $product->title = $title; $product->minprice = $minprice; return $product; } $product = $client->productitemsearch("input", array('cat_id' =>4, 'item_id' => 68899)); echo ($product); ?> |
en de output geeft dan dit...
wie o wie kan mij helpen?Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Error cannot find parameter in /home/indexxx/public_html/gamesite/wsdl/index2.php:41 Stack trace: #0 /home/indexxx/public_html/gamesite/wsdl/index2.php(41): SoapClient->__call('productitemsear...', Array) #1 /home/indexxx/public_html/gamesite/wsdl/index2.php(41): SoapClient->productitemsearch('input', Array) #2 {main} thrown in /home/indexxx/public_html/gamesite/wsdl/index2.php on line 41