Author: jbonofre
Date: Sat Aug  8 12:08:44 2009
New Revision: 802347

URL: http://svn.apache.org/viewvc?rev=802347&view=rev
Log:
The locationURI property is mandatory for the HTTP SOAP consumer endpoint 
(reflect the documentation into the validate() method).

Modified:
    
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpConsumerEndpoint.java

Modified: 
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpConsumerEndpoint.java
URL: 
http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpConsumerEndpoint.java?rev=802347&r1=802346&r2=802347&view=diff
==============================================================================
--- 
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpConsumerEndpoint.java
 (original)
+++ 
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpConsumerEndpoint.java
 Sat Aug  8 12:08:44 2009
@@ -520,6 +520,9 @@
 
     public void validate() throws DeploymentException {
         super.validate();
+        if (locationURI == null || locationURI.trim().length() < 1) {
+            throw new DeploymentException("The location URI is mandatory.");
+        }
         if (endpoint != null && endpoint.contains(":")) {
             throw new DeploymentException("Endpoint name contains ':'. This 
character is not allowed as it can provide invalid WSDL.");
         }


Reply via email to