billokara Posted February 4, 2017 Share Posted February 4, 2017 Hi,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();cf.setContent(newXmlContent)resAdapter.createOrUpdate(cf)====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?Thanks!Bill Link to comment Share on other sites More sharing options...
Solution billokara Posted February 7, 2017 Author Solution Share Posted February 7, 2017 the content needs to be base64 encoded. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now