php - SOAP Request - Error: 0 Server was unable to process request. ---> Value cannot be null. Parameter name: g -


i making soap request form cannot seem working correctly. have checked , double checked test values correct , doesn't seem make difference @ all.

i get:

"error: 0 server unable process request. ---> value cannot null. parameter name: g"

whenever try , submit soap api. here code (it within joomla mvc component structure pick out relevant code):

here contoller form takes input fields form , puts them in array sent soap api:

public function submitform1 () {             $input = jfactory::getapplication()->input;                                          $postvar = array();             //$time = date("m-d- g-i-s", $_post['dob']);              $postvar['title']         = $input->get('title', null, 'string');             $postvar['firstname']     = $input->get('firstname', null, 'string');             $postvar['lastname']      = $input->get('lastname', null, 'string');             $postvar['email']         = $input->get('email', null, 'string');             $postvar['mobile']        = $input->get('mobile', null, 'string');             $postvar['home']          = $input->get('home', null, 'string');             //'dob' needs amended             $postvar['dob']           = date("y-m-d",strtotime(time()));             $postvar['addline1']      = $input->get('addline1', null, 'string');             $postvar['addline2']      = $input->get('addline2', null, 'string');             $postvar['addline3']      = $input->get('addline3', null, 'string');             $postvar['town']          = $input->get('town', null, 'string');             $postvar['county']        = $input->get('county', null, 'string');             $postvar['postcode']      = $input->get('postcode', null, 'string');             $postvar['gender']        = $input->get('gender', null, 'string');             //'membertype' needs amended             $postvar['membertype']    = "test";             $postvar['gymguid']       = $input->get('gymguid', null, 'string');                      $postvar['rateguid']      = $input->get('rateguid', null, 'string');             //these questions need amended             $postvar['wheredidyouhearaboutfitspace'] = "test";             $postvar['whydoyouwantojointhegym']      = "test";             $postvar['socialfacebook']               = "test";             $postvar['socialtwitter']                = "test";             $postvar['socialfoursquare']             = "test";             //these dd details need amended                            $postvar['ddrefnum']             = "test";                           $postvar['promoguid']            = "test";             $postvar['ddfirstpayment']       = date("y-m-d",strtotime(time()));                  $postvar['startofcurrentcon']    = date("y-m-d",strtotime(time()));             $postvar['dddayofmonth']         = 0; //int             if(isset($postvar['student'])) {                 $postvar['student'] = $input->get('student', null, 'int');;             } else {                 $postvar['student'] = 0;             }                        $postvar['pt']                   = 0;             $postvar['contactoptout']        = 0;             $postvar['gyminductiondeclined'] = 0;             $postvar['pinrequired']          = 0;               $model = $this->getmodel('signup');             $model->submitform1($postvar);          } 

and model function calls appropriate soap function:

public function submitform1($postvar) {     $client = $this->createsoaprequest();     $url = 'https://webservice.com/mhservice.asmx?wsdl';         $options["connection_timeout"] = 25;         $options["location"] = $url;         $options['trace'] = 1;         $options['style'] = soap_rpc;         $options['use'] = soap_encoded;          $client = new soapclient($url, $options);      $response = $client->fitaddupdatemember($postvar);  } 

as can see have ensured fields have real or test data put in , method exists. also, fields thar required have been required. have no idea why isn't working , google searches have not been able solve problem. it's been day or 2 , hoping maybe able on here! james

check static data. check if data type correctly matching wsdl file.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -