troubleshooting Question

SOAP Call __soapCall Causes Missing argument

Avatar of Ryan Bayne
Ryan BayneFlag for United Kingdom of Great Britain and Northern Ireland asked on
PHPApache Web ServerWeb Services
4 Comments1 Solution1591 ViewsLast Modified:
Hello
Server logs are showing a "Missing argument" entry for every argument being passed to my SOAP call. The web service works just fine, not sure how to clear up these errors from my server log. I have attached some of the log file and here is my code which shows the call then function parameters...

 
$wtgapi_array = array();
            $wtgapi_array['authmethod'] = 'email';// authorisation method key or email address (user selects on activation)    
            $wtgapi_array['key'] = '12345678';// @todo what if no API key what value do we pass?????
            $wtgapi_array['title'] = 'Easy CSV Importer';
            $wtgapi_array['id'] = '25';
            $wtgapi_array['admin_email'] = get_option('admin_email'); 
            $wtgapi_array['user_email'] = $current_user->user_email;
            $wtgapi_array['server_name'] = $_SERVER['SERVER_NAME'];
            $wtgapi_array['http_host'] = $_SERVER['HTTP_HOST'];
            $wtgapi_array['pluginversion'] = $wtgpt_currentversion;                   
            // @todo change authmethod value to be populated from option record set during activation               

            $result = $client->
                __soapCall("wtgapi_downloads_get_latestversion",$wtgapi_array);

function wtgapi_downloads_get_latestversion($auth_method,$apikey,$title,$id,$admin_email_client,$user_email_client,$server_name,$http_host,$wtgpt_currentversion){

Looked over PHP page many times and I can't see what I'm doing wrong. Can this actually be sorted so the errors are not generated?

http://php.net/manual/en/soapclient.soapcall.php

Thank you for any advice
/home/sites/webtechglobal.co.uk/public_html/services/wtgapi_webservices_globalfunctions.php on line 113
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 1 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 2 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 3 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 4 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 5 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 6 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 7 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 8 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
[Sun Nov 06 17:58:23 2011] [error] [client 79.170.44.75] PHP Warning:  Missing argument 9 for wtgapi_downloads_get_latestversion() in /home/sites/webtechglobal.co.uk/public_html/services/wtgdownloads.php on line 26
ASKER CERTIFIED SOLUTION
virmaior

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros