Forum LAMS for Tech-Heads - General Forum: Error creating a new Organisation using the Webservice


 
You may request notification for Error creating a new Organisation using the Webservice.
Search: 

1: Error creating a new Organisation using the Webservice
11/08/05 11:08 AM
[ Reply | Forward ]
I set a web reference to http://localhost:8080/lams/services/UserManagementService?wsdl

and trying to add a new organisation using the following code

Dim objBusinessObject As New LAMSUserManagementService.UserManagerService
Dim newId As Long
Dim serverId As String
Dim dtDateTime As String
Dim hashValue As String
hashValue = "RvA0~28aPu"
newId = objBusinessObject.createOrganisationForDemoServer("LAMS", Now.ToString, hashValue.GetHashCode().ToString, Me.txtOrganisation.Text, Me.txtDiscription.Text, False)
objBusinessObject = Nothing

But it falls over with the following error

java.rmi.RemoteException: Server:LAMS is not found!; nested exception is: com.webmcq.ld.ws.dao.ServerNotFoundException: Server:LAMS is not found!

Help!
Apurva

Posted by Apurva Desai

2: Re: Error creating a new Organisation using the Webservice
In response to 1 11/08/05 03:07 PM
[ Reply | Forward ]
Apurva,

I just posted a message clarifying this:

http://lamscommunity.org/dotlrn/clubs/technicalcommunity/forums/message-view?message_id=79800

Just give us a few extra days until the release


Ernie

Posted by Ernie Ghiglione

3: Re: Error creating a new Organisation using the Webservice
In response to 1 11/15/05 12:12 PM
[ Reply | Forward ]
Hello Ernie,

I did setup external integration system configuration into the database table ext_server_org_map as you mentioned in the Integration Documentation.

I added the following values in the database table

Insert into ext_server_org_map(serverid,serverkey,servername,serverdesc,p
refix,userinfo_url,timeout_url,disabled,orgid) values(1,'Cl1nt0n5','CLE','Connetix Learning Environment','CLE','http://localhost:8080/LAMS/','http://localhost:8080/LAMS/',0,1020);

And than i am trying to execute the following method call

Dim hashValue As String
hashValue = "Cl1nt0n5"
newId = objBusinessObject.createOrganisationForDemoServer(1, Now.ToString, hashValue, Me.txtOrganisation.Text, Me.txtDiscription.Text, False)
objBusinessObject = Nothing

But it still falls over with the following error.

java.rmi.RemoteException: Authentication failed!; nested exception is: org.lamsfoundation.ld.security.AuthenticateException: Authentication failed!

Can you tell me whats wrong with it? and what is the hashValue parameter in the method? and how to generate that hashValue? Is that, what is generating the error?

Thanks
Apurva

Posted by Apurva Desai

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum