Author: gnodet
Date: Wed Aug 23 08:00:06 2006
New Revision: 434058
URL: http://svn.apache.org/viewvc?rev=434058&view=rev
Log:
SM-551: wsdlsoap:address generated by http component misses trailing slash
Modified:
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
incubator/servicemix/trunk/servicemix-http/src/test/java/org/apache/servicemix/http/HttpWsdlTest.java
Modified:
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java?rev=434058&r1=434057&r2=434058&view=diff
==============================================================================
---
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
(original)
+++
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
Wed Aug 23 08:00:06 2006
@@ -202,6 +202,9 @@
def.removeBinding(names[i]);
}
String location = getLocationURI();
+ if (!location.endsWith("/")) {
+ location += "/";
+ }
HttpLifeCycle lf = (HttpLifeCycle)
getServiceUnit().getComponent().getLifeCycle();
if (lf.getConfiguration().isManaged()) {
// TODO: need to find the port of the web server
Modified:
incubator/servicemix/trunk/servicemix-http/src/test/java/org/apache/servicemix/http/HttpWsdlTest.java
URL:
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-http/src/test/java/org/apache/servicemix/http/HttpWsdlTest.java?rev=434058&r1=434057&r2=434058&view=diff
==============================================================================
---
incubator/servicemix/trunk/servicemix-http/src/test/java/org/apache/servicemix/http/HttpWsdlTest.java
(original)
+++
incubator/servicemix/trunk/servicemix-http/src/test/java/org/apache/servicemix/http/HttpWsdlTest.java
Wed Aug 23 08:00:06 2006
@@ -82,7 +82,7 @@
ep.setService(new QName("http://test", "MyConsumerService"));
ep.setEndpoint("myConsumer");
ep.setRoleAsString("consumer");
- ep.setLocationURI("http://localhost:8195/Service/");
+ ep.setLocationURI("http://localhost:8195/Service");
HttpSpringComponent http = new HttpSpringComponent();
http.setEndpoints(new HttpEndpoint[] { ep });
container.activateComponent(http, "HttpWsdlTest");