09-24-2010 06:01 AM
<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();
10-19-2010 10:06 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.