Home
TeamSite
cssdk question
padmanabh
-- Note I had posted this question on Developer Suite. However did not get any replies yet so posting it here hoping to get some hints. --
I am testing TeamSite 7.1 on windows and Unix
Just wondering where the cssdk_client libraries reside.
In previous versions of TeamSite, on windows cssdk.dll was used and libcssdk.so was used for the cssdk client library. Where can I find these two files now (libcssdk.so and cssdk.dll)? Are they moved to a different location or the way to use cssdk_client has changed altogether.
Find more posts tagged with
Comments
Rick Poulin
I'm guessing you're looking for the dotNet client library?
I think you now have to compile it yourself, from the WSDL. Have a look at the make.bat in one of the samples at iw-home/cssdk/samples/dotNet.
padmanabh
no I am not looking for a dotNet solution. I need to do it java way.
Rick Poulin
For Java, you don't need those files to compile your code. You just need the cssdkiface.jar and optionally the cssdk_java.jar, both of which are in iw-home/cssdk/lib or somesuch (assuming your code runs on TeamSite), or possibly a compilation of the WSDL.
padmanabh
Thank you very much for your reply, rpoulin! You are right. I need to add the jars in the classpath
I am testing TeamSite 7.1 cssdk_client SOAP connection.
I have set the classpath to the following whihc includes all the jars from Teamsite install.
set CLASSPATH=.;F:\CSSDK_Client\cssdk\axis.jar;F:\CSSD K_Client\cssdk\common100.jar;F:\CSSDK_Client\cssdk \commons-codec-1.3.jar;F:\CSSDK_Client\cssdk\commons-discovery-0.2.jar;F:\CSSDK_Client\cssdk\commons-httpclient-3.1.jar;F:\CSSDK_Client\cssdk\commons-io-1.4.jar;F:\CSSDK_Client\cssdk\commons-lang-2.4.jar;F:\CSSDK_Client\cssdk\commons-logging-1.0.4.jar;F:\CSSDK_Client\cssdk\commons-pool-1.4.jar;F:\CSSDK_Client\cssdk\configiface.jar;F:\C SSDK_Client\cssdk\cssdkiface.jar;F:\CSSDK_Client\c ssdk\cssdkjava.jar;F:\CSSDK_Client\cssdk\cssdksoap .jar;F:\CSSDK_Client\cssdk\cssdk_sci.jar;F:\CSSDK_ Client\cssdk\cxf-2.1.2.jar;F:\CSSDK_Client\cssdk\dom4j-1.6.1.jar;F:\CSSDK_Client\cssdk\hopi.jar;F:\CSSDK_ Client\cssdk\iw-install-rt.jar;F:\CSSDK_Client\cssdk\jasypt-1.5.jar;F:\CSSDK_Client\cssdk\jaxb-impl-2.1.7.jar;F:\CSSDK_Client\cssdk\jaxrpc.jar;F:\CSSD K_Client\cssdk\jcert.jar;F:\CSSDK_Client\cssdk\jne t.jar;F:\CSSDK_Client\cssdk\json-java-2.0.jar;F:\CSSDK_Client\cssdk\jsse.jar;F:\CSSDK_Cl ient\cssdk\log100.jar;F:\CSSDK_Client\cssdk\log4j-1.2.15.jar;F:\CSSDK_Client\cssdk\odapi_cl100.jar;F :\CSSDK_Client\cssdk\oscache-2.2.jar;F:\CSSDK_Client\cssdk\saaj.jar;F:\CSSDK_Cl ient\cssdk\samples;F:\CSSDK_Client\cssdk\sci_hopi. jar;F:\CSSDK_Client\cssdk\searchiface.jar;F:\CSSDK _Client\cssdk\serverutils100.jar;F:\CSSDK_Client\c ssdk\sharedutils100.jar;F:\CSSDK_Client\cssdk\util d_hopi.jar;F:\CSSDK_Client\cssdk\wsdl4j-1.5.1.jar;F:\CSSDK_Client\cssdk\wsdl4j-1.6.2.jar;F:\CSSDK_Client\cssdk\xercesImpl.jar;F:\ CSSDK_Client\cssdk\xml-apis.jar;F:\CSSDK_Client\cssdk\xml-resolver-1.2.jar;F:\CSSDK_Client\cssdk\XmlSchema-1.4.2.jar;
I have compiled the code ReadStoreBranchWorkarea and trying to run it as follows.
Not sure why axis is throwing the exception and what the exception really means.
F:\CSSDK_Client\cssdk\samples\java\dev\src\com\int erwoven\cssdk\examples\filesys
>java ReadStoreBranchWorkarea SOAP
http://host:80
user pass store /default
host
log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectR
esourceBundle).
log4j:WARN Please initialize the log4j system properly.
Factory initialized: com.interwoven.cssdk.client.axis.common.AxisFactor y@107108e
Hello World, CSClient! - Author: user
Client object obtained
Branches in the store: default
Exception in thread "main" java.lang.NullPointerException: :
at com.interwoven.cssdk.client.axis.common.AxisExcept ionTranslator.trans
lateException(AxisExceptionTranslator.java:63)
at com.interwoven.cssdk.client.axis.filesys.FileServi ceAdapterImpl.getBr
anches(FileServiceAdapterImpl.java:1279)
at com.interwoven.cssdk.filesys.impl.CSStoreImpl.getB ranches(CSStoreImpl
.java:101)
at ReadStoreBranchWorkarea.main(ReadStoreBranchWorkar ea.java:123)
F:\CSSDK_Client\cssdk\samples\java\dev\src\com\int erwoven\cssdk\examples\filesys
>
So just wondering what is it that i am missing over here?
Thanks
Rick Poulin
I'm guessing that's IW's way of saying there was an error during the marshalling/unmarshalling of data (conversion of Java Object to binary stream or vice versa). Someone else posted that very same problem with the CSSDK samples last week. I haven't personally tried them, but it makes it sound rather flimsy. I'd suggest rolling your own simple class instead -- or since it sounds like you had a previous CSSDK implementation, just try running your old code with the new libraries.
padmanabh
Thanks again for your reply, rpoulin,
Although store and branch does not work with the sample code. I tried rreading a workarea and it seem to be working.
F:\CSSDK_Client\cssdk\samples\java\dev\src\com\interwoven\cssdk\examples\filesys
>java ReadStoreBranchWorkarea SOAP
http://rhts71:80
user pass workarea //tshost/default/main/WORKAREA/ions host
It showed me the folders and files in it. That means progress