Print  
Gray star Gray star Gray star Gray star Gray star --Not rated--
286 Visits 1 Comment
Created
Sergey Koltogyan Sergey Koltogyan
Modified by
Sergey Koltogyan Sergey Koltogyan
Aug 13, 2010 8:10 AM
Kablink Component
  • -- select one --

I`m read this suggestion:

"

he source code for Kablink Teaming 2.1 is available at https://kablink.svn.sourceforge.net/svnroot/kablink/branches/cortez/ssf, and the web services samples can be found in ssf/samples/wsclient under the tree.

For your need, probably the best template you can copy and work with is in the TeamingServiceClientWithStub.java class. Take a look at the beginning part of the checkEntry() method. I believe it has the core logic you would need. The getTestFolder() call shows you how you can get a handle on the parent folder by its path name into which you want to put files. Then the next few lines of code shows you how to create an entry (with just title and description fields set), attach your "local" file to the entry, and upload the whole thing to create a new entry with an attachment in a single web services call (via stub.folder_addEntry() method). You would need to repeate this logic in a loop to process all of the files on your client machine. Then, of course, put your Java executation on a scheduler (cron or whatever).

"

In this place: https://kablink.svn.sourceforge.net/svnroot/kablink/branches/cortez/ssf/samples/wsclient/src/org/kablink/teaming/samples/wsclient/TeamingServiceClientWithStub.java

I`m found TeamingServiceClientWithStub.java .

But, i`m do not understand:

1 - In which place i`m need put this file in the my kablink2.1 (and in which place and wihch libraryes need add for this TeamingServiceClientWithStub.java)?

2 - how manual compile this file TeamingServiceClientWithStub.java  (SLES10SP2+kablink2.1)?

3 - how after this manual run this file ?

 

In the java - i`m a beginer.. and write only simple java-application: Hello World. ;)

 

Serg

Workflow
Process State Action
Discussion workflow Active
This entry is currently active
Attachments(0)
Entry History
Tags
 
Replies
Thumbnail Image
Jong Kim Jong Kim

First, you would need to install Ant build tool (http://ant.apache.org).

Then, cd to ssf/samples/wsclient directory, and execute "ant build" (or "ant clean-build"). When you do this, it will compile the sample web services Java classes and put the resulting class files in wsclient/classes directory. It will also copy all necessary 3rd party library files into wsclient/lib directory.

The wsclient directory also contains a couple of scripts (.bat) which you can use to run or test the sample web services program against your own Teaming server. For example, teamingservice-client-with-stub.bat will invoke TeamingServiceClientWithStub class. Currently, only windows batch files are there, so you would have to write .sh equivalent yourself.

Obviously, you can write web services program using your own favorite language instead, if you want.

Skip Footer Toolbar