You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2007/01/29 21:36:18 UTC
svn commit: r501175 -
/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
Author: danj
Date: Mon Jan 29 12:36:17 2007
New Revision: 501175
URL: http://svn.apache.org/viewvc?view=rev&rev=501175
Log:
introduced index calculation bug in getServiceName() when removing java.util.regex code last week.
Modified:
webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
Modified: webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java?view=diff&rev=501175&r1=501174&r2=501175
==============================================================================
--- webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java (original)
+++ webservices/muse/trunk/modules/muse-core/src/org/apache/muse/ws/wsdl/WsdlUtils.java Mon Jan 29 12:36:17 2007
@@ -803,7 +803,7 @@
return DEFAULT_SERVICE_NAME;
//
- // see if the 'location' has a URI with /services/ in it
+ // see if the 'location' has a URI with 'services' in it
//
int servicesStart = location.indexOf(SERVICES);
@@ -815,11 +815,11 @@
return DEFAULT_SERVICE_NAME;
//
- // otherwise, we take the last token after /services/
+ // otherwise, we take the last token after 'services'
//
- int serviceNameStart = servicesStart + SERVICES.length();
+ int serviceNameStart = servicesStart + SERVICES.length() + 1;
- if (serviceNameStart == location.length())
+ if (serviceNameStart >= location.length())
return DEFAULT_SERVICE_NAME;
return location.substring(serviceNameStart);
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-commits-help@ws.apache.org