Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I am trying to test in Postman a rest end point url. I am unable to upload a file and 2 JSON Objects, both at a time from Postman.
I can do it separately, I mean I can choose a file from form-data(Postman). Can send a JSON object from raw(Postman).But I cannot do at a time both.
Can some one please help me on this.
Using Body->form-data you can put your file and a JSON file(.json extension) with your JSON content.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
Hello i have a qustion
How can I Read Url and get json and set param in json with android and java and get value of json and read it??
please help me thanks
You can use retrofit lib to consume rest api json,
please see this answer
[https://stackoverflow.com/questions/26500036/using-retrofit-in-android][1]
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I'm using embedded form in camunda modeler, and I don't know how to get the value of the form variables to use in a service task
I tried using the id of the input task but it didn't seem to be working
The answer was cam-variable-name="firstName" cam-variable-type="String", so first name is the variable name that the task can use to get the value.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have done to print logs in the console but I have no idea how to print logs in a text file
Creat a new instance of FileWriter,I will name it fileWriter , give it a target File where to write. Then use the fileWriter.write() to write into the file. When done, call fileWriter.close(), this will save the changes to the file.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I'm working on a project (java) that search for whois information for websites, so I started searching for a good websites that provides information about whois lookup, it could be easy for me if I find xml service.
This is the
the site that provides the information I want to get all the result to my program .
Somone have an idea ?
first step: to load
InputStream in = new URL("http://toolbar.netcraft.com/site_report?url=http://louisville.edu").openStream();
String content=IOUtils.toString(in);
in.close();
Second step: parse XML: use DOM, read some tutorial
for example: DOM XML Parser Example
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
<tickettypes>
<eventid>8</eventid>
<eventname>air</eventname>
<tablename>tbl_tickets</tablename>
<ticketid>1</ticketid>
<name>Platinum</name>
<price>200.00</price>
<printable>Y</printable>
<ticketid>2</ticketid>
<name>Gold</name>
<price>150.00</price>
<printable>Y</printable>
<ticketid>3</ticketid>
<name>Silver</name>
<price>100.00</price>
<printable>Y</printable>
<ticketid>4</ticketid>
<name>Test</name>
<price>50.00</price>
<printable>Y</printable>
<surveys>
<surveyid>0</surveyid>
<surveyname>No Survey entered</surveyname>
<surveyid>1</surveyid>
<surveyname>Advertisement</surveyname>
<surveyid>2</surveyid>
<surveyname>Friends</surveyname>
<surveyid>3</surveyid>
<surveyname>Web Reference</surveyname>
<surveyid>4</surveyid>
<surveyname>News Paper</surveyname>
<surveyid>5</surveyid>
<surveyname>portals</surveyname>
</surveys>
</tickettypes>
can any one please help me how to parse the following xml file
The best way to read XML in Android is to use the Simple XML Framework. If you want a step by step guide then you should take a look at the blog post on the topic that I wrote. If you knew simple then this would take you all of ten minutes to write the code that can parse it.
There are quite a few examples of this online; the first page of a Google search "parse xml in java" was filled with examples.
http://www.java-samples.com/showtutorial.php?tutorialid=152
http://www.totheriver.com/learn/xml/xmltutorial.html
http://www.developerfusion.com/code/2064/a-simple-way-to-read-an-xml-file-in-java/