← Back to team overview

mahara-contributors team mailing list archive

We have received your support ticket '[Bug 1918423] Re: Missing function generate_simple_struct_class in soap webservice in /webservice/soap/locallib.php' and will get back to you shortly

 

Dear "Kristina Hoeppner",
Thank you for submitting a support ticket to us, we will get back to your shortly

*View Ticket Online:* here [1]
*Ticket Number:* 13483
*Ticket Category:*
Technical Support

*SLA:*
False

*Ticket Description:*
Can you please provide steps to replicate this issue? Also, which email
address should we use for the patch when putting it into code review?
** Changed in: mahara
Status: New => Triaged
** Changed in: mahara
Importance: Undecided => Medium
** Changed in: mahara
Milestone: None => 21.10.0
--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1918423
Title:
Missing function generate_simple_struct_class in soap webservice in
/webservice/soap/locallib.php
Status in Mahara:
Triaged
Bug description:
When using the webservice with the following methods
mahara_institution_add_members, mahara_institution_decline_members,
mahara_institution_get_members, mahara_institution_get_requests,
mahara_institution_invite_members, mahara_institution_remove_members,
mahara_user_get_users, mahara_user_get_users_by_id,
mahara_user_create_users
we get the following error in the wsdl
/webservice/soap/server.php?wstoken=<token>&wsdl=1
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>MOODLE:error</faultcode>
<faultstring>Call to undefined method webservice_soap_server::generate_simple_struct_class()</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This function (generate_simple_struct_class) is called in the file
/webservice/soap/locallib.php on line 341
protected function get_phpdoc_type($keydesc) {
...
else if ($keydesc instanceof external_single_structure) {
$type = $this->generate_simple_struct_class($keydesc); // <<<
}
...
}
however the function generate_simple_struct_class is missing in this
class.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1918423/+subscriptions



[1] https://www.openedu.nl/support/portal/ticket/view/cb8c69de80894bfd90e1e45056d983e1

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1918423

Title:
  Missing function generate_simple_struct_class in soap webservice in
  /webservice/soap/locallib.php

Status in Mahara:
  Triaged

Bug description:
  When using the webservice with the following methods

  mahara_institution_add_members, mahara_institution_decline_members,
  mahara_institution_get_members, mahara_institution_get_requests,
  mahara_institution_invite_members, mahara_institution_remove_members,
  mahara_user_get_users, mahara_user_get_users_by_id,
  mahara_user_create_users

  we get the following error in the wsdl
  /webservice/soap/server.php?wstoken=<token>&wsdl=1

  <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
  <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
  <faultcode>MOODLE:error</faultcode>
  <faultstring>Call to undefined method webservice_soap_server::generate_simple_struct_class()</faultstring>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

  This function (generate_simple_struct_class) is called in the file
  /webservice/soap/locallib.php on line 341

      protected function get_phpdoc_type($keydesc) {
  ...
          else if ($keydesc instanceof external_single_structure) {
              $type = $this->generate_simple_struct_class($keydesc); // <<<
          }
  ...
      }

  however the function generate_simple_struct_class is missing in this
  class.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1918423/+subscriptions