<webscript>
<shortname>POST commande bean</shortname>
<description>Permet de creer une demande</description>
<url>/ui/bean/commande</url>
<authentication>guest</authentication>
<transaction>requiresnew</transaction>
</webscript>
File fileConsigne = XmlDocumentParserImpl.saveXmlFile(messageRetour, true, "RETOUR_COMMANDE.xml");
URL url = new URL("http://localhost:8080/projet/service/ui/bean/commande");
URLConnection conn = url.openConnection();
FileInputStream in = new FileInputStream(fileConsigne);
byte[] data = new byte[(int) fileConsigne.length()];
in.read(data);
in.close();
conn.setDoInput(true);
conn.setDoOutput(true);
conn.setUseCaches(false);
conn.setRequestProperty("Content-Type", "text/xml");
DataOutputStream out = new DataOutputStream(conn.getOutputStream());
out.write(data, 0, data.length);
out.flush();
out.close();
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.