Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
sysadmin
Note

For info about the signup module, see LAMS Signup.

Self Registration

LAMS 2 supports users being able to create accounts for themselves through a web service. This means that a 3rd party web service client must be created as a front end to this web service (such as the one at http://demo.lamscommunity.org). This wiki documents how to enable this on the LAMS side. It is disabled by default.

Info

See the API for the RegisterService here.

http://saturn.melcoe.mq.edu.au/javadoc/lams_central/org/lamsfoundation/lams/webservice/RegisterServiceSoapBindingImpl.html

Enable the self registration web service in LAMS 2

Edit the file $JBOSS_HOME/server/default/deploy/lams.ear/lams-central.war/WEB-INF/server-config.wsdd. Scroll down to the RegisterService section (as below).

Code Block
<!-- <service name="RegisterService" provider="java:RPC" style="rpc"
	use="encoded">
	<parameter name="wsdlTargetNamespace"
		value="http://webservice.lams.lamsfoundation.org" />
	<parameter name="wsdlServiceElement" value="RegisterService" />
	<parameter name="wsdlServicePort" value="RegisterService" />
	<parameter name="className"
		value="org.lamsfoundation.lams.webservice.RegisterServiceSoapBindingSkeleton" />
	<parameter name="wsdlPortType" value="Register" />
	<parameter name="typeMappingVersion" value="1.2" />
	<parameter name="allowedMethods" value="*" />
</service> -->

Uncomment this block by making it look like this:

Code Block
<service name="RegisterService" provider="java:RPC" style="rpc"
	use="encoded">
	<parameter name="wsdlTargetNamespace"
		value="http://webservice.lams.lamsfoundation.org" />
	<parameter name="wsdlServiceElement" value="RegisterService" />
	<parameter name="wsdlServicePort" value="RegisterService" />
	<parameter name="className"
		value="org.lamsfoundation.lams.webservice.RegisterServiceSoapBindingSkeleton" />
	<parameter name="wsdlPortType" value="Register" />
	<parameter name="typeMappingVersion" value="1.2" />
	<parameter name="allowedMethods" value="*" />
</service>

You may need to restart LAMS for this to take effect.

Add an entry in the list of integrated servers

Login as a sysadmin, and go to System Administration; click 'Maintain integrated servers'. Create a new entry. Remember the server id and key. A prefix and userinfo url are required, but for the purposes of the RegisterService, they aren't used. So you can put in any dummy value.

That's it on the LAMS side; LAMS is now ready to accept requests from a web service client for users to create accounts for themselves.