Author: amilas
Date: Sat May 8 15:45:58 2010
New Revision: 942405
URL: http://svn.apache.org/viewvc?rev=942405&view=rev
Log:
applied the patch for AXIS2-3820
Modified:
axis/axis2/java/core/trunk/modules/transport/http/src/org/apache/axis2/transport/http/HTTPWorker.java
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=942405&r1=942404&r2=942405&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
Sat May 8 15:45:58 2010
@@ -154,8 +154,10 @@ public class HTTPWorker implements Worke
}
//cater for named xsds - check for the xsd name
if (uri.indexOf("?xsd=") > 0) {
+ // fix for imported schemas
+ String[] uriParts = uri.split("[?]xsd=");
String serviceName =
- uri.substring(uri.lastIndexOf("/") + 1,
uri.lastIndexOf("?xsd="));
+ uri.substring(uriParts[0].lastIndexOf("/") + 1,
uriParts[0].length());
String schemaName = uri.substring(uri.lastIndexOf("=") + 1);
HashMap services =
configurationContext.getAxisConfiguration().getServices();