You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by sc...@apache.org on 2010/10/04 12:44:42 UTC
svn commit: r1004192 -
/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java
Author: scheu
Date: Mon Oct 4 10:44:42 2010
New Revision: 1004192
URL: http://svn.apache.org/viewvc?rev=1004192&view=rev
Log:
AXIS2-4822
Committer:Rich Scheuerle
Summary:
The MarshalServiceRuntimeDescription is cleared (and later updated) when an endpointUpdate call adds a new operation.
Modified:
axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java
Modified: axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java?rev=1004192&r1=1004191&r2=1004192&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java (original)
+++ axis/axis2/java/core/trunk/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointInterfaceDescriptionImpl.java Mon Oct 4 10:44:42 2010
@@ -57,6 +57,7 @@ import org.apache.axis2.jaxws.descriptio
import org.apache.axis2.jaxws.description.builder.DescriptionBuilderComposite;
import org.apache.axis2.jaxws.description.builder.MDQConstants;
import org.apache.axis2.jaxws.description.builder.MethodDescriptionComposite;
+import org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl;
import org.apache.axis2.jaxws.i18n.Messages;
import org.apache.axis2.jaxws.util.WSToolingUtils;
import org.apache.axis2.wsdl.WSDLConstants;
@@ -111,7 +112,20 @@ public class EndpointInterfaceDescriptio
* @param operation The operation description to add to this endpoint interface
*/
void addOperation(OperationDescription operation) {
+ if (log.isDebugEnabled()) {
+ log.debug("start addOperation for " + operation);
+ }
operationDescriptions.add(operation);
+ // Clear the runtime description information, it will need to be rebuilt.
+ ServiceDescriptionImpl sd = (getEndpointDescriptionImpl() == null) ? null:
+ getEndpointDescriptionImpl().getServiceDescriptionImpl();
+ if (sd != null) {
+ sd.runtimeDescMap.clear();
+ }
+
+ if (log.isDebugEnabled()) {
+ log.debug("end addOperation");
+ }
}
/**