You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by de...@apache.org on 2007/02/06 05:09:09 UTC
svn commit: r503972 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java
Author: deepal
Date: Mon Feb 5 20:09:09 2007
New Revision: 503972
URL: http://svn.apache.org/viewvc?view=rev&rev=503972
Log:
fixing AXIS2-1215
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java?view=diff&rev=503972&r1=503971&r2=503972
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/util/SchemaUtil.java Mon Feb 5 20:09:09 2007
@@ -48,10 +48,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpUtils;
import javax.xml.namespace.QName;
-import javax.mail.internet.MimeMessage;
-import javax.mail.Session;
-import javax.mail.MessagingException;
-import javax.mail.Multipart;
import java.util.Iterator;
import java.util.Map;
import java.util.HashMap;
@@ -59,7 +55,6 @@
import java.util.List;
import java.net.URLDecoder;
import java.io.UnsupportedEncodingException;
-import java.io.IOException;
/**
*
@@ -207,7 +202,15 @@
!"".equals(parameterValuesArray[0]) &&
parameterValuesArray[0] != null) {
value = parameterValuesArray[0];
-
+ OMNamespace ns = (qName == null ||
+ qName.getNamespaceURI() == null
+ || qName.getNamespaceURI().length() == 0) ?
+ null : soapFactory.createOMNamespace(
+ qName.getNamespaceURI(), null);
+ for (int i = 0 ; i < parameterValuesArray.length ; i++) {
+ soapFactory.createOMElement(name, ns,
+ bodyFirstChild).setText(parameterValuesArray[i]);
+ }
}
}
@@ -234,18 +237,7 @@
throw new AxisFault("Required element " + qName +
" defined in the schema can not be found in the request");
}
- } else {
-
- OMNamespace ns = (qName == null ||
- qName.getNamespaceURI() == null ||
- qName.getNamespaceURI().length() == 0) ?
- null :
- soapFactory
- .createOMNamespace(qName.getNamespaceURI(), null);
- soapFactory.createOMElement(name, ns,
- bodyFirstChild).setText(value);
}
-
minOccurs--;
}
}
@@ -354,7 +346,7 @@
int templateEndIndex = 0;
int indexOfNextConstant = 0;
- StringBuffer requestURIBuffer = null;
+ StringBuffer requestURIBuffer ;
try {
requestURIBuffer = new StringBuffer(URLDecoder.decode(requestURL, "UTF-8"));
} catch (UnsupportedEncodingException e) {
@@ -417,7 +409,7 @@
throws AxisFault {
String encodedQueryString = request.getQueryString();
- String queryString = null;
+ String queryString ;
Map parameterMap = new HashMap();
if (encodedQueryString != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org