Call l_call = (Call) l_service.createCall();
//Set the target server and name space
l_call.setTargetEndpointAddress( [[#variable18d6f9c0]]);
l_call.setOperationName(new QName("SQL99Validator", "validateSQL"));
//Add the parameter names and types
//Use the session Id you got from the openSession call here
l_call.addParameter("a_sessionId", XMLType.XSD_INT, ParameterMode.IN);
//Use the session key you got from the openSession call here
l_call.addParameter("a_sessionKey", XMLType.XSD_INT, ParameterMode.IN);
//The SQL statement to be validated against the standard
l_call.addParameter("a_sqlStatement", XMLType.XSD_STRING, ParameterMode.IN);
//The format of the result. This must be "text" or "html".
//Hopefully some type of XML format will be available as well
l_call.addParameter("a_resultType", XMLType.XSD_STRING, ParameterMode.IN);
QName l_qn = new QName( [[#variable18d735a0]], "ValidatorResult");
// QName l_qn = new QName( "http://sqlvalidator.mimer.com/v1", "ValidatorResult" );
l_call.registerTypeMapping(ValidatorResult.class , l_qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ValidatorResult.class , l_qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(ValidatorResult.class , l_qn));
//Set the return type
l_call.setReturnType(l_qn);
|