Jump to content
Changes to the Jaspersoft community edition download ×

Modify Schema file resource using rest java client

Go to solution Solved by billokara,

Recommended Posts


what is the proper way to modify/replace the schema file of a ClientSemanticLayerDataSource using rest java client (jrs-rest-java-client-6.3.0)?

i tried using 


SingleResourceAdapter resAdapter = session.resourcesService().resource(schemaUri);

ClientFile cf = (ClientFile) resAdapter.details().getEntity();




After the update, when trying to get the schema resource back, the downloadBinary() seems returned content in gibberrish characters (I read from the InputStream and output to string. the content was OK before the createOrUpdate, but after createOrUpdate in the above steps, it became gibberish).


is this the proper way to modify/replace the xml schema using the rest java client?



Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...