axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r543837 - in /webservices/axis2/trunk/java/modules: java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
Date Sun, 03 Jun 2007 03:25:09 GMT
Author: dims
Date: Sat Jun  2 20:25:09 2007
New Revision: 543837

URL: http://svn.apache.org/viewvc?view=rev&rev=543837
Log:
expose getter/setter for style and use in AxisService2WSDL11

Modified:
    webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java

Modified: webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java?view=diff&rev=543837&r1=543836&r2=543837
==============================================================================
--- webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/java2wsdl/src/org/apache/ws/java2wsdl/Java2WSDLBuilder.java
Sat Jun  2 20:25:09 2007
@@ -214,11 +214,12 @@
         axisService.setEPRs(new String[]{uri});
         configCtx.getAxisConfiguration().addService(axisService);
 
-        //TODO: Figure out how to set the style, use;
         //TODO: Switch for WSDL20
 
-        AxisService2WSDL11 axisService2WOM = new AxisService2WSDL11(axisService);
-        OMElement wsdlElement = axisService2WOM.generateOM();
+        AxisService2WSDL11 g = new AxisService2WSDL11(axisService);
+        g.setStyle(this.style);
+        g.setUse(this.use);
+        OMElement wsdlElement = g.generateOM();
         if(!isPretty()){
             wsdlElement.serialize(out);
         } else {

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java?view=diff&rev=543837&r1=543836&r2=543837
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisService2WSDL11.java
Sat Jun  2 20:25:09 2007
@@ -76,8 +76,6 @@
 
     private String use = LITERAL;
 
-    private String servicePath;
-
     private HashMap policiesInDefinitions;
 
     private ExternalPolicySerializer serializer;
@@ -1013,5 +1011,21 @@
 
     private void addPolicyToDefinitionElement(String key, Policy policy) {
         policiesInDefinitions.put(key, policy);
+    }
+
+    public String getStyle() {
+        return style;
+    }
+
+    public void setStyle(String style) {
+        this.style = style;
+    }
+
+    public String getUse() {
+        return use;
+    }
+
+    public void setUse(String use) {
+        this.use = use;
     }
 }



---------------------------------------------------------------------
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