Inbound XML Request Using the Dynamic Java Connector
You use the dynamic Java connector to send inbound synchronous XML requests (such as XML CallObject, XML List, and XML UBE) to the JD Edwards EnterpriseOne server.
See Also
"Submit a UBE from XML" in the JD Edwards EnterpriseOne Tools Interoperability Guide.
"Understanding XML CallObject" in the JD Edwards EnterpriseOne Tools Interoperability Guide.
"Understanding XML List" in the JD Edwards EnterpriseOne Tools Interoperability Guide.
This sample code shows how to use the dynamic Java connector to execute an inbound XML request:
import com.jdedwards.system.xml.XMLRequest; /... //Declare Class xmlInteropTest.EstablishSession(args); } public void EstablishSession(String[] args) throws Exception { String xmlDoc = new String(); xmlDoc += "<?xml version='1.0' ?> <jdeRequest type='callmethod' user='user' "; xmlDoc += " pwd='pwd' environment='env' role='role' session='' "; xmlDoc += "sessionidle='1800'> </jdeRequest>"; String requestResult; try { XMLRequest xmlRequest = new XMLRequest("E1Server", 6014, xmlDoc); requestResult = xmlRequest.execute(); System.out.println("Test Successful"); } catch (Exception e) { System.out.println("Error in XML request"); System.out.println(e.getMessage()); } }