I need to consume a soap webservice who consume only EBCDIC Encoding.
Can you tel me if this is possible on Talend or not ?
Thank you.
Regards.
Related
I have to decode the response of a rest service (only JSON response). Does anyone know how to do this in Cache 2008.2?
2008 version does not natively support JSON.
Try these libraries.
https://openexchange.intersystems.com/package/Cogs-JSON-Class
https://github.com/PlanetCache/CacheJSON
One way of doing is to convert the binary data to Base64 and send it along with meta data as MediaType.APPLICATION_JSON.
The problem with this is client has to convert the binary data into Base64 before sending.
I also tried sending using MediaType.APPLICATION_OCTET_STREAM format through REST. This works fine for binary data only.
One option is to send meta data in headers while using MediaType.APPLICATION_OCTET_STREAM.
Is there any better way?
Thanks
Use multipart/form-data. This is what it's meant for. Not sure which Jersey version you are using, but here is the link for the Jersey 2.x documentation for Multipart support. Here's for 1.x (not really much information). You will need to do some searching for using multipart with Javascript clients (there is a bunch of information out there)
Here is a good example of using Jersey 2.x with both the server side and the client API.
Here is an example with Jersey 1.x. You can see the API it not much different.
This is my first post here(pardon me if I'm vague).
Actually I've got a wsdl file (which have soap requests, schema, generates pojo) and my task is to
1) Integrate that with eclipse .
2) Send the request to the server.
3) get the response back.
4) And parse the response in Java.
And I'm not at all aware of where to start. Someone suggested of using Apache axis with eclipse (I'm not aware of that too).
Thank you for your help, And also please suggest what is the best way of parsing and how to parse a SOAP message that way in JAVA.
A demo will be so much appreciated.
Thank You.... and sorry if I'm expecting too much, I'm newbie :)
Create auto generated classes from WSDL. You can use various tools that help in generate classes from WSDL file ex: JAVAtoWSDL or ApacheAxis.
Once classes has been generated then you can parse request and create response with JAXB, that is marshall and unmarshall.
Hi I am developing a Java application using Scribe to integrate with Linkedin and make RestFul calls. I use FasterXML Jackson Json Parser library to parse the LinkedIn API responses in JSON.
I would like to check how I can parse Unicode characters in the response from LinkedIn when using the Jackson parser. When i do it the normal API call and print it out I see see ????? for those values that are returned in Unicode format.
Unicode characters are handled by Jackson. But code that prints out content may not be using UTF-8 encoding; make sure you check out actual character codes and NOT rely on what you see on your console window. Console may be using incorrect encoding, for example, or not have fonts to display all Unicode characters.
Alternatively service may be sending incorrectly encoded content. To verify this, you must check out actual bytes sent and see if they are properly UTF-8 encoded.
We are now using xml formats for the service calls. The responses are larger. But heard json is faster for the service calls.
Can any one tell me which is better to use...
Have a look at this should solve your doubts
Cheers