jquery - Java - Http Framework to Post XML Files -
i want learn java / java ee , therefore decide rewrite javascript application build in jquery, can send xml files against rest api.
simplified looks like:
var core = { senddata : function() { jquery.ajax({ url : "/test", method : "post", contenttype : "application/xml; charset=utf-8", data : json.strinigfy(xmlfeed), success : function(data) { // todo }, error : function() { // todo } }); } }
i want build java application, can post xml files against rest api.
rest api nescessary, xml file post request payload. tried jsoup, can not send xml files in way. there java framework, makes easier me build first java application?
i found an article might you. suggests apache httpclient or jersey client. httpclient better focused on specific need because jersey server-side rest implementations, , seem need rest client. found resty, newer article, , seems promising.
Comments
Post a Comment