Download cognos reports from Java via REST API - java

For a particular functionality implementation, I need to download a chart(even a report would do) from the cognos server from my Java Code. I am unable to find efficient ways of doing the same, I could find few resources(links below) but none of them seem to work. Is there a way to download cognos reports from Java via REST API?
DZONE
MashUp Service

You'll probably want to use the Cognos Mashup Service (CMS). CMS requires a license to use the Cognos SDK.
You didn't specify which version of Cognos, so I can't direct you to the exact documentation.

Related

Webservice for TLS 1.2 testing

Our enterprise datawarehouse (EDW) sources data from many interanal & external sources. We use Oracle data integrator (ODI) as teh ETL tool to extract data from the sources. ETL jobs are executed using an ODI agent which is nothing but a Java process. One of the external sources for the warehouse is a webservice. Data is extracted from this webserice using Jython (wrapped within ODI). Jython as you might know is a Python variant which runs within JVM. The Jython job runs under the ODI agent (java) process and extracts data from the webservice.
Coming to the problem we are facing now- The external webservice provider has indicated that soon they will support only TLS 1.2 and will remove support for older TLS connections. The ODI agent is currently on JDK1.6 Update 33 and support TLS 1.1. We are planning to upgrade the ODI agent to Java 7 (which supports TLS 1.2) so that we will be able to connect to this webservice. The Java upgrade involves lot of work mainly to ensure that it does not break existing ETL jobs. If there are any impacts, we might not be able to upgrade. An alternate option is it create a separate Java process (outside of ODI) running under its own JDK (which can be even Java 8) to connect to this web service.
Are there any risks in the above options? It is going to take a while for the provider to give the webservice which supports only TLS 1.2. Are there any public webservices which support only TLS 1.2 that can be used by for our testing? Can you please share them?
Maybe not entirely what you're looking for, but it might be wise to have two seperate development projects for both the old and the future ODI agent to keep things transparent. Especially when testing the new version. It's also advisable to set up a dedicated testing/QA environment for this.
Be sure to keep your production ODI repository safe, you could use a testing repository with some exported projects for this. Maybe this link below might be useful: https://www.redbridgesoftware.com/products/life-cycle-management-for-odi.html

Is there a way to create a virtual machine in Microsoft Azure using a Java Program?

I am working on a project which requires to create a VM in azure. I have worked on AWS where I can use the AWS api to programatically create a VM in AWS. Can I do the same on Azure?
Yes, you can programmatically create VMs in Windows Azure by consuming Windows Service Management REST API. I wrote a blog post some days ago about consuming this API using Java which you can read here: http://gauravmantri.com/2013/08/25/consuming-windows-azure-service-management-api-in-java/. You just have to write code for consuming appropriate operations available in Service Management API.
My team has recently put out some major updates to the Java SDK and what's available in service management areas in our 0.6.0 release. You can check out the README in our repository to see a detailed of what all the SDK can do, and this post provides some guidance on getting started with the service management SDK using Maven and Eclipse.
Yes, you can programmatically create virtual machines in Azure using
Java SDK.
But you need to configure your java program as an application in
Azure portal.
Check this link for authenticating a java program in
azure.
Here is a sample piece of code from Azure SDK for creating a Linux
virtual
VirtualMachine linuxVM = azure.virtualMachines().define("myLinuxVM")
.withRegion(Region.US_EAST)
.withNewResourceGroup("myResourceGroup")
.withNewPrimaryNetwork("10.0.0.0/28")
.withPrimaryPrivateIpAddressDynamic()
.withNewPrimaryPublicIpAddress("mylinuxvmdns")
.withPopularLinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_16_04_LTS)
.withRootUserName("tirekicker")
.withSsh(sshKey)
.withSize(VirtualMachineSizeTypes.STANDARD_D3_V2)
.create();

Where to get latest Google Cloud Storage Client

I have a GAE app that uses Google Cloud Storage. On development machine I'm getting following WARNING when trying to use Storage API:
WARNING: Class com.google.appengine.tools.cloudstorage.RetryHelper
loaded from target/webapp-1.0-SNAPSHOT/WEB-INF/lib/appengine-gcs-client-0.3.2.jar
has a dependency on class com.google.appengine.tools.cloudstorage.ExceptionHandler
loaded from (target/webapp-1.0-SNAPSHOT/WEB-INF/lib/appengine-gcs-client-0.3.2.jar <no signer certificates>),
which is not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may
stop working in production at any moment.
What should I do? Does it mean that my version of GCS client is outdated?
I'm using version 0.3.2, it's a latest that I can find in Maven (see). Official site have a different naming scheme, and latest version is r127, but I cannot find this version in Maven.
Is there any other (unofficial?) repo for GCS client library?
I was concerned by the log messages in my development server as well. I looked up the source for ExceptionHandler, and I saw the log message on the latest commit (r120) said:
Remove the use of #AppEngineInternal
as dev appserver complains about it.
Here's a link to it. It seems like the dev server just doesn't like the annotation, and no functionality was changed with the commit.
A fix for this was committed to the library. The fix is what d2013 suggested.
I just tested with version 0.3.3 and can confirm that upgrading the dependency will resolve the issue.

IBM FileNet P8 Java APIs integration with Android?

IBM FileNet P8 provides Java APIs to deal with the content engine (CE)
http://pic.dhe.ibm.com/infocenter/p8docs/v5r1m0/index.jsp?topic=%2Fcom.ibm.p8.ce.dev.cews.doc%2Fconcepts%2Fintroduction.htm
my question is: are these APIs compatible with Android? can I use these APIs within my Android application ? if not, are there any alternatives ?
You can try to use CEWS API.
You cat try to use CMIS interface (if CMIS can cover your requirements and if you find the impelemntations of CMIS cliet for Android)
You can use ready Content Navigator application from Google Play to work with P8 repository.
You can customize ICN and use it in mobile browser or embeded via JavaScript in your application.
You have another option. Build a webservices layer over Filenet API and consume those webservices from your Android app
Sorry, i can't put comments to answers.
Sherif Ayad, FN have full WS API, it calls WSI. WS API is additional layer on EJB API. When you use CE Java API it depends on connection URL which transport will be used for communication (if protocol section of URL contains http(s) web services over http will be used, if iiop CE Java API will use CORBA(RMI) protocol for comminication) but it is the same api. WSI translate all methods to EJB layer. CE always have WS Interface. CE .NET API just generated stubs for WSI.
Development of additional layer of WS it is additional costs and source of errors.
Mina Samy. If you need just add comments to documents, look for the JavaScript API of ICN, or try to use ICN mobile application instead of custom application. You can try to change ICN mobile application by WebSphere Worklight technology (see license agreement for IBM Content Navigator).
mbonaci, FN Java API conatin some classes from Java EE stack, it use JAAS, RMI (IIOP) to work with EJB, it use some extensions of WS (WS-Security and WS-MTOM), it supports of transactions and others.
For example you need additional classes from javax.*** and some proprietary classes from WebSphere client to use CE Java API from remote host.
So, i'm not sure that CE API will be works under Android JDK.
I don't see why that wouldn't work.
Have you tried?
The alternative could be to use phonegap and browser (like modified Workplace), but under the cover it would stll be using CE API.
What kind of client app do you have in mind?

Possible to access gdata api when using Java App Engine?

I have a dilemma where I want to create an application that manipulates google contacts information. The problem comes down to the fact that Python only supports version 1.0 of the api whilst Java supports 3.0.
I also want it to be web-based so I'm having a look at google app engine, but it seems that only the python version of app engine supports the import of gdata apis whilst java does not.
So its either web based and version 1.0 of the api or non-web based and version 3.0 of the api.
I actually need version 3.0 to get access to the extra fields provided by google contacts.
So my question is, is there a way to get access to the gdata api under Google App Engine using Java?
If not is there an ETA on when version 3.0 of the gdata api will be released for python?
Cheers.
I'm having a look into the google data api protocol which seems to solve the problem.
Google Data API Java Client : link1
Getting Started with the Google Data Java Client Library link2
I guess this is what you were looking for.
I use GDATA apis for my JAVA appengine webapp. So GDATA can be used with JAVA runtime.
From http://code.google.com/appengine/kb/java.html
Yes, the Google Data Java client library can be used in App Engine, but you need to set a configuration option to avoid a runtime permissions error. Add the following to your appengine-web.xml file:
<system-properties>
<property name="com.google.gdata.DisableCookieHandler" value="true"/>
</system-properties>
If the following is not included, you
may see the following exception:
java.security.AccessControlException:
access denied (java.net.NetPermission
getCookieHandler)

Categories