import org.apache.axis.encoding.XMLType;
import java.util.*;
import javax.xml.rpc.*;
import org.apache.axis.message.*;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import java.io.*;
public class AxisTest2 {
/*
The Following Code produces:
HOWEVER, the following is what was expected:
WHAT IS WRONG? WHY is the xmlFromDom4j not utilized?
*/
public static void main(String [] args) throws Exception{
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL("http://www.carrentals.com/servlet/RequestTest"));
call.setOperationStyle("document");
call.setOperationName("OTA_VehAvailRateRQ");
RPCElement element=new RPCElement("RateRequest");
element.setNamespaceURI("http://www.whatever.org/");
String xmlFromDom4j="";
org.apache.axis.message.Text textElement=new Text(xmlFromDom4j);
textElement.setParentElement(element);
call.invoke(element);
}
}