Author: sagara Date: Mon Jul 2 06:44:41 2012 New Revision: 1356080 URL: http://svn.apache.org/viewvc?rev=1356080&view=rev Log: Fixed AXIS2-5355.
Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java Modified: axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java?rev=1356080&r1=1356079&r2=1356080&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java (original) +++ axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/AxisService.java Mon Jul 2 06:44:41 2012 @@ -1359,9 +1359,10 @@ public class AxisService extends AxisDes if ((xsd != null) && (!"".equals(xsd))) { XmlSchema schema = (XmlSchema) schemaMappingtable.get(xsd); if (schema == null) { - int dotIndex = xsd.indexOf('.'); + int dotIndex = xsd.lastIndexOf('.'); if (dotIndex > 0) { String schemaKey = xsd.substring(0, dotIndex); + schemaKey = schemaKey.replace("./" , ""); schema = (XmlSchema) schemaMappingtable.get(schemaKey); } } Modified: axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java?rev=1356080&r1=1356079&r2=1356080&view=diff ============================================================================== --- axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java (original) +++ axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java Mon Jul 2 06:44:41 2012 @@ -191,9 +191,10 @@ public class HTTPWorker implements Worke Map schemaTable = service.getSchemaMappingTable(); XmlSchema schema = (XmlSchema) schemaTable.get(schemaName); if (schema == null) { - int dotIndex = schemaName.indexOf('.'); + int dotIndex = schemaName.lastIndexOf('.'); if (dotIndex > 0) { String schemaKey = schemaName.substring(0,dotIndex); + schemaKey = schemaKey.replace("./", ""); schema = (XmlSchema) schemaTable.get(schemaKey); } }