// Set the javaType to the name of the type
String javaType = null;
if (p.getMIMEInfo() != null) {
MimeInfo mimeInfo = p.getMIMEInfo();
javaType = JavaUtils.mimeToJava(mimeInfo.getType())
+ mimeInfo.getDimensions() + ".class, ";
} else {
javaType = p.getType().getName();
if (javaType != null) {
javaType += ".class, ";
} else {
javaType = "null, ";
}
}
// Get the text representing newing a QName for the name and type
String paramNameText = Utils.getNewQNameWithLastLocalPart(p.getQName());
String paramTypeText = Utils.getNewQName(paramType);
// Generate the addParameter call with the
// name qname, typeQName, optional javaType, and mode
boolean isInHeader = p.isInHeader();
boolean isOutHeader = p.isOutHeader();
pw.println(" oper.addParameter(" + paramNameText + ", "
+ paramTypeText + ", " + javaType
+ modeStrings[p.getMode()] + ", " + isInHeader
+ ", " + isOutHeader + ");");
}
// set output type
if (parameters.returnParam != null) {
// Get the QName for the return Type
QName returnType = Utils.getXSIType(parameters.returnParam);
// Get the javaType
String javaType = null;
if (parameters.returnParam.getMIMEInfo() != null) {
MimeInfo mimeInfo = parameters.returnParam.getMIMEInfo();
javaType = JavaUtils.mimeToJava(mimeInfo.getType())
+ mimeInfo.getDimensions();
} else {
javaType = parameters.returnParam.getType().getName();
}
if (javaType == null) {