Traditional Culture Encyclopedia - Weather forecast - Java.io.ioexception: The server returned an http response code: 400?

Java.io.ioexception: The server returned an http response code: 400?

If you want to call webservice, JS is difficult to implement, because there are many JAR packages on the client side of webservice, unless JS is used to simulate webservice call in JAVA.

In fact, you can find a weather forecast page online, and then directly nest an iframe on the page, or use AJAX to get a response, and then use document. getelementbyid ('xx ')。 Innerhtml =' response string obtained'; The way to achieve it.

Good luck!