Tallon
Member
I am trying to find out which JAR file contains the java class XMLRequest. In XE this used to be the kernal.jar file. In 9.0 the "Working with the Dynamic Java Connector" mention 18 different jars.
The code I am trying to execute is essentially the same as the code sample in the "Inbound XML Request Using the Dynamic Java Connector" section.
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());
}
}
The Guide is at
http://e1javagen01:8080/PSOL/htmldoc/eng/psbooks/1tcn/chapter.htm?File=1tcn/htm/1tcn10.htm%23H4039
Has anyone got this sample to work in JDE v9.0?
Thank You,
Terry
The code I am trying to execute is essentially the same as the code sample in the "Inbound XML Request Using the Dynamic Java Connector" section.
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());
}
}
The Guide is at
http://e1javagen01:8080/PSOL/htmldoc/eng/psbooks/1tcn/chapter.htm?File=1tcn/htm/1tcn10.htm%23H4039
Has anyone got this sample to work in JDE v9.0?
Thank You,
Terry