[Building Sakai] Use java web services

Steve Swinsburg steve.swinsburg at gmail.com
Wed Aug 25 16:13:59 PDT 2010


I've updated the Confluence page to add the information about how to enable the web services and secure them:
http://confluence.sakaiproject.org/display/WEBSVCS/How+to+use+the+Sakai+Web+Services

cheers,
Steve

On 26/08/2010, at 12:22 AM, Sean Keesler wrote:

> The best place I know of to get info about this is on the wiki:
> http://confluence.sakaiproject.org/display/WEBSVCS/Home
> 
> Hopefully I am paraphrasing right here:
> 
> Enable your webservices with the webservices.allowlogin=true
> sakai.properties setting.
> 
> You can restrict the use of web services to specific IP's...a good idea.
> webservices.allow = * would allow web service calls from all hosts
> (not good for production, but gets a test box up).
> webservices.allow = 128.100.1.2 would only allow web service calls
> from that one IP.
> 
> Your session id is returned by the web service that logs you in:
> 
> In perl:
> my $loginsoap = SOAP::Lite
> -> proxy($loginURI)
> -> uri($loginURI);
> my $session = $loginsoap->login($user, $password)->result;
> 
> Subsequent calls that use it as follows:
> 
> my $scriptsoap = SOAP::Lite
> -> proxy($scriptURI)
> -> uri($scriptURI)
> my $result = $scriptsoap->addNewUser($session, $user, $fname, $lname,
> $email, $type, $password);
> 
> 
> Sean Keesler
> 130 Academy Street
> Manlius, NY 13104
> 315-682-0830
> sean.keesler at threecanoes.com
> 
> 
> 
> 
> On Wed, Aug 25, 2010 at 9:45 AM, chuot con <chuot_con1999 at yahoo.com> wrote:
>> 
>> Hi everybody,
>> 
>> I have intended to use Java Web Service in Sakai and have two problems to ask:
>> 
>> 1/ I use SakaiScript.jws file with method addNewUser(String sessionid, String eid, String firstname, ...) but I don't know what the sessionid is ? How to use this method ?
>> 
>> 2/ I use SakaiLogin.jws file with method login(String id,String pw) and received a message "Web Services Login Disabled".
>> 
>> Please help me resolve this problem.
>> 
>> Thank you so much.
>> 
>> Thinh.
>> 
>> 
>> 
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>> 
>> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"



More information about the sakai-dev mailing list