axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r412753 - in /webservices/axis2/trunk/java/modules: adb-codegen/test-resources/wsdl20/ codegen/src/org/apache/axis2/wsdl/i18n/ core/src/org/apache/axis2/description/
Date Thu, 08 Jun 2006 13:47:02 GMT
Author: chinthaka
Date: Thu Jun  8 06:47:01 2006
New Revision: 412753

URL: http://svn.apache.org/viewvc?rev=412753&view=rev
Log:
- displaying the wsdl version can be input as a param.
- adding two sample wsdl 2.0 docs for testing purposes. One extracted from the spec itself
and the other from Woden repo.

Added:
    webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/
    webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/GreatH.wsdl
    webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/HotelReservationService.wsdl
Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties
    webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java

Added: webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/GreatH.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/GreatH.wsdl?rev=412753&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/GreatH.wsdl (added)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/GreatH.wsdl Thu
Jun  8 06:47:01 2006
@@ -0,0 +1,55 @@
+<description xmlns="http://www.w3.org/2005/05/wsdl" targetNamespace="http://greath.example.com/2004/wsdl/resSvc"
xmlns:tns="http://greath.example.com/2004/wsdl/resSvc" xmlns:ghns="http://greath.example.com/2004/schemas/resSvc"
xmlns:wsoap="http://www.w3.org/2005/05/wsdl/soap" xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
+    <documentation>
+        This document describes the GreatH Web service. Additional
+        application-level requirements for use of this service --
+        beyond what WSDL 2.0 is able to describe -- are available
+        at http://greath.example.com/2004/reservation-documentation.html
+    </documentation>
+    <types>
+        <xs:schema
+                xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                targetNamespace="http://greath.example.com/2004/schemas/resSvc"
+                xmlns="http://greath.example.com/2004/schemas/resSvc">
+            <xs:element name="checkAvailability" type="tCheckAvailability"/>
+            <xs:complexType name="tCheckAvailability">
+                <xs:sequence>
+                    <xs:element name="checkInDate" type="xs:date"/>
+                    <xs:element name="checkOutDate" type="xs:date"/>
+                    <xs:element name="roomType" type="xs:string"/>
+                </xs:sequence>
+            </xs:complexType>
+            <xs:element name="checkAvailabilityResponse" type="xs:double"/>
+            <xs:element name="invalidDataError" type="xs:string"/>
+        </xs:schema>
+    </types>
+    <interface name="reservationInterface">
+        <fault name="invalidDataFault"
+               element="ghns:invalidDataError"/>
+        <operation name="opCheckAvailability"
+                   pattern="http://www.w3.org/2005/05/wsdl/in-out"
+                   style="http://www.w3.org/2005/05/wsdl/style/uri"
+                   safe="true">
+            <input messageLabel="In"
+                   element="ghns:checkAvailability"/>
+            <output messageLabel="Out"
+                    element="ghns:checkAvailabilityResponse"/>
+            <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
+        </operation>
+    </interface>
+    <binding name="reservationSOAPBinding"
+             interface="tns:reservationInterface"
+             type="http://www.w3.org/2005/05/wsdl/soap"
+             wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP">
+        <fault ref="tns:invalidDataFault"
+               wsoap:code="soap:Sender"/>
+        <operation ref="tns:opCheckAvailability"
+                   wsoap:mep="http://www.w3.org/2003/05/soap/mep/soap-response"/>
+    </binding>
+    <service name="reservationService"
+             interface="tns:reservationInterface">
+        <endpoint name="reservationEndpoint"
+                  binding="tns:reservationSOAPBinding"
+                  address="http://greath.example.com/2004/reservation"/>
+    </service>
+</description>
+

Added: webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/HotelReservationService.wsdl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/HotelReservationService.wsdl?rev=412753&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/HotelReservationService.wsdl
(added)
+++ webservices/axis2/trunk/java/modules/adb-codegen/test-resources/wsdl20/HotelReservationService.wsdl
Thu Jun  8 06:47:01 2006
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<description
+    xmlns="http://www.w3.org/2006/01/wsdl"
+    targetNamespace= "http://greath.example.com/2004/wsdl/resSvc"
+    xmlns:tns= "http://greath.example.com/2004/wsdl/resSvc"
+    xmlns:ghns = "http://greath.example.com/2004/schemas/resSvc"
+    xmlns:wsoap= "http://www.w3.org/2004/08/wsdl/soap12"
+    xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
+
+  <documentation>
+    This document describes the GreatH Web service.  Additional
+    application-level requirements for use of this service --
+    beyond what WSDL 2.0 is able to describe -- are available
+    at http://greath.example.com/2004/reservation-documentation.html
+  </documentation>
+
+  <types>
+    <xs:schema
+        xmlns:xs="http://www.w3.org/2001/XMLSchema"
+        targetNamespace="http://greath.example.com/2004/schemas/resSvc"
+        xmlns="http://greath.example.com/2004/schemas/resSvc">
+
+      <xs:element name="checkAvailability" type="tCheckAvailability"/>
+      <xs:complexType name="tCheckAvailability">
+        <xs:sequence>
+          <xs:element  name="checkInDate" type="xs:date"/>
+          <xs:element  name="checkOutDate" type="xs:date"/>
+          <xs:element  name="roomType" type="xs:string"/>
+        </xs:sequence>
+      </xs:complexType>
+
+      <xs:element name="checkAvailabilityResponse" type="xs:double"/>
+
+      <xs:element name="invalidDataError" type="xs:string"/>
+
+    </xs:schema>
+  </types>
+
+  <interface  name = "reservationInterface" >
+
+    <fault name = "invalidDataFault"
+            element = "ghns:invalidDataError"/>
+
+    <operation name="opCheckAvailability"
+            pattern="http://www.w3.org/2004/03/wsdl/in-out" >
+        <input messageLabel="In"
+              element="ghns:checkAvailability" />
+        <output messageLabel="Out"
+              element="ghns:checkAvailabilityResponse" />
+        <outfault ref="tns:invalidDataFault" messageLabel="Out"/>
+    </operation>
+
+  </interface>
+
+  <binding name="reservationSOAPBinding"
+	  interface="tns:reservationInterface"
+	  type="http://www.w3.org/2004/08/wsdl/soap12"
+	  wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP">
+
+    <operation ref="tns:opCheckAvailability"
+      wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response"/>
+
+    <fault ref="tns:invalidDataFault"
+      wsoap:code="soap:Sender"/>
+
+  </binding>
+
+  <service name="reservationService"
+       interface="tns:reservationInterface">
+
+     <endpoint name="reservationEndpoint"
+               binding="tns:reservationSOAPBinding"
+               address ="http://greath.example.com/2004/reservation"/>
+
+  </service>
+
+</description>
\ No newline at end of file

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties?rev=412753&r1=412752&r2=412753&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/i18n/resource.properties
Thu Jun  8 06:47:01 2006
@@ -31,6 +31,7 @@
 wsdl2code.arg15=\t  -r <path>                Specify a repository against which code
is generated.
 wsdl2code.arg16=\t  -ns2p ns1=pkg1,ns2=pkg2  Specify a custom package name for each namespace
specified in the wsdl's schema.
 wsdl2code.arg17=\t  -ssi                     Generate an interface for the service implementation
(Default: off).
+wsdl2code.arg18=\t  -wv                      WSDL Version. Valid Options : 2, 2.0, 1.1
 
 ################## prop file loader #################################
 propfileload.frameworkMismatch=Number of frameworks and extension names do not match!

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java?rev=412753&r1=412752&r2=412753&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/description/WSDL20ToAxisServiceBuilder.java
Thu Jun  8 06:47:01 2006
@@ -116,10 +116,10 @@
 
             // Setting wsdl4jdefintion to axisService , so if some one want
             // to play with it he can do that by getting the parameter
-            Parameter wsdldefintionParamter = new Parameter();
-            wsdldefintionParamter.setName(WSDLConstants.WSDL_20_DESCRIPTION);
-            wsdldefintionParamter.setValue(description);
-            axisService.addParameter(wsdldefintionParamter);
+            Parameter wsdlDescriptionParamter = new Parameter();
+            wsdlDescriptionParamter.setName(WSDLConstants.WSDL_20_DESCRIPTION);
+            wsdlDescriptionParamter.setValue(description);
+            axisService.addParameter(wsdlDescriptionParamter);
 
             if (description == null) {
                 return null;



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