Bookshelf Home | Contents | Index | PDF |
Siebel Portal Framework Guide > Delivering Content to External Web Applications > Connecting to the XML Web Interface > XML Command BlockYou can use an XML command block to send the HTTP request through the Siebel Web server. For example, you can submit inbound XML documents to SWE as the HTTP request body data. In the Java code sample below, the XML command block opens a socket connection to the Web server and writes the request data stream to the socket's OutputStream. public static final String FULL_XML_PROC_STR = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; InputStream in; if (request != null && request.length() > 0) socket = new Socket(url.getHost(), url.getPort()); toServer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream())); toServer.println("Cookie: " + sessionID); // read the response |
Siebel Portal Framework Guide | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |