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 aj...@apache.org on 2006/07/26 14:09:05 UTC
svn commit: r425717 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Author: ajith
Date: Wed Jul 26 05:09:05 2006
New Revision: 425717
URL: http://svn.apache.org/viewvc?rev=425717&view=rev
Log:
1.Modified the skeleton generation in the following way
I. Enabled the server side skel generation only when the user has asked for the service descriptor with the interface option, Hence -ss -sd -ssi generates service.xml, concrete skel, and the skel intefrace, -ss -ssi generates the service.xml with the interface only and the -ss -sd and just -ss generates the usual concrete skel.
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java?rev=425717&r1=425716&r2=425717&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java Wed Jul 26 05:09:05 2006
@@ -758,18 +758,31 @@
generateAndPopulateFaultNames();
updateFaultPackageForSkeleton(codeGenConfiguration.isServerSideInterface());
+ //
if (codeGenConfiguration.isServerSideInterface()) {
//write skeletonInterface
writeSkeletonInterface();
}
- // write skeleton
- writeSkeleton();
+
+ // write skeleton only if the used has
+ // asked for the deployment descriptor in the interface mode
+ // else write it anyway :)
+ if (codeGenConfiguration.isServerSideInterface()){
+ if (codeGenConfiguration.isGenerateDeployementDescriptor()){
+ writeSkeleton();
+ }
+ }else{
+ writeSkeleton();
+ }
// write a MessageReceiver for this particular service.
writeMessageReceiver();
- // write interface implementations
- writeServiceXml();
+ // write service xml
+ // if asked
+ if (codeGenConfiguration.isGenerateDeployementDescriptor()) {
+ writeServiceXml();
+ }
//write the ant build
//we skip this for the flattened case
@@ -1239,7 +1252,6 @@
* @throws Exception
*/
protected void writeServiceXml() throws Exception {
- if (this.codeGenConfiguration.isGenerateDeployementDescriptor()) {
// Write the service xml in a folder with the
Document serviceXMLModel = createDOMDocumentForServiceXML();
@@ -1252,7 +1264,7 @@
this.codeGenConfiguration.getOutputLanguage());
writeClass(serviceXMLModel, serviceXmlWriter);
- }
+
}
protected Document createDOMDocumentForServiceXML() {
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org