You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ke...@apache.org on 2006/11/30 06:28:57 UTC
svn commit: r480841 -
/webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Author: keithc
Date: Wed Nov 29 21:28:56 2006
New Revision: 480841
URL: http://svn.apache.org/viewvc?view=rev&rev=480841
Log:
Add the first endpoint to axis service if a port name is not specified during codegen
Modified:
webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Modified: webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?view=diff&rev=480841&r1=480840&r2=480841
==============================================================================
--- webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java (original)
+++ webservices/axis2/branches/java/WSDL_2_0/modules/kernel/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java Wed Nov 29 21:28:56 2006
@@ -193,16 +193,15 @@
processedBindings = new HashMap();
+ Endpoint endpoint = null;
+
if (this.interfaceName != null) {
- Endpoint endpoint = null;
+
for (int i = 0; i < endpoints.length; ++i) {
if (this.interfaceName.equals(endpoints[i].getName().toString())) {
endpoint = endpoints[i];
- axisService.setEndpointName(endpoint.getName().toString());
- axisService.setBindingName(endpoint.getBinding().getName().getLocalPart());
- axisService.setEndpointURL(endpoint.getAddress().toString());
break; // found it. Stop looking
}
}
@@ -221,6 +220,16 @@
axisService
.addEndpoint(endpoints[i].getName().toString(), processEndpoint(endpoints[i]));
}
+ }
+
+ if (endpoints.length != 0)
+ {
+
+ endpoint = endpoints[0];
+
+ axisService.setEndpointName(endpoint.getName().toString());
+ axisService.setBindingName(endpoint.getBinding().getName().getLocalPart());
+ axisService.setEndpointURL(endpoint.getAddress().toString());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org