axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntha...@apache.org
Subject svn commit: r524888 - in /webservices/axis2/trunk/java/modules: jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
Date Mon, 02 Apr 2007 19:08:35 GMT
Author: nthaker
Date: Mon Apr  2 12:08:33 2007
New Revision: 524888

URL: http://svn.apache.org/viewvc?view=rev&rev=524888
Log:
Axis2-2437

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java?view=diff&rev=524888&r1=524887&r2=524888
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/spi/ServiceDelegate.java
Mon Apr  2 12:08:33 2007
@@ -106,7 +106,9 @@
     // are only suitibale for creating Distpach instances.
     public void addPort(QName portName, String bindingId, String endpointAddress)
             throws WebServiceException {
-
+    	if(endpointAddress!=null && endpointAddress.trim().length()==0){
+    		ExceptionFactory.makeWebServiceException(Messages.getMessage("addPortErr1", (portName!=null)?portName.getLocalPart():"",
endpointAddress));
+    	}
         EndpointDescription endpointDesc =
                 DescriptionFactory.updateEndpoint(serviceDescription, null, portName,
                                                   DescriptionFactory.UpdateType.ADD_PORT);

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties?view=diff&rev=524888&r1=524887&r2=524888
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/i18n/resource.properties
Mon Apr  2 12:08:33 2007
@@ -36,8 +36,7 @@
 createDispatchFail2=Dispatch creation failed. The service cannot find Port data for the {0}
port.
 addPortDup=An attempt was made to add the {0} port to the ServiceDelegate. The port already
exists.
 addPortErr0=Only the SOAP11HTTP_BINDING, SOAP12HTTP_BINDING, SOAP11HTTP_MTOM_BINDING, SOAP12HTTP_MTOM_BINDING
and HTTP_BINDING ports are supported at this time. The {0} port cannot be added to the ServiceDelegate.
-# The key addPortErr1 is not currently used
-# addPortErr1=An attempt was made to add the {0} port with the {1} endpoint address, which
is not valid, to the ServiceDelegate. This addition is not allowed.
+addPortErr1=An attempt was made to add the {0} port with the {1} endpoint address, which
is not valid, to the ServiceDelegate. This addition is not allowed.
 addPortErr2=An attempt was made to add a port without a name to the ServiceDelegate object.
This addition is not allowed.
 serviceDelegateConstruct0=An attempt was made to construct the ServiceDelegate object with
an service name that is not valid: {0}.
 serviceDelegateConstruct1=An attempt was made to construct the ServiceDelegate object with
the {0} service, but the service is not defined in the {1} WSDL file.



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message