Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread seba.wag...@gmail.com
Okay, have a look at http://code.google.com/p/openmeetings/source/detail?r=3955 I've just added some more File-Operation SOAP/REST Calls. For example: moveFile: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileService.java?

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread Daniel Jao
i was able to make it work, i jsut use the addFolderByUserId instead since i was keeping track of the openmeeting user id as well on my application, thanks! -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the we

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread seba.wag...@gmail.com
no I have tested those function several times. Sebastian 2011/7/5 Daniel Jao : > do you think the the parameter isOwner Boolean and boolean has any > difference? > > -- > You received this message because you are subscribed to the Google Groups > "OpenMeetings User" group. > To view this discuss

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread Daniel Jao
do you think the the parameter isOwner Boolean and boolean has any difference? -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/Hiz7NwU-UP0J. To p

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread Daniel Jao
please let me know after after you have test the code.. i know this is really word, a simple param name change should not affect this at all but its really not working on my side -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view thi

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread Daniel Jao
hi sebastian, yep i know that the new code is using the folderName but the weird thing is when i change my call from fileName to folderName, it didnt work anymore. Actually for the boolean, im really using true, its just the way php handles it, but that should not be a problem because im able t

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-05 Thread seba.wag...@gmail.com
Hi Daniel, if you are using the latest sources I am quite sure that the param name is folderName not fileName. The param *externalType* can be any random string, just make sure that its always the same random string, for example "moodle". No need to put any URL in that. you might try isOwner = t

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-04 Thread Daniel Jao
please let me know if you your testing worked, cause i tried changing the code ang changing the folderName to fileName worked. please let me know your findings. thanks, daniel -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-04 Thread Daniel Jao
Hi Sebastian, Just want to confirm this one. I tried using the new code, for the addFolderByExternalUserIdAndType which uses the folderName. But im having this issue: Array ( [SID] => 820e5e70684223a6746e7c8265bd98d3 [externalUserId] => 1 [parentFileExplorerItemId] => -2 [folderName] => Test f

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-01 Thread seba.wag...@gmail.com
Hallo Daniel, yes thats right -2 should be translated to 0 before storing it. I have commited a patch for that. But the param name is folderName now. Sebastian 2011/7/1 Daniel Jao : > another feedback, when i changed the fileName to folderName, i keep on > getting  Uncaught SoapFault exception:

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-07-01 Thread Daniel Jao
another feedback, when i changed the fileName to folderName, i keep on getting Uncaught SoapFault exception: [soapenv:Server] For input string: "true" but when i return it to fileName, its working on my side, can you please confirm as well if its really causing problems, although i think it sh

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread Daniel Jao
hi sebastian, i tried applying the new code. it was able to add the folder and the files. but when you login, you wont see those files. i went straight to the db and change the parent_fileexploreritem_id to 0 instead of -2 and it appeared now. so i think you might needto change this one if

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread seba.wag...@gmail.com
Daniel, I have changed the API again, to bring importFile and addFolder on the same level: addFolderByUserId addFolderByExternalUserIdAndType parentFileExplorerItemId == -2 && isOwner => make the folder goto the private section the param fileName is renamed to "folderName" Sebastian 2011/6/3

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread seba.wag...@gmail.com
Hi Daniel, yes that seems right, the first occourence of user-ID should be called *userId* not user_id. I have commited a fix to the SVN. Sebastian 2011/6/30 Daniel Jao : > hi seba, i tried with 0 and -2 for the addFolderByUserId but i didnt see it > in my "Home Drive", > > im reading the code,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread Daniel Jao
hi seba, i tried with 0 and -2 for the addFolderByUserId but i didnt see it in my "Home Drive", im reading the code, i think line 266 might have a problem, correct me if im wrong. http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/servic

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread seba.wag...@gmail.com
Oh, if that folder goes into the private section try with: parentFileExplorerItemId == 0 instead of -2 Sebastian 2011/6/30 seba.wag...@gmail.com : > Params look okay, > > I cannot verify before tonigh on my local installation. > > > Sebastian > > 2011/6/30 Daniel Jao : >> you're right sebastia

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread seba.wag...@gmail.com
Params look okay, I cannot verify before tonigh on my local installation. Sebastian 2011/6/30 Daniel Jao : > you're right sebastian. > > after fixing the code, it worked, it created the folder in the DB but im not > seeing it after i log in, but when i checked the db, the owner_id column in > f

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread Daniel Jao
you're right sebastian. after fixing the code, it worked, it created the folder in the DB but im not seeing it after i log in, but when i checked the db, the owner_id column in fileexploreritem_id is not being populated im passing this params to addFolderByUserId Array ( [SID] => 9b1ba548

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread seba.wag...@gmail.com
isOwner has the blank again ... 2011/6/30 Daniel Jao : > hi sebastian, im making headway to what i want to do, thanks to you. > > but i have a few more inquiries, i tried doing what you said, passing > parentFileExplorerItemId as -2 cause i want to add a private folder (so it > can contain files a

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-30 Thread Daniel Jao
hi sebastian, im making headway to what i want to do, thanks to you. but i have a few more inquiries, i tried doing what you said, passing parentFileExplorerItemId as -2 cause i want to add a private folder (so it can contain files and make it more organized) i used the api call: *addFolderBy

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-29 Thread Daniel Jao
ok.. i thought of that.. jsut wanted to confirm, thanks! -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/-Dce1qH6nzkJ. To post to this group, send

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-29 Thread seba.wag...@gmail.com
You get back an array of objects => FileImportError[] FileImportError: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileImportError.java Each FileImportError has an attribute exitValue If all objects of the return array have

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-29 Thread Daniel Jao
how do i know if the importFile was succesful or not? do i need to check for any values? -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/Wm15HzPp

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-29 Thread seba.wag...@gmail.com
What you mean is creating a simple folder in the private drive. A folder is a folder no matter if its in the private drive or public drive. I think its the same like uploading a file to the private drive, isOwner => 1/true + parentFileExplorerItemId = -2 and externalUserId (or userId depending on

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi sebastian, is there a way to create a private folder in the my drive? -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/9CFWiSohIWcJ. To post t

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
that was it, you're the man sebastian, apologies for that one, let me play with this one. thanks, daniel -- You received this message because you are subscribed to the Google Groups "OpenMeetings User" group. To view this discussion on the web visit https://groups.google.com/d/msg/openmeeting

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
there is a blank behind *isOwner * is that normal or just a formatting issue? Sebastian 2011/6/28 seba.wag...@gmail.com : > what is the error it does return? > > Sebastian > > 2011/6/28 Daniel Jao : >> this is really weird, what i do is just create this parameters >> >> Array >> ( >>     [SID] =>

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
what is the error it does return? Sebastian 2011/6/28 Daniel Jao : > this is really weird, what i do is just create this parameters > > Array > ( > [SID] => 0e4348655ca6e5e7d5f7128889a2de0e > [internalUserId] => 14 > [externalFileId] => 1 > [externalType] => 12345 > [room_id]

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
this is really weird, what i do is just create this parameters Array ( [SID] => 0e4348655ca6e5e7d5f7128889a2de0e [internalUserId] => 14 [externalFileId] => 1 [externalType] => 12345 [room_id] => 107 [isOwner ] => 1 [path] => http://www.uscis.gov/files/form/i-9.pdf [

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
Actually those values look fine to me. However as long as the method returns something is wrong with your string there is still any issue somewhere in your code. Sebastian 2011/6/28 Daniel Jao > > ok, sorry,  i already fixed the ordering but having still the same error: > >   String SID, Long in

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
ok, sorry, i already fixed the ordering but having still the same error: String SID, Long internalUserId, Long externalFileId, String externalType, Long room_id, boolean isOwner, String path, Long parentFolderId,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
okay maybe I did oversee your filesId but the params are still in the wrong order. Sebastian 2011/6/28 seba.wag...@gmail.com > public FileImportError[] importFileByInternalUserId( > String SID,'SID' => $session_id, > Long internalUserId,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
public FileImportError[] importFileByInternalUserId( String SID,'SID' => $session_id, Long internalUserId, 'internalUserId' => $internalUserId, Long externalFileId,MISSING String externalType,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hmm.. so if i want my files to be use bounded, then i think i dont need to call the addFolderByUserId anymore, let me focus then on importFileByInternalUserId. question: array( 'SID' => $session_id, 'internalUserId' => $internalUserId,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
The params to specifiy to make it go into the private folder are ... http://code.google.com/p/openmeetings/wiki/SoapMethods#importFile .. Quote: Description: Import file from external source to upload a file to a room-drive you specify: - externalUserId, user if of openmeetings user for which

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi sebastian, i was able to make the addFolderByUserId work, but i have some questions for you: 1. Im seeing it in public drive, i want it to be seen in the my home drive, what parameters should i pass? currently im using this parameters array( 'SID' => $sessionId,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
as I said before the param is not called *filename* its called *fileName* review: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileService.java#310 public Long addFolderByUserId(String SID, Long userId,

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi sebastiam, heres the result: mysql> select filename from fileexploreritem; +-+ | filename| +-+ | Testing | | 51 | | 52 | | 53 | | 54 | | acadmiacs table.png | | 6

Re: Tungkol: Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
can you please make a "select filename from fileexploreritem" ^^ the param *filename* is written *fileName* I don't know for the other params but I am 100% sure that you just mixed up some values. Which of the functions are you using now in the end? *importFileByInternalUserId* or *importFile* ?

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
Hi Daniel, it is that simple: If the error value is *fail for input string xyz* the Gateway has rejected your params, so there is sth wrong with it. Sebastian 2011/6/28 Daniel Jao : > hi sebastian, > > sorry for the mistype. > > i meant for #2 is addFolderByUserId, > > im using the ff params: >

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi sebastian, sorry for the mistype. i meant for #2 is addFolderByUserId, im using the ff params: Array ( [SID] => 103b1812e3a98369306a16eb63c51a61 [userId] => 8 [parentFileExplorerItemId] => 0 [filename] => Test Folder [room_id] => 65 [isOwner ] => 1 [externalFiles

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
Hi Daniel, I think for 2. / 3. you are mixing things up, the API Method in 2. should be called *addFolderByExternalUserIdAndType* and it has different params then *addFolderByUserId* plese review it, I have removed one argument yesterday, there was a duplicated param externalUserType in the previ

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
Hi Sebastian, here's an update. 1. I was able to make the addNewUserWithExternalType work. so im good with this. 2. for the *addFolderByUserId *-> its slightly working, i said this because given the correct parameters, im able to retrieve a fileexploreritem_id, but when i checked the db, i

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
What is the output error? If it remains the same, I am quite sure its still sth with the list of params. Otherwise you would find some exception in the log, but I guess it never reaches that point, the Gateway does not even accept your params. Sebastian 2011/6/28 Daniel Jao : > i tried changing m

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
i tried changing my code to follow the correctformat: Array ( [SID] => 9b7e2662b4eedb3796520216b42be573 [externalUserId] => 7 [externalFileId] => 1 [externalType] => Testing Server [room_id] => 54 [isOwner ] => 1 [path] => http://testserver/media/assets/knowledgebase/2

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
at least you are using the params in the wrong order: http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileService.java#73 http://code.google.com/p/openmeetings/wiki/SoapMethods#importFile Sebastian 2011/6/28 Daniel Jao : > hi

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi seba, for #2, im passing this parameters: which i checked is correct base on the doc now: $params = array( 'SID' => $session_id, 'internalUserId' => $internalUserId, 'externalType'=>$user_type, 'ex

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
please check the actual list of params, I have changed some yesterday. The error number 2) means that you call the function with the wrong params. The error 1) does not say so much, you need to check the red5.log/console output and maybe also it was just successful. Sebastian 2011/6/28 Daniel J

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi seba, i was able to make the addNewUserWithExternalType work, so next is how to add a folder and a file? 1. How can i add folder? -> addFolderByExternalUserIdAndType ? -> i tried this an im getting my parameters in my case are: Array ( [SID] => d3fe708a00797c170a18045fa5ebafc1 [

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
the SOAP Calls that are manipulating the Users need an Admin Account for the manipulation, that only a User with Web-Service User-Level. Die you use an Admin Account when you did authentificate via SOAP? Sebastian 2011/6/28 Daniel Jao : > hi seba, > > i tried calling the addNewUserWithExternalTyp

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
hi seba, i tried calling the addNewUserWithExternalType, heres a snippet of the code: addNewUserWithExternalType($sessionId, 'Test user name', 'testpass', 'jao', 'daniel', 'daniel_...@yahoo.com', '', '', '', '', '', '', '', '', '', 3, "Testing Server"); function addNewUserWithExternalType($ses

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
addNewUserWithExternalType 2011/6/28 seba.wag...@gmail.com : > you should either create an account first with the new *add* method, > so that the user with this externalUserId does really exist or you use > the other SOAP call that has no externalUserId. (or you just make sure > that this particul

Re: [openmeetings-user] Adding files externally problem

2011-06-28 Thread seba.wag...@gmail.com
you should either create an account first with the new *add* method, so that the user with this externalUserId does really exist or you use the other SOAP call that has no externalUserId. (or you just make sure that this particular externalUserId does already exist by using it one time. But I think

[openmeetings-user] Adding files externally problem

2011-06-28 Thread Daniel Jao
Hi Sebastian, Im trying to use your new SOAP APIs, namely the *addFolderByExternalUserIdAndType and importFile*. This is my scenario, we have an application that would connect to the OpenMeeting, but before that, we want to upload all the user resources so he does not need to upload it 1 by 1