Chapter 16. Remote Integration Objects (RIO) 485
" <!ATTLIST com.ibm.HostPublisher.IntegrationObject.properties name
CDATA \"\">" +
" <!ELEMENT inputProperties (inputProperty*)>" +
" <!ELEMENT inputProperty (value)>" +
" <!ATTLIST inputProperty name CDATA \"\">" +
" <!ELEMENT outputProperties (outputProperty*)>" +
" <!ELEMENT outputProperty (value+)>" +
" <!ATTLIST outputProperty name CDATA \"\">" +
" <!ELEMENT value (#PCDATA)>" +
"]>";
//---------------------------------------------------------------------------
// Prepare XML Input Request for the Remote Integration Object.
String XMLDataRequest =
"<com.ibm.HostPublisher.IntegrationObject.properties
name=\"IntegrationObject.CICS\">" +
" <inputProperties>" +
" <inputProperty name=\"account_num\">" +
" <value>" + args [0] + "</value>" +
" </inputProperty> </inputProperties>" +
"</com.ibm.HostPublisher.IntegrationObject.properties>";
//----------------------------------------------------------------------------
// Post the request for the Remote Integration Object.
//System.setProperty ("java.protocol.handler.pkgs",
"com.sun.net.ssl.internal.www.protocol");
URL servletCall = new URL ("http", HostName, 80,
"/_IBM_HP_WebAdmin_/RIOServlet");
URLConnection connection = servletCall.openConnection();
connection.setDoOutput (true);
connection.setRequestProperty
("Content-Type","application/x-www-form-urlencoded");
BufferedWriter output = new BufferedWriter (new OutputStreamWriter
(connection.getOutputStream()));
String postString = "hPubExecuteXML=" + URLEncoder.encode (XMLHeaderDTD +
XMLDataRequest);
output.write (postString);
output.flush();
output.close();
//----------------------------------------------------------------------------
// Read the response from the RIO servlet.