You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ke...@apache.org on 2007/04/04 07:46:45 UTC
svn commit: r525419 -
/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java
Author: keithc
Date: Tue Apr 3 22:46:44 2007
New Revision: 525419
URL: http://svn.apache.org/viewvc?view=rev&rev=525419
Log:
Fix for AXIS2-2465.
Modified:
webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java
Modified: webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java?view=diff&rev=525419&r1=525418&r2=525419
==============================================================================
--- webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java (original)
+++ webservices/axis2/branches/java/1_2/modules/kernel/src/org/apache/axis2/util/WSDLSerializationUtil.java Tue Apr 3 22:46:44 2007
@@ -174,6 +174,7 @@
WSDL2Constants.URI_WSDL2_SOAP));
binding.addAttribute(fac.createOMAttribute(WSDL2Constants.ATTRIBUTE_VERSION, wsoap,
WSDL2Constants.SOAP_VERSION_1_1));
+ generateDefaultSOAPBindingOperations(axisService, fac, binding, tns, wsoap);
return binding;
}
@@ -198,6 +199,7 @@
WSDL2Constants.URI_WSDL2_SOAP));
binding.addAttribute(fac.createOMAttribute(WSDL2Constants.ATTRIBUTE_VERSION, wsoap,
WSDL2Constants.SOAP_VERSION_1_2));
+ generateDefaultSOAPBindingOperations(axisService, fac, binding, tns, wsoap);
return binding;
}
@@ -232,6 +234,20 @@
name));
}
return binding;
+ }
+
+ private static void generateDefaultSOAPBindingOperations(AxisService axisService, OMFactory omFactory, OMElement binding, OMNamespace tns, OMNamespace wsoap) {
+ Iterator iterator = axisService.getChildren();
+ while (iterator.hasNext()) {
+ AxisOperation axisOperation = (AxisOperation) iterator.next();
+ OMElement opElement = omFactory.createOMElement(WSDL2Constants.OPERATION_LOCAL_NAME, null);
+ binding.addChild(opElement);
+ String name = axisOperation.getName().getLocalPart();
+ opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_REF, null,
+ tns.getPrefix() + ":" + name));
+ opElement.addAttribute(omFactory.createOMAttribute(WSDL2Constants.ATTRIBUTE_ACTION, wsoap,
+ axisOperation.getInputAction()));
+ }
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org