Fatal error: Uncaught SoapFault exception: [soapenv:Server] For input string: "1308832914_3_uploadfile_03.jpg" in D:\openmeetingTest.php:1193. Do i need to add a user in the system first?
Stack trace:
#0 [internal function]: SoapClient->__call('importFile', Array)
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/l2AYZ3ihvk0J.
> To post to this group, send email to openmeet...@googlegroups.com.
> To unsubscribe from this group, send email to
> openmeetings-u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>
--
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
seba....@gmail.com
2011/6/28 seba....@gmail.com <seba....@gmail.com>:
stdClass Object
(
[return] => -26
)
What seems to be the problem here?
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/fpnZXrKa2MwJ.
Array
(
[SID] => d3fe708a00797c170a18045fa5ebafc1
[externalUserId] => 1
[parentFileExplorerItemId] => 0
[filename] => Test folder
[room_id] => 43
[isOwner ] => 1
[externalType] => Test Server
[externalFilesid] => 0
)
stdClass Object
(
[return] =>
)
Fatal error: Uncaught SoapFault exception: [soapenv:Server] For input string: "1308832914_3_uploadfile_03.jpg"
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 Jao <dani...@gmail.com>:
> --
> 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/-/ABDpMvc2UK0J.
http://code.google.com/p/openmeetings/wiki/SoapMethods#importFile
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/mSiQY1kGVucJ.
Arraybut im having the same error, any insights?
(
[SID] => 9b7e2662b4eedb3796520216b42be573
[externalUserId] => 7
[externalFileId] => 1
[externalType] => Testing Server
[room_id] => 54
[isOwner ] => 1
[path] => http://testserver/media/assets/knowledgebase/22/1308832914_3_uploadfile_03.jpg
[parentFolderId] => -2
[fileSystemName] => 1308832914_3_uploadfile_03.jpg
)
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/bXLdTns6-40J.
Array3. For the addFolderByUserId, its not working because i keep on getting
(
[SID] => 049c86afc17f9e785db934265c9a5adf
[userId] => 8
[parentFileExplorerItemId] => 0
[filename] => Test Folder
[room_id] => 63
[isOwner ] => 1
[externalFilesid] => 0
[externalType] => Testing
)
Fatal error: Uncaught SoapFault exception: [soapenv:Server] For input string: "1308832914_3_uploadfile_03.jpg"
let me know what you think.
Do you have any php script that you used to test this one, maybe i can play with that one as well if you have.
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 previous approch from me:
http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileService.java#244
http://code.google.com/p/openmeetings/wiki/SoapMethods#addFolderByExternalUserIdAndType
So make sure you are using the latest code with that API.
For the 3. Issue you have the same problem like initially => Your
params just do not meet the method's signature.
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/_2fyzI0FKMoJ.
Array
(
[SID] => 103b1812e3a98369306a16eb63c51a61
[userId] => 8
[parentFileExplorerItemId] => 0
[filename] => Test Folder
[room_id] => 65
[isOwner ] => 1
[externalFilesid] => 0
[externalType] => Testing
)
Arrayim sure im using the correct params and its in the proper order
(
[SID] => 103b1812e3a98369306a16eb63c51a61
[internalUserId] => 8
[externalType] => Testing Server
[externalFileId] => 1
[room_id] => 65
[isOwner ] => 1
[parentFolderId] => -2
[path] => http://devserver/media/assets/folder/29/1308894254_3_uploadfile_table.xls
[fileSystemName] => 1308894254_3_uploadfile_table.xls
)
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 <dani...@gmail.com>:
> --
> 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/-/0qhwuaCWUjIJ.
Array
(
[SID] => 103b1812e3a98369306a16eb63c51a61[room_id] => 65
[userId] => 8
[parentFileExplorerItemId] => 0
[filename] => Test Folder
[isOwner ] => 1
[externalFilesid] => 0
[externalType] => Testing
)
For theim attaching a screenshot of the db, please confirm if my question is valid.
rejected your params, so there is sth wrong with it.
What would you say is wrong with the ff params:
Array
(
[SID] => 103b1812e3a98369306a16eb63c51a61
[internalUserId] => 8
[externalType] => Testing Server
[externalFileId] => 1
[room_id] => 65
[isOwner ] => 1
[parentFolderId] => -2
[path] => http://devserver/media/assets/folder/29/1308894254_3_uploadfile_table.xls
[fileSystemName] => 1308894254_3_uploadfile_table.xls
)
Specifically the fileSystemName? base on the doc, i needed to set the filename with extension, which i did.
I really appreciate your help sebastian.
thanks,
daniel
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* ?
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/3TEhOJSc8lEJ.
Array
(
[SID] => 103b1812e3a98369306a16eb63c51a61
[userId] => 8
[parentFileExplorerItemId] => 0
[filename] => Test Folder
[room_id] => 65
[isOwner ] => 1
[externalFilesid] => 0
[externalType] => Testing
)
Description: Import file from external source to upload a file to a room-drive you specify:
to upload a file to a private-drive you specify:
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/openmeetings-user/-/ULsEbQuAJ0kJ.
To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>
>
> --
> 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/-/QSc3L1WY5_MJ.
Array
(
[SID] => 0e4348655ca6e5e7d5f7128889a2de0e
[internalUserId] => 14
[externalFileId] => 1
[externalType] => 12345
[room_id] => 107
[isOwner ] => 1
[path] => http://www.uscis.gov/files/form/i-9.pdf
[parentFolderId] => -2
[fileSystemName] => i-9.pdf
)
then call the importFileByInternalUserId soap call, i made sure the sid is logged in. :(
Sebastian
2011/6/28 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/xxh3ILExJzcJ.
Sebastian
2011/6/28 seba....@gmail.com <seba....@gmail.com>:
I think its the same like uploading a file to the private drive,
isOwner => 1/true + parentFileExplorerItemId = -2 and externalUserId
(or userId depending on if you're using
addFolderByExternalUserIdAndType or addFolderByUserId) set to an valid
user object (either external or internal Id).
Sebastian
2011/6/29 Daniel Jao <dani...@gmail.com>:
> 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.
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 the exitValue == 0 then the
import was okay.
Otherwise you can find the error message in the attributes error/process/command
Sebastian
2011/6/29 Daniel Jao <dani...@gmail.com>:
> 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/-/Wm15HzPpSAoJ.
addFolderByExternalUserIdAndTypeArray
(
[SID] => 3884344c1bfc6d5f42e001846b92d025
[externalUserId] => 50
[parentFileExplorerItemId] => -2
[fileName] => Test folder 1
[room_id] => 191
[isOwner ] => 1
[externalFilesid] => 0
[externalType] => 1309420927but it didnt work.
)
Results:
stdClass Object
(
[return] =>
)
2011/6/30 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/yENy0jpCSf4J.
Array
(
[SID] => 9b1ba54842880c72bdf3b704536fb381
[userId] => 29
[parentFileExplorerItemId] => -2
[fileName] => Test Folder 1
[room_id] => 194
[isOwner] => 1
[externalFilesid] => 0
[externalType] => 1309428179please confirm if this behavior is correct.
)
I cannot verify before tonigh on my local installation.
Sebastian
2011/6/30 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/IkcrUAZfhfoJ.
if that folder goes into the private section try with:
parentFileExplorerItemId == 0 instead of -2
Sebastian
2011/6/30 seba....@gmail.com <seba....@gmail.com>:
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 <dani...@gmail.com>:
> --
> 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/-/oTwX1RM17kgJ.
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/30 seba....@gmail.com <seba....@gmail.com>:
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 <dani...@gmail.com>:
> --
> 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/-/kgd4cDvalC4J.
Array
(
[SID] => 820e5e70684223a6746e7c8265bd98d3
[externalUserId] => 1
[parentFileExplorerItemId] => -2
[folderName] => Test folder name
[room_id] => 1
[isOwner] => 1
[externalFilesid] => 1309834980
[externalType] => http://ourserver.com:5080/openmeetings/
)
Exception caught: For input string: "true", which i didnt encountered when the param name is fileName.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 = true instead of 1.
Sebastian
2011/7/5 Daniel Jao <dani...@gmail.com>:
> --
> 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/-/HmrzKU30lkMJ.
I have tested those function several times.
Sebastian
2011/7/5 Daniel Jao <dani...@gmail.com>:
> 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.
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:
updateFileOrFolderName:
http://code.google.com/p/openmeetings/source/browse/trunk/singlewebapp/src/fileservice/org/openmeetings/axis/services/FileService.java?spec=svn3955&r=3955#569
Sebastian
2011/7/5 Daniel Jao <dani...@gmail.com>:
> 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 web visit
> https://groups.google.com/d/msg/openmeetings-user/-/BC3eOpGb8SAJ.