Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3472

Add argument generator script to the SOAP demo client

XMLWordPrintable

    • MOODLE_22_STABLE

      In the SOAP demo client, it is not easy to know how $args should be formed:

      $resp = $client->__soapCall($functionname, $args);

      Patrick Pollet created a script that generate template for web service arguments. I attached the script to this issue. Polish it if necessary, and add it to the SOAP demo client folder. Then mention it in client.php.

      Example of generated template:

      // core_user_update_users
      $args22=	array (   //e_s_s 
      	'users' =>		array(  // e_m_s
      			array (   //e_s_s 
      			'id' =>				1, //		PARAM_NUMBER	VALUE_REQUIRED	[]
      			'username' =>				'', //		PARAM_RAW	VALUE_OPTIONAL	[]
      			'password' =>				'', //		PARAM_RAW	VALUE_OPTIONAL	[]
      			'firstname' =>				'', //		PARAM_NOTAGS	VALUE_OPTIONAL	[]
      			'lastname' =>				'', //		PARAM_NOTAGS	VALUE_OPTIONAL	[]
      			'email' =>				'', //		PARAM_EMAIL	VALUE_OPTIONAL	[]
      			'auth' =>				'', //		PARAM_PLUGIN	VALUE_OPTIONAL	[]
      			'idnumber' =>				'', //		PARAM_RAW	VALUE_OPTIONAL	[]
      			'lang' =>				'', //		PARAM_SAFEDIR	VALUE_OPTIONAL	[]
      			'theme' =>				'', //		PARAM_PLUGIN	VALUE_OPTIONAL	[]
      			'timezone' =>				'', //		PARAM_TIMEZONE	VALUE_OPTIONAL	[]
      			'mailformat' =>				1, //		PARAM_INTEGER	VALUE_OPTIONAL	[]
      			'description' =>				'', //		PARAM_MULTILANG	VALUE_OPTIONAL	[]
      			'city' =>				'', //		PARAM_NOTAGS	VALUE_OPTIONAL	[]
      			'country' =>				'', //		PARAM_ALPHA	VALUE_OPTIONAL	[]
      			'customfields' =>				array(  // e_m_s
      					array (   //e_s_s 
      					'type' =>						'', //		PARAM_FORMAT	VALUE_REQUIRED	[]
      					'value' =>						'', //		PARAM_RAW	VALUE_REQUIRED	[]
      					),
      				 ),
      			'preferences' =>				array(  // e_m_s
      					array (   //e_s_s 
      					'type' =>						'', //		PARAM_FORMAT	VALUE_REQUIRED	[]
      					'value' =>						'', //		PARAM_RAW	VALUE_REQUIRED	[]
      					),
      				 ),
      			),
      		 ),
      	)

            mudrd8mz David Mudrák (@mudrd8mz)
            jerome Jérôme Mouneyrac
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.