You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ews-dev@ws.apache.org by gu...@apache.org on 2005/08/08 14:42:47 UTC

svn commit: r230793 [4/12] - in /webservices/ews/trunk/ws4j2ee: ./ docs/ docs/images/ docs/src/ samples/ samples/clients/ samples/ejb/ samples/ejb/bookquote/ samples/ejb/bookquote/META-INF/ samples/ejb/bookquote/com/ samples/ejb/bookquote/com/jwsbook/ ...

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.wsdl
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.wsdl?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.wsdl (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.wsdl Mon Aug  8 05:40:25 2005
@@ -0,0 +1,198 @@
+<?xml version="1.0"?>
+
+<!-- WSDL description of the Google Web APIs.
+     The Google Web APIs are in beta release. All interfaces are subject to
+     change as we refine and extend our APIs. Please see the terms of use
+     for more information. -->
+
+<!-- Revision 2002-08-16 -->
+
+<definitions name="GoogleSearch"
+             targetNamespace="urn:GoogleSearch"
+             xmlns:typens="urn:GoogleSearch"
+             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+             xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
+             xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+             xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+  <!-- Types for search - result elements, directory categories -->
+
+  <types>
+    <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" 
+                targetNamespace="urn:GoogleSearch">
+            
+      <xsd:complexType name="GoogleSearchResult">
+        <xsd:all>
+          <xsd:element name="documentFiltering"           type="xsd:boolean"/>
+          <xsd:element name="searchComments"              type="xsd:string"/>
+          <xsd:element name="estimatedTotalResultsCount"  type="xsd:int"/>
+          <xsd:element name="estimateIsExact"             type="xsd:boolean"/>
+          <xsd:element name="resultElements"              type="typens:ResultElementArray"/>
+          <xsd:element name="searchQuery"                 type="xsd:string"/>
+          <xsd:element name="startIndex"                  type="xsd:int"/>
+          <xsd:element name="endIndex"                    type="xsd:int"/>
+          <xsd:element name="searchTips"                  type="xsd:string"/>
+          <xsd:element name="directoryCategories"         type="typens:DirectoryCategoryArray"/>
+          <xsd:element name="searchTime"                  type="xsd:double"/>
+        </xsd:all>
+      </xsd:complexType>
+
+      <xsd:complexType name="ResultElement">
+        <xsd:all>
+          <xsd:element name="summary" type="xsd:string"/>
+          <xsd:element name="URL" type="xsd:string"/>
+          <xsd:element name="snippet" type="xsd:string"/>
+          <xsd:element name="title" type="xsd:string"/>
+          <xsd:element name="cachedSize" type="xsd:string"/>
+          <xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
+          <xsd:element name="hostName" type="xsd:string"/>
+          <xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
+          <xsd:element name="directoryTitle" type="xsd:string"/>
+        </xsd:all>
+      </xsd:complexType>
+  
+      <xsd:complexType name="ResultElementArray">
+        <xsd:complexContent>
+          <xsd:restriction base="soapenc:Array">
+             <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
+          </xsd:restriction>
+        </xsd:complexContent>
+      </xsd:complexType>
+
+      <xsd:complexType name="DirectoryCategoryArray">
+        <xsd:complexContent>
+          <xsd:restriction base="soapenc:Array">
+             <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
+          </xsd:restriction>
+        </xsd:complexContent>
+      </xsd:complexType>
+
+      <xsd:complexType name="DirectoryCategory">
+        <xsd:all>
+          <xsd:element name="fullViewableName" type="xsd:string"/>
+          <xsd:element name="specialEncoding" type="xsd:string"/>
+        </xsd:all>
+      </xsd:complexType>
+
+    </xsd:schema>
+  </types> 
+
+  <!-- Messages for Google Web APIs - cached page, search, spelling. -->
+             
+  <message name="doGetCachedPage">
+    <part name="key"            type="xsd:string"/>
+    <part name="url"            type="xsd:string"/>
+  </message>
+
+  <message name="doGetCachedPageResponse">
+    <part name="return"         type="xsd:base64Binary"/>
+  </message>
+
+  <message name="doSpellingSuggestion">
+    <part name="key"            type="xsd:string"/>
+    <part name="phrase"         type="xsd:string"/>
+  </message>
+
+  <message name="doSpellingSuggestionResponse">
+    <part name="return"         type="xsd:string"/>
+  </message>
+
+  <!-- note, ie and oe are ignored by server; all traffic is UTF-8. -->
+
+  <message name="doGoogleSearch">
+    <part name="key"            type="xsd:string"/>
+    <part name="q"              type="xsd:string"/>
+    <part name="start"          type="xsd:int"/>
+    <part name="maxResults"     type="xsd:int"/>
+    <part name="filter"         type="xsd:boolean"/>
+    <part name="restrict"       type="xsd:string"/>
+    <part name="safeSearch"     type="xsd:boolean"/>
+    <part name="lr"             type="xsd:string"/>
+    <part name="ie"             type="xsd:string"/>
+    <part name="oe"             type="xsd:string"/>
+  </message>
+
+  <message name="doGoogleSearchResponse">
+    <part name="return"         type="typens:GoogleSearchResult"/>           
+  </message>
+
+  <!-- Port for Google Web APIs, "GoogleSearch" -->
+
+  <portType name="GoogleSearchPort">
+
+    <operation name="doGetCachedPage">
+      <input message="typens:doGetCachedPage"/>
+      <output message="typens:doGetCachedPageResponse"/>
+    </operation>
+
+    <operation name="doSpellingSuggestion">
+      <input message="typens:doSpellingSuggestion"/>
+      <output message="typens:doSpellingSuggestionResponse"/>
+    </operation>
+
+    <operation name="doGoogleSearch">
+      <input message="typens:doGoogleSearch"/>
+      <output message="typens:doGoogleSearchResponse"/>
+    </operation>
+
+  </portType>
+
+
+  <!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
+
+  <binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
+    <soap:binding style="rpc"
+                  transport="http://schemas.xmlsoap.org/soap/http"/>
+
+    <operation name="doGetCachedPage">
+      <soap:operation soapAction="urn:GoogleSearchAction"/>
+      <input>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </input>
+      <output>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </output>
+    </operation>
+
+    <operation name="doSpellingSuggestion">
+      <soap:operation soapAction="urn:GoogleSearchAction"/>
+      <input>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </input>
+      <output>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </output>
+    </operation>
+
+    <operation name="doGoogleSearch">
+      <soap:operation soapAction="urn:GoogleSearchAction"/>
+      <input>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </input>
+      <output>
+        <soap:body use="encoded"
+                   namespace="urn:GoogleSearch"
+                   encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+      </output>
+    </operation>
+  </binding>
+
+  <!-- Endpoint for Google Web APIs -->
+  <service name="GoogleSearchService">
+    <port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
+      <soap:address location="http://api.google.com/search/beta2"/>
+    </port>
+  </service>
+
+</definitions>

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/google/GoogleSearch.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
+				   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+				   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+				   http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
+                   xmlns:ns="urn:GoogleSearch"
+                   version="1.1">
+    <package-mapping>
+        <package-type>org.objectweb.wssample.gen.google</package-type>
+        <namespaceURI>urn:GoogleSearch</namespaceURI>
+    </package-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.objectweb.wssample.gen.google.MyGoogleSearchResult</java-type>
+        <root-type-qname>ns:GoogleSearchResult</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.objectweb.wssample.gen.google.ResultElement</java-type>
+        <root-type-qname>ns:ResultElement</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.objectweb.wssample.gen.google.ResultElement[]</java-type>
+        <root-type-qname>ns:ResultElementArray</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.objectweb.wssample.gen.google.DirectoryCategory[]</java-type>
+        <root-type-qname>ns:DirectoryCategoryArray</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+    <java-xml-type-mapping>
+        <java-type>org.objectweb.wssample.gen.google.DirectoryCategory</java-type>
+        <root-type-qname>ns:DirectoryCategory</root-type-qname>
+        <qname-scope>complexType</qname-scope>
+    </java-xml-type-mapping>
+
+</java-wsdl-mapping>

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/google/webserviceClient.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/google/webserviceClient.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/google/webserviceClient.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/google/webserviceClient.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<service-ref xmlns="http://java.sun.com/xml/ns/j2ee">
+     <service-ref-name>service/GoogleSearch</service-ref-name>
+     <service-interface>javax.xml.rpc.Service</service-interface>
+     <wsdl-file>GoogleSearch.wsdl</wsdl-file>
+    <jaxrpc-mapping-file>GoogleSearch.xml</jaxrpc-mapping-file>
+</service-ref>
+

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/google/webservices.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/google/webservices.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/google/webservices.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/google/webservices.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+
+<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
+             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+             http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
+             version="1.1">
+  <display-name>Google Serach</display-name>
+  <webservice-description>
+    <webservice-description-name>Google Serach WebService</webservice-description-name>
+    <wsdl-file>GoogleSearch.wsdl</wsdl-file>
+    <jaxrpc-mapping-file>GoogleSearch.xml</jaxrpc-mapping-file>
+    <port-component>
+      <description>port component description</description>
+      <port-component-name>GoogleSearchPort</port-component-name>
+
+      <!-- Should be the right way to use QName with JAXB parsing --> 
+     <wsdl-port xmlns:ns="urn:GoogleSearch">ns:GoogleSearchPort</wsdl-port> 
+
+      <service-endpoint-interface>org.objectweb.wssample.gen.google.GoogleSearchPort</service-endpoint-interface>
+      <service-impl-bean>
+        <ejb-link>GoogleBean</ejb-link>
+      </service-impl-bean>
+    </port-component>
+  </webservice-description>
+</webservices>
\ No newline at end of file

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.wsdl
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.wsdl?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.wsdl (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.wsdl Mon Aug  8 05:40:25 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="BookQuote"
+	targetNamespace="http://www.Monson-Haefel.com/jwsbook/BookQuote"
+	xmlns:mh="http://www.Monson-Haefel.com/jwsbook/BookQuote"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+	
+	<message name="BookQuote_getBookPrice">
+		<part name="isbn" type="xsd:string"/>
+	</message>
+	<message name="BookQuote_getBookPriceResponse">
+		<part name="result" type="xsd:float"/>
+	</message>
+	<message name="InvalidIsbnFault">
+		<part name="message" type="xsd:string"/>
+	</message>
+	<portType name="BookQuote">
+		<operation name="getBookPrice">
+			<input message="mh:BookQuote_getBookPrice"/>
+			<output message="mh:BookQuote_getBookPriceResponse"/>
+			<fault name="InvalidIsbnFault" message="mh:InvalidIsbnFault"/>
+		</operation>
+	</portType>
+	<binding name="BookQuoteBinding" type="mh:BookQuote">
+		<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
+		<operation name="getBookPrice">
+			<soap:operation soapAction=""/>
+			<input>
+				<soap:body use="literal"/>
+			</input>
+			<output>
+				<soap:body use="literal"/>
+			</output>
+			<fault name="InvalidIsbnFault">
+				<soap:fault name="InvalidIsbnFault" use="literal"/>
+			</fault>
+		</operation>
+	</binding>
+	<service name="BookQuoteService">
+		<port name="BookQuotePort" binding="mh:BookQuoteBinding">
+			<soap:address 
+			location="http://www.Monson-Haefel.com/jwsbook/BookQuoteService"/>
+		</port>
+	</service>
+</definitions>
\ No newline at end of file

Added: webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/mapper/heavyweight/BookQuote.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<java-wsdl-mapping
+	xmlns="http://java.sun.com/xml/ns/j2ee"
+	xmlns:mh="http://www.Monson-Haefel.com/jwsbook/BookQuote"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+	http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
+	version="1.1">
+	<package-mapping>
+		<package-type>com.jwsbook.jaxrpc</package-type>
+		<namespaceURI>
+			http://www.Monson-Haefel.com/jwsbook/BookQuote
+		</namespaceURI>
+	</package-mapping>
+	<exception-mapping>
+		<exception-type>com.jwsbook.jaxrpc.InvalidIsbnException</exception-type>
+		<wsdl-message>mh:InvalidIsbnFault</wsdl-message>
+	</exception-mapping>
+	<service-interface-mapping>
+		<service-interface>com.jwsbook.jaxrpc.BookQuoteService</service-interface>
+		<wsdl-service-name>mh:BookQuoteService</wsdl-service-name>
+		<port-mapping>
+			<port-name>mh:BookQuotePort</port-name>
+			<java-port-name>BookQuotePort</java-port-name>
+		</port-mapping>
+	</service-interface-mapping>
+	<service-endpoint-interface-mapping>
+		<service-endpoint-interface>com.jwsbook.jaxrpc.BookQuote
+		</service-endpoint-interface>
+		<wsdl-port-type>mh:BookQuote</wsdl-port-type>
+		<wsdl-binding>mh:BookQuoteBinding</wsdl-binding>
+		<service-endpoint-method-mapping>
+			<java-method-name>getBookPrice</java-method-name>
+			<wsdl-operation>getBookPrice</wsdl-operation>
+			<method-param-parts-mapping>
+				<param-position>0</param-position>
+				<param-type>java.lang.String</param-type>
+				<wsdl-message-mapping>
+					<wsdl-message>mh:BookQuote_getBookPriceRequest</wsdl-message>
+					<wsdl-message-part-name>isbn</wsdl-message-part-name>
+					<parameter-mode>IN</parameter-mode>
+				</wsdl-message-mapping>
+			</method-param-parts-mapping>
+			<wsdl-return-value-mapping>
+				<method-return-value>float</method-return-value>
+				<wsdl-message>mh:BookQuote_getBookPriceResponse</wsdl-message>
+				<wsdl-message-part-name>result</wsdl-message-part-name>
+			</wsdl-return-value-mapping>
+		</service-endpoint-method-mapping>
+	</service-endpoint-interface-mapping>
+</java-wsdl-mapping>
\ No newline at end of file

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/geronimo-jetty.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/geronimo-jetty.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/geronimo-jetty.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/geronimo-jetty.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app
+    xmlns="http://geronimo.apache.org/xml/ns/web/jetty"
+    configId="org/apache/geronimo/simple"
+    parentId="org/apache/geronimo/Server">
+    <dependency>
+	    <uri>openejb/jars/openejb-core-2.0-M1.jar</uri>
+	</dependency>
+    <context-root>/a</context-root>
+    <context-priority-classloader>false</context-priority-classloader>
+</web-app>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/web.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/web.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/web.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+  <servlet>
+    <servlet-name>simple</servlet-name>
+    <servlet-class>com.jwsbook.jaxrpc.BookQuoteBean</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>simple</servlet-name>
+    <url-pattern>/simple</url-pattern>
+  </servlet-mapping>
+</web-app>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/webservices.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/webservices.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/webservices.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/WEB-INF/webservices.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<webservices xmlns="http://java.sun.com/xml/ns/j2ee" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xmlns:ns1="http://www.Monson-Haefel.com/jwsbook/BookQuote"
+xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
+<webservice-description>
+	<webservice-description-name>BookQuoteService</webservice-description-name>
+	<wsdl-file>math.wsdl</wsdl-file>
+	<jaxrpc-mapping-file>jaxrpc-mapping.xml</jaxrpc-mapping-file>
+	<port-component>
+		<port-component-name>BookQuotePort</port-component-name>
+		<wsdl-port xmlns:ns1="http://jaxrpc.jwsbook.com">ns1:BookQuoteType</wsdl-port>
+		<service-endpoint-interface>com.jwsbook.jaxrpc.BookQuote</service-endpoint-interface>
+		<service-impl-bean>
+			<servlet-link>simple</servlet-link>
+		</service-impl-bean>
+	</port-component>
+	</webservice-description>
+</webservices>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/build.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/build.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/build.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/build.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,48 @@
+<project name="axis" default="war" basedir=".">
+	<property name="build" value="build"/>
+	<property name="src" value="."/>
+	<property name="jar.dir" location="../../../target/generated/samples/"/>
+	<target name="war" description="Create the web application" 
+		depends="init" unless="jars.uptodate">
+		<mkdir dir="${build}" />
+		<mkdir dir="${build}/WEB-INF/lib"/>
+		<mkdir dir="${build}/WEB-INF/classes"/>
+		<copy todir="${build}" >
+			<fileset dir="${src}">
+			<include name="*.html"/>
+			<include name="**/*.class"/>
+			<include name="**/*.xml"/>
+			<exclude name="build.xml"/>
+			<exclude name="${build}/**"/>
+			</fileset>
+		</copy>
+		<copy todir="${build}" >
+			<fileset dir=".">
+			<include name="*.html"/>
+			<include name="**/*.class"/>
+			<include name="**/*.xml"/>
+			<exclude name="build.xml"/>
+			<exclude name="${build}/**"/>
+			</fileset>
+		</copy>
+		<javac destdir="${build}/WEB-INF/classes" debug="on">
+			<classpath refid="maven.dependency.classpath" />
+			<src path="${src}"/>
+		</javac>
+	    <jar jarfile="${jar.dir}/simple.war" basedir="${build}"/>
+	    <delete dir="${build}"/>
+	</target>
+	
+	<target name="init">
+		<uptodate property="jars.uptodate" targetfile="${jar.dir}/simple.war">
+			<srcfiles dir="${src}">
+				<include name="**/*.java"/>
+				<include name="**/*.xml"/>
+				<include name="**/*.wsdl"/>
+				<exclude name="${build}/**"/>
+			</srcfiles>
+		</uptodate>
+		<echo message="the files are upto date = ${jars.uptodate}"></echo>
+	</target>
+</project> 
+

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuote.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuote.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuote.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuote.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,5 @@
+package com.jwsbook.jaxrpc;
+
+public interface BookQuote extends java.rmi.Remote {
+    public float getBookPrice(java.lang.String isbn) throws java.rmi.RemoteException;
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,6 @@
+package com.jwsbook.jaxrpc;
+public class BookQuoteBean  implements BookQuote{
+	public float getBookPrice(java.lang.String isbn){
+			return 0.234567f;
+	}
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/web.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/web.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/web.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+  <servlet>
+    <servlet-name>echo</servlet-name>
+    <servlet-class>org.apache.ws.echosample.EchoBean</servlet-class>
+    <load-on-startup>1</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>simple</servlet-name>
+    <url-pattern>/simple</url-pattern>
+  </servlet-mapping>
+</web-app>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/webservices.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/webservices.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/webservices.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/WEB-INF/webservices.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<webservices xmlns="http://java.sun.com/xml/ns/j2ee" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xmlns:ns1="http://echosample.ws.apache.org"
+xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
+    <description>echo Service</description>
+	<display-name>echo</display-name>
+	<webservice-description >
+		<description>echo</description>
+		<display-name>echo</display-name>
+		<webservice-description-name >echoService</webservice-description-name>
+		<wsdl-file >echo.wsdl</wsdl-file>
+		<jaxrpc-mapping-file >echomapping.xml</jaxrpc-mapping-file>
+		<port-component >
+			<description >echo</description>
+			<display-name >echo</display-name>
+			
+			<icon xml:lang="en-us" id="ID000298">
+				<small-icon>token</small-icon>
+				<large-icon>token</large-icon>
+			</icon>
+
+			<port-component-name >echo</port-component-name>
+			<wsdl-port id="ID000311">ns1:echoPort</wsdl-port>
+			<service-endpoint-interface >org.apache.ws.echosample.Echo</service-endpoint-interface>
+			<service-impl-bean >
+				<servlet-link>echo</servlet-link>
+			</service-impl-bean>
+		</port-component>
+	</webservice-description>
+</webservices>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/build.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/build.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/build.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/build.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<project basedir="." default="jar">
+	<property name="src" location="."/>
+	<property name="build" location="build"/>
+	<property name="build.classes" location="${build}/WEB-INF/classes"/>
+	<property name="build.lib" location="${build}/lib"/>
+	<property name="lib" location="lib"/>
+	<property name="jar.dir" location="../../../target/generated/samples/"/>
+	
+	<target name="compile" depends="init" unless="jars.uptodate">
+	   <mkdir dir="${build.classes}"/>
+	   <mkdir dir="${build.lib}"/>
+		<javac destdir="${build.classes}" debug="on">
+			<classpath refid="maven.dependency.classpath" />
+			<src path="${src}"/>
+		</javac>
+	</target>
+	
+	<target name="jar" depends="compile" unless="jars.uptodate">
+		<copy file ="${basedir}/WEB-INF/webservices.xml" todir="${build.classes}/.."/>
+		<copy file ="${basedir}/WEB-INF/web.xml" todir="${build.classes}/.."/>
+		<mkdir dir="${jar.dir}"/>
+		
+ 		<jar jarfile="${jar.dir}/echo.war" basedir="${build}" >
+			<include name="**/*.class" />
+			<include name="**/*.xml" />
+		</jar>
+		<delete dir="${build}"/>
+	</target>
+	
+	<target name="init">
+		<uptodate property="jars.uptodate" targetfile="${jar.dir}/echo.war">
+			<srcfiles dir="${src}">
+				<include name="**/*.java"/>
+				<include name="**/*.xml"/>
+				<include name="**/*.wsdl"/>
+				<exclude name="${build}/**"/>
+			</srcfiles>
+		</uptodate>
+		<echo message="the files are up to date = ${jars.uptodate}"></echo>
+	</target>
+	
+</project>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/Echo.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/Echo.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/Echo.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/Echo.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,17 @@
+package org.apache.ws.echosample;
+public interface Echo  extends java.rmi.Remote {
+	public void echoVoid()throws java.rmi.RemoteException;
+	public int echoInt(int in)throws java.rmi.RemoteException;
+	public double echoDouble(double in)throws java.rmi.RemoteException;
+	public float echoFloat(float in)throws java.rmi.RemoteException;
+	public boolean echoBoolean(boolean in)throws java.rmi.RemoteException;
+	public String echoString(String in)throws java.rmi.RemoteException;
+	public short echoShort(short in)throws java.rmi.RemoteException;
+	public long echoLong(long in)throws java.rmi.RemoteException;
+	//public char echoChar(char in);
+	public byte[] echoBytes(byte[] in)throws java.rmi.RemoteException;
+	public void echoEvoid()throws java.rmi.RemoteException;
+	public EchoStruct echoStruct(EchoStruct in)throws java.rmi.RemoteException;
+	//public EchoStruct[] echoAStruct(EchoStruct[] in)throws java.rmi.RemoteException;
+	
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoBean.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoBean.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoBean.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoBean.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,48 @@
+
+package org.apache.ws.echosample;
+public class EchoBean implements Echo{
+	public void ejbCreate() {}
+	
+	public void echoVoid(){}
+	public int echoInt(int in){
+		return in;
+	}
+	public double echoDouble(double in){
+		return in;
+	}
+	public float echoFloat(float in){
+		return in;
+	}
+	public boolean echoBoolean(boolean in){
+		return in;
+	}
+	public String echoString(String in){
+		return in;
+	}
+	public short echoShort(short in){
+		return in;
+	}
+	public long echoLong(long in){
+		return in;
+	}
+	public char echoChar(char in){
+		return in;
+	}
+	public byte[] echoBytes(byte[] in){
+		return in;
+	}
+	public void echoEvoid(){
+		
+	}
+	public EchoStruct echoStruct(EchoStruct in){
+		return in;
+	}
+//	public EchoStruct[] echoAStruct(EchoStruct[] in){
+//		return in;
+//	}
+		
+	public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
+	public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
+	public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
+	public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoStruct.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoStruct.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoStruct.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/EchoStruct.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,285 @@
+package org.apache.ws.echosample;
+
+import java.io.Serializable;
+
+public class EchoStruct implements Serializable{
+	private int intVal;
+	private double doubleVal;
+	private byte[] bytesVal;
+	private float floatVal;
+	private long longVal;
+	private short shortVal;
+	private boolean boolaenVal;
+	
+	private String strVal;
+	
+	private int[] intaVal;
+	private double[] doubleaVal;
+	private byte[][] bytesaVal;
+	private float[] floataVal;
+	private long[] longaVal;
+	private short[] shortaVal;
+	private boolean[] boolaenaVal;
+	
+	private String[] straVal;
+	
+	private SmallEchoStruct sturctVal;
+	private SmallEchoStruct sturctaVal;
+	
+    /**
+     * @return
+     */
+    public boolean[] getBoolaenaVal() {
+        return boolaenaVal;
+    }
+
+    /**
+     * @return
+     */
+    public boolean isBoolaenVal() {
+        return boolaenVal;
+    }
+
+    /**
+     * @return
+     */
+    public byte[][] getBytesaVal() {
+        return bytesaVal;
+    }
+
+    /**
+     * @return
+     */
+    public byte[] getBytesVal() {
+        return bytesVal;
+    }
+
+   
+   
+
+    /**
+     * @return
+     */
+    public double[] getDoubleaVal() {
+        return doubleaVal;
+    }
+
+    /**
+     * @return
+     */
+    public double getDoubleVal() {
+        return doubleVal;
+    }
+
+    /**
+     * @return
+     */
+    public float[] getFloataVal() {
+        return floataVal;
+    }
+
+    /**
+     * @return
+     */
+    public float getFloatVal() {
+        return floatVal;
+    }
+
+    /**
+     * @return
+     */
+    public int[] getIntaVal() {
+        return intaVal;
+    }
+
+    /**
+     * @return
+     */
+    public int getIntVal() {
+        return intVal;
+    }
+
+    /**
+     * @return
+     */
+    public long[] getLongaVal() {
+        return longaVal;
+    }
+
+    /**
+     * @return
+     */
+    public long getLongVal() {
+        return longVal;
+    }
+
+    /**
+     * @return
+     */
+    public short[] getShortaVal() {
+        return shortaVal;
+    }
+
+    /**
+     * @return
+     */
+    public short getShortVal() {
+        return shortVal;
+    }
+
+    /**
+     * @return
+     */
+    public String[] getStraVal() {
+        return straVal;
+    }
+
+    /**
+     * @return
+     */
+    public String getStrVal() {
+        return strVal;
+    }
+
+    /**
+     * @param bs
+     */
+    public void setBoolaenaVal(boolean[] bs) {
+        boolaenaVal = bs;
+    }
+
+    /**
+     * @param b
+     */
+    public void setBoolaenVal(boolean b) {
+        boolaenVal = b;
+    }
+
+    /**
+     * @param bs
+     */
+    public void setBytesaVal(byte[][] bs) {
+        bytesaVal = bs;
+    }
+
+    /**
+     * @param bs
+     */
+    public void setBytesVal(byte[] bs) {
+        bytesVal = bs;
+    }
+
+    
+    /**
+     * @param ds
+     */
+    public void setDoubleaVal(double[] ds) {
+        doubleaVal = ds;
+    }
+
+    /**
+     * @param d
+     */
+    public void setDoubleVal(double d) {
+        doubleVal = d;
+    }
+
+    /**
+     * @param fs
+     */
+    public void setFloataVal(float[] fs) {
+        floataVal = fs;
+    }
+
+    /**
+     * @param f
+     */
+    public void setFloatVal(float f) {
+        floatVal = f;
+    }
+
+    /**
+     * @param is
+     */
+    public void setIntaVal(int[] is) {
+        intaVal = is;
+    }
+
+    /**
+     * @param i
+     */
+    public void setIntVal(int i) {
+        intVal = i;
+    }
+
+    /**
+     * @param ls
+     */
+    public void setLongaVal(long[] ls) {
+        longaVal = ls;
+    }
+
+    /**
+     * @param l
+     */
+    public void setLongVal(long l) {
+        longVal = l;
+    }
+
+    /**
+     * @param ses
+     */
+    public void setShortaVal(short[] ses) {
+        shortaVal = ses;
+    }
+
+    /**
+     * @param s
+     */
+    public void setShortVal(short s) {
+        shortVal = s;
+    }
+
+    /**
+     * @param strings
+     */
+    public void setStraVal(String[] strings) {
+        straVal = strings;
+    }
+
+    /**
+     * @param string
+     */
+    public void setStrVal(String string) {
+        strVal = string;
+    }
+
+    /**
+     * @return
+     */
+    public SmallEchoStruct getSturctaVal() {
+        return sturctaVal;
+    }
+
+    /**
+     * @return
+     */
+    public SmallEchoStruct getSturctVal() {
+        return sturctVal;
+    }
+
+    /**
+     * @param struct
+     */
+    public void setSturctaVal(SmallEchoStruct struct) {
+        sturctaVal = struct;
+    }
+
+    /**
+     * @param struct
+     */
+    public void setSturctVal(SmallEchoStruct struct) {
+        sturctVal = struct;
+    }
+
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/SmallEchoStruct.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/SmallEchoStruct.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/SmallEchoStruct.java (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/echo/org/apache/ws/echosample/SmallEchoStruct.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,37 @@
+
+package org.apache.ws.echosample;
+
+import java.io.Serializable;
+
+public class SmallEchoStruct implements Serializable{
+	private String val1;
+	private String val2;
+    /**
+     * @return
+     */
+    public String getVal1() {
+        return val1;
+    }
+
+    /**
+     * @return
+     */
+    public String getVal2() {
+        return val2;
+    }
+
+    /**
+     * @param string
+     */
+    public void setVal1(String string) {
+        val1 = string;
+    }
+
+    /**
+     * @param string
+     */
+    public void setVal2(String string) {
+        val2 = string;
+    }
+
+}

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/math/jaxrpc-mapping.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/math/jaxrpc-mapping.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/math/jaxrpc-mapping.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/math/jaxrpc-mapping.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<java-wsdl-mapping version="1.0" xmlns="http://java.sun.com/xml/ns/j2ee">
+    <package-mapping>
+        <package-type>testData.math</package-type>
+        <namespaceURI>http://math.testData</namespaceURI>
+    </package-mapping>
+    <service-interface-mapping>
+        <service-interface>testData.math.MathFaceService</service-interface>
+        <ns1:wsdl-service-name xmlns:ns1="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFaceService</ns1:wsdl-service-name>
+        <port-mapping>
+            <port-name>math</port-name>
+            <java-port-name>math</java-port-name>
+        </port-mapping>
+    </service-interface-mapping>
+    <service-endpoint-interface-mapping>
+        <service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
+        <ns2:wsdl-port-type xmlns:ns2="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFace</ns2:wsdl-port-type>
+        <ns3:wsdl-binding xmlns:ns3="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">mathSoapBinding</ns3:wsdl-binding>
+        <service-endpoint-method-mapping>
+            <java-method-name>add</java-method-name>
+            <wsdl-operation>add</wsdl-operation>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>int</param-type>
+                <wsdl-message-mapping>
+                    <ns4:wsdl-message xmlns:ns4="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns4:wsdl-message>
+                    <wsdl-message-part-name>in0</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <method-param-parts-mapping>
+                <param-position>0</param-position>
+                <param-type>int</param-type>
+                <wsdl-message-mapping>
+                    <ns5:wsdl-message xmlns:ns5="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns5:wsdl-message>
+                    <wsdl-message-part-name>in1</wsdl-message-part-name>
+                    <parameter-mode>IN</parameter-mode>
+                </wsdl-message-mapping>
+            </method-param-parts-mapping>
+            <wsdl-return-value-mapping>
+                <method-return-value>int</method-return-value>
+                <ns6:wsdl-message xmlns:ns6="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addResponse</ns6:wsdl-message>
+                <wsdl-message-part-name>addReturn</wsdl-message-part-name>
+            </wsdl-return-value-mapping>
+        </service-endpoint-method-mapping>
+    </service-endpoint-interface-mapping>
+</java-wsdl-mapping>
+

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/math/math.wsdl
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/math/math.wsdl?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/math/math.wsdl (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/math/math.wsdl Mon Aug  8 05:40:25 2005
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://math.testData" xmlns:impl="http://math.testData" xmlns:intf="http://math.testData" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+<!--WSDL created by Apache Axis version: 1.2beta
+Built on Jun 10, 2004 (12:01:10 PDT)-->
+
+   <wsdl:message name="addRequest">
+
+      <wsdl:part name="in0" type="xsd:int"/>
+
+      <wsdl:part name="in1" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:message name="addResponse">
+
+      <wsdl:part name="addReturn" type="xsd:int"/>
+
+   </wsdl:message>
+
+   <wsdl:portType name="MathFace">
+
+      <wsdl:operation name="add" parameterOrder="in0 in1">
+
+         <wsdl:input name="addRequest" message="impl:addRequest"/>
+
+         <wsdl:output name="addResponse" message="impl:addResponse"/>
+
+      </wsdl:operation>
+
+   </wsdl:portType>
+
+   <wsdl:binding name="mathSoapBinding" type="impl:MathFace">
+
+      <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+      <wsdl:operation name="add">
+
+         <wsdlsoap:operation soapAction=""/>
+
+         <wsdl:input name="addRequest">
+
+            <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
+
+         </wsdl:input>
+
+         <wsdl:output name="addResponse">
+
+            <wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
+
+         </wsdl:output>
+
+      </wsdl:operation>
+
+   </wsdl:binding>
+
+   <wsdl:service name="MathFaceService">
+
+      <wsdl:port name="math" binding="impl:mathSoapBinding">
+
+         <wsdlsoap:address location="http://127.0.0.1"/>
+
+      </wsdl:port>
+
+   </wsdl:service>
+
+</wsdl:definitions>

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/math/web.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/math/web.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/math/web.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/math/web.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,8 @@
+  <web-app>
+	  <display-name>Apache-Axis</display-name> 
+	  <servlet>
+		  <servlet-name>AxisServlet</servlet-name> 
+		  <display-name>Apache-Axis Servlet</display-name> 
+		  <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class> 
+	  </servlet>
+  </web-app>
\ No newline at end of file

Added: webservices/ews/trunk/ws4j2ee/samples/servlet/math/webservices.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/samples/servlet/math/webservices.xml?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/samples/servlet/math/webservices.xml (added)
+++ webservices/ews/trunk/ws4j2ee/samples/servlet/math/webservices.xml Mon Aug  8 05:40:25 2005
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<webservices xmlns="http://java.sun.com/xml/ns/j2ee" 
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+xmlns:ns1="http://www.Monson-Haefel.com/jwsbook/BookQuote"
+xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
+<webservice-description>
+	<webservice-description-name>MathFaceService</webservice-description-name>
+	<wsdl-file>math.wsdl</wsdl-file>
+	<jaxrpc-mapping-file>jaxrpc-mapping.xml</jaxrpc-mapping-file>
+	<port-component>
+		<port-component-name>MathFace</port-component-name>
+		<wsdl-port xmlns:ns1="http://math.testData">ns1:math</wsdl-port>
+		<service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
+		<service-impl-bean>
+			<servlet-link>MathFace</servlet-link>
+		</service-impl-bean>
+	</port-component>
+	</webservice-description>
+</webservices>

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextFactory.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextFactory.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextFactory.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextFactory.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import java.util.Map;
+
+import org.apache.ws.ews.mapper.J2eeEmitter;
+import org.apache.ws.ews.mapper.jaxrpc.JaxRpcMapper;
+import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
+
+/**
+ * <p>This class decouple the concreate implementations of the
+ * class from the rest of the code</p>
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public interface ContextFactory {
+
+    public WSDLContext createWSDLContext(Object info);
+
+    public JaxRpcMapperContext createJaxRpcMapperContext(JaxRpcMapper mapper, J2eeEmitter emitter);
+
+//    public WSCFContext createWSCFContext(InputStream in)throws GenerationFault;
+
+    public MiscInfo createMiscInfo(Map map);
+
+    public J2EEWebServiceContext getJ2EEWsContext(boolean hasWSDL);
+
+//    public InputOutputFile getInputFile(
+//        String fileName,
+//        InputStream instream) ;
+//    
+//	public  InputOutputFile getInputFile(
+//		String fileName) throws GenerationFault ;
+//	public  InputOutputFile getInputFile(
+//		InputStream instream);
+}

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/ContextValidator.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,222 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import org.apache.axis.wsdl.fromJava.Emitter;
+import org.apache.axis.wsdl.symbolTable.BindingEntry;
+import org.apache.axis.wsdl.symbolTable.Parameter;
+import org.apache.axis.wsdl.symbolTable.Parameters;
+import org.apache.axis.wsdl.symbolTable.PortEntry;
+import org.apache.axis.wsdl.symbolTable.PortTypeEntry;
+import org.apache.axis.wsdl.symbolTable.ServiceEntry;
+import org.apache.geronimo.ews.ws4j2ee.context.impl.EJBDDContextImpl;
+import org.apache.geronimo.ews.ws4j2ee.context.impl.SEIOperationImpl;
+import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
+import org.apache.ws.ews.context.webservices.server.WSCFPortComponent;
+import org.apache.ws.ews.context.webservices.server.WSCFWebserviceDescription;
+import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
+import org.apache.geronimo.ews.ws4j2ee.toWs.UnrecoverableGenerationFault;
+
+import javax.wsdl.Fault;
+import javax.wsdl.Operation;
+import javax.wsdl.Port;
+import javax.wsdl.Service;
+import javax.xml.namespace.QName;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>Before the code genaration this class is used to analyis the parse inforemation
+ * and make sure that the data populated in the different *Context* are
+ * consistent. This class will populate the most of the infomation in the
+ * MiscInfo.</p>
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public class ContextValidator {
+    private J2EEWebServiceContext context;
+
+    public ContextValidator(J2EEWebServiceContext context) throws GenerationFault {
+        try {
+            this.context = context;
+        } catch (Exception e) {
+            e.printStackTrace();
+            throw GenerationFault.createGenerationFault(e);
+        }
+    }
+
+    /**
+     * <p>Just as in the server side this code find the WSDL Service and WSDLport and
+     * populate them in the MiscInfo</p>
+     *
+     * @param emitter
+     * @throws GenerationFault
+     */
+    public void validateWithOutWSDL(Emitter emitter) throws GenerationFault {
+        try {
+            Collection servicesCollection = context.getWSDLContext().getServices();
+            if (servicesCollection.size() > 1)
+                throw new UnrecoverableGenerationFault("we are supporting one service yet");
+            Iterator services = servicesCollection.iterator();
+            Service service = null;
+            if (services.hasNext()) {
+                service = ((Service) services.next());
+                context.getWSDLContext().settargetService(new ServiceEntry(service));
+            }
+            
+            //get the service ports 
+            Collection portCollecton = service.getPorts().values();
+            //just as before if there are more than one servie just let
+            //it failed
+            if (servicesCollection.size() > 1)
+                throw new UnrecoverableGenerationFault("we are supporting one port yet");
+            Iterator portList = portCollecton.iterator();
+            Port wsdlport = null;
+            while (portList.hasNext()) {
+                wsdlport = (Port) portList.next();
+                context.getWSDLContext().setTargetPort(wsdlport);
+            }
+            if (wsdlport == null)
+                throw new UnrecoverableGenerationFault("no port discription not match with the wsdl file");
+            QName bindingName = wsdlport.getBinding().getQName();
+            BindingEntry wsdlbinding = context.getWSDLContext().getBinding(bindingName);
+            context.getWSDLContext().settargetBinding(wsdlbinding);
+            QName portTypename = wsdlbinding.getBinding().getPortType().getQName();
+            PortTypeEntry port = context.getWSDLContext().getPortType(portTypename);
+            if (port == null)
+                throw new UnrecoverableGenerationFault("port type must exits");
+            context.getWSDLContext().setTargetPortType(port);
+        } catch (Exception e) {
+            e.printStackTrace();
+            throw GenerationFault.createGenerationFault(e);
+        }
+    }
+
+    public void validateWithWSDL() {
+        WSCFWebserviceDescription wscfwsdis = context.getWSCFContext().getWscfdWsDesxription();
+        WSCFPortComponent[] ports = wscfwsdis.getPortComponent();
+        if (ports == null || ports.length == 0)
+            throw new UnrecoverableGenerationFault("no port discription found in the" +
+                    "webservices.xml file");
+        WSCFPortComponent port = ports[0];
+        context.getWSCFContext().setWscfport(port);
+        String ejbLink = port.getServiceImplBean().getEjblink();
+        // context.getMiscInfo().setJaxrpcSEI(port.getServiceEndpointInterface());
+        if (ejbLink != null) {
+            String bean = port.getServiceEndpointInterface() + "Bean";
+            String home = port.getServiceEndpointInterface() + "Home";
+            String remote = port.getServiceEndpointInterface() + "EJB";
+            String local = port.getServiceEndpointInterface() + "LocalEJB";
+            String localHome = port.getServiceEndpointInterface() + "LocalHome";
+            EJBContext ejbcontext = context.getEJBDDContext();
+            if (ejbcontext == null) {
+                ejbcontext = new EJBDDContextImpl(ejbLink, bean, home, remote, localHome, local);
+            }
+//TODO remove this if not needed
+            if (ejbcontext.getImplBean() == null)
+                ejbcontext.setImplBean(bean);
+            if (ejbcontext.getEjbhomeInterface() == null)
+                ejbcontext.setEjbhomeInterface(home);
+            if (ejbcontext.getEjbRemoteInterface() == null)
+                ejbcontext.setEjbRemoteInterface(remote);
+            if (ejbcontext.getEjbLocalHomeInterfce() == null)
+                ejbcontext.setEjbLocalHomeInterfce(localHome);
+            if (ejbcontext.getEjbLocalInterface() == null)
+                ejbcontext.setEjbLocalHomeInterfce(local);
+            context.getMiscInfo().setJ2eeComponetLink(port.getServiceImplBean().getEjblink());
+        } else {
+            context.getMiscInfo().setImplwithEJB(false);
+        }
+        QName portName = new QName(port.getWsdlPort().getNamespaceURI(), port.getWsdlPort().getLocalpart());
+        PortEntry wsdlport = context.getWSDLContext().getPort(portName);
+        if (wsdlport == null)
+            throw new UnrecoverableGenerationFault("wsdl port can not be null, you may have the " +
+                    "wsdlport define wrongly on the webservices.xml");
+        Iterator services = context.getWSDLContext().getServices().iterator();
+        while (services.hasNext()) {
+            ServiceEntry service = (ServiceEntry) services.next();
+            Iterator portList = service.getService().getPorts().values().iterator();
+            while (portList.hasNext()) {
+                if (((Port) portList.next()) == wsdlport.getPort()) {
+                    context.getWSDLContext().settargetService(service);
+                    break;
+                }
+            }
+        }
+        if (wsdlport == null)
+            throw new UnrecoverableGenerationFault("no port discription not match with the wsdl file");
+        QName bindingName = wsdlport.getPort().getBinding().getQName();
+        BindingEntry wsdlbinding = context.getWSDLContext().getBinding(bindingName);
+        context.getWSDLContext().settargetBinding(wsdlbinding);
+        QName portTypename = wsdlbinding.getBinding().getPortType().getQName();
+        context.getWSDLContext().setTargetPortType(context.getWSDLContext().getPortType(portTypename));
+        context.validate();
+			
+        //find and populate the information about the SEI in the 
+        //MiscInfo
+        String seiName = context.getJAXRPCMappingContext()
+                .getServiceEndpointInterfaceName(context.getWSDLContext().getTargetPortType(), context.getWSDLContext().gettargetBinding());
+        context.getMiscInfo().setJaxrpcSEI(seiName);
+        List operations = context.getWSDLContext().getTargetPortType().getPortType().getOperations();
+        for (int i = 0; i < operations.size(); i++) {
+            SEIOperation seiOp = new SEIOperationImpl();
+            Operation op = (Operation) operations.get(i);
+            BindingEntry binding = context.getWSDLContext().gettargetBinding();
+            
+            //got to get the same parameter order as the JAXRPC mapper does
+            //So I am using the same methods. Can somebody find something better?? 
+            Parameters parms = binding.getParameters(op);
+            //set return type	
+            String returnType = context.getJAXRPCMappingContext().getJavaMethodReturnType(binding, op);
+            seiOp.setReturnType(returnType);
+
+
+            //set method name 
+            String methodName = context.getJAXRPCMappingContext().getJavaMethodName(binding, op);
+            seiOp.setMethodName(methodName);
+
+            //Iterator paramlist = parms.list.iterator();
+            String parameterName = null;
+            String parameterType = null;	  
+			
+            //find the parameters and add each parameter to parameter list 
+            for (int paramCount = 0; paramCount < parms.list.size(); paramCount++) {
+                Parameter p = (Parameter) parms.list.get(paramCount);
+                parameterName = p.getName();
+                parameterType = context.getJAXRPCMappingContext().getJavaMethodParamType(binding, op, paramCount, p.getType().getQName());
+                seiOp.addParameter(parameterType, parameterName);
+            }
+            //let us find the faults
+            Map faults = parms.faults;
+            if (faults != null) {
+                Iterator it = faults.values().iterator();
+                while (it.hasNext()) {
+                    Fault fault = (Fault) it.next();
+                    String faulltName = context.getJAXRPCMappingContext()
+                            .getExceptionType(fault.getMessage().getQName());
+                    seiOp.addFault(faulltName);
+                }
+            }
+            context.getMiscInfo().setSEIOperations(seiOp);
+        }
+//        
+//        String serviceName = context.getJAXRPCMappingContext()
+//                .getServiceInterfaceName(context.getMiscInfo().gettargetService());
+    }
+}

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/InputOutputFile.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/InputOutputFile.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/InputOutputFile.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/InputOutputFile.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
+
+import java.io.InputStream;
+import java.io.OutputStream;
+
+/**
+ * <p>Input file can be a file or a input stream this class hide the both behind the
+ * same interface</p>
+ */
+public interface InputOutputFile {
+    public String fileName() throws GenerationFault;
+
+    public InputStream getInputStream() throws GenerationFault;
+
+    public OutputStream getOutStream() throws GenerationFault;
+}

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/J2EEWebServiceContext.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/J2EEWebServiceContext.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/J2EEWebServiceContext.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/J2EEWebServiceContext.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,111 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.EJBContext;
+import org.apache.geronimo.ews.ws4j2ee.context.j2eeDD.WebContext;
+import org.apache.ws.ews.context.webservices.client.ServiceReferenceContext;
+import org.apache.ws.ews.context.webservices.server.WSCFContext;
+import org.apache.geronimo.ews.ws4j2ee.context.wsdl.WSDLContext;
+import org.apache.geronimo.ews.ws4j2ee.toWs.Ws4J2eeFactory;
+import org.apache.ws.ews.mapper.context.JAXRPCMapperContext;
+
+/**
+ * <p>This interface has all the information about the J2EE webservice that is
+ * going to be genarated. from this interface onward all the codes are
+ * ws4j2ee. If we using any class from the geronimo deployment we should
+ * wrap them. This is a Code whith runing once. It is worth keeping the
+ * code independent.<p>
+ * <p>This interface and related interfaces has both getter and setter methods
+ * but who ever implements this interface might not need the both.
+ * e.g. there can be two concreate implementations for this class
+ * for the cases
+ * <ol>
+ * <li>have WSDL</li>
+ * <li>do not have WSDL</li>
+ * </ol>
+ * if some method is not requried please throw java.lang.UnsupportedOperationException</p>
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+
+public interface J2EEWebServiceContext extends JAXRPCMapperContext {
+    /**
+     * Information about the WSDL file
+     *
+     * @return
+     */
+    public WSDLContext getWSDLContext();
+
+    public void setWSDLContext(WSDLContext wsdlcontext);
+
+    /**
+     * Information about the webservices.xml file
+     *
+     * @return
+     */
+    public WSCFContext getWSCFContext();
+
+    public void setWSCFContext(WSCFContext wscfcontext);
+
+    /**
+     * Information about the mapper.xml file
+     *
+     * @return
+     */
+    public JaxRpcMapperContext getJAXRPCMappingContext();
+
+    public void setJAXRPCMappingContext(JaxRpcMapperContext context);
+
+    /**
+     * Have the mislaneous infomation about the web service.
+     *
+     * @return
+     */
+    public MiscInfo getMiscInfo();
+
+    public void setMiscInfo(MiscInfo info);
+
+    /**
+     * validate the context
+     */
+    public void validate();
+
+    /**
+     * Information about which implementation should used for by the tool
+     * Changing this one can change how the tool behave.
+     *
+     * @param factory
+     */
+    public void setFactory(Ws4J2eeFactory factory);
+
+    public Ws4J2eeFactory getFactory();
+
+    public EJBContext getEJBDDContext();
+
+    public void setEJBDDContext(EJBContext context);
+
+    public WebContext getWebDDContext();
+
+    public void setWebDDContext(WebContext context);
+
+    public ServiceReferenceContext getServiceReferenceContext(int index);
+
+    public void addServiceReferenceContext(ServiceReferenceContext context);
+
+    public int getServiceReferenceContextCount();
+}

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/JaxRpcMapperContext.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/JaxRpcMapperContext.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/JaxRpcMapperContext.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/JaxRpcMapperContext.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,127 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import org.apache.axis.wsdl.symbolTable.BindingEntry;
+import org.apache.axis.wsdl.symbolTable.PortTypeEntry;
+import org.apache.axis.wsdl.symbolTable.ServiceEntry;
+import org.apache.geronimo.ews.ws4j2ee.toWs.GenerationFault;
+import org.apache.ws.ews.mapper.MapperFault;
+
+import javax.wsdl.Operation;
+import javax.wsdl.Port;
+import javax.xml.namespace.QName;
+import java.io.InputStream;
+import java.io.Writer;
+
+/**
+ * <p>This is the interface which is shared by the application as the
+ * jaxrpcmapper</p>
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public interface JaxRpcMapperContext {
+    /**
+     * how the excpetion type map to the java class
+     *
+     * @param messageQName
+     * @return
+     */
+    public abstract String getExceptionType(QName messageQName);
+
+    /**
+     * how the wsdl operation name map to the java method name
+     *
+     * @param bEntry
+     * @param operation
+     * @return
+     */
+    public abstract String getJavaMethodName(BindingEntry bEntry,
+                                             Operation operation);
+
+    /**
+     * how the parameters in the wsdl opration map to the java method parameters.
+     *
+     * @param bEntry
+     * @param operation
+     * @param position
+     * @return
+     */
+    public abstract String getJavaMethodParamType(BindingEntry bEntry,
+                                                  Operation operation,
+                                                  int position, QName type);
+
+    /**
+     * how the return type in the wsdl opration map to the java method return type.
+     *
+     * @param bEntry
+     * @param operation
+     * @return
+     */
+    public abstract String getJavaMethodReturnType(BindingEntry bEntry,
+                                                   Operation operation);
+
+    /**
+     * QName to java type mapping
+     *
+     * @param typeQName
+     * @return
+     */
+    public abstract String getJavaType(QName typeQName);
+
+    public int getPackageMappingCount();
+
+    public String getPackageMappingClassName(int index);
+
+    public String getPackageMappingURI(int index);
+
+    /**
+     * get the name of the port used in this webservice
+     *
+     * @param port
+     * @return
+     */
+    public abstract String getPortName(Port port);
+
+    /**
+     * how port type maps to the java class
+     *
+     * @param ptEntry
+     * @param bEntry
+     * @return
+     */
+    public abstract String getServiceEndpointInterfaceName(PortTypeEntry ptEntry,
+                                                           BindingEntry bEntry);
+
+    /**
+     * @param entry
+     * @return
+     */
+    public abstract String getServiceInterfaceName(ServiceEntry entry);
+
+    /**
+     * @param path
+     */
+    public abstract void loadMappingFromDir(String path) throws MapperFault;
+
+    /**
+     * @param is
+     */
+    public abstract void loadMappingFromInputStream(InputStream is) throws MapperFault;
+
+    public void serialize(Writer out) throws GenerationFault;
+}

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/MiscInfo.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/MiscInfo.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/MiscInfo.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/MiscInfo.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,172 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import org.apache.ws.ews.context.webservices.server.WSCFHandler;
+
+import java.util.ArrayList;
+
+/**
+ * <p>This class interface the importent information about the webservice
+ * under consideration. E.g. the webservice DD may have one or more
+ * WebserviceDescriptions, WSDLportType's WSDLBindings ect. This type of object
+ * provide acsess to the instance's under the consideration. It is recomended to
+ * acscess these instances over MiscInfo snd It will make sure everybody is
+ * acsessing same port type ect.
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public interface MiscInfo {
+    /**
+     * the root diretory for the output
+     *
+     * @param outputpath
+     */
+    public void setOutputPath(String outputpath);
+
+    public String getOutPutPath();
+
+    /**
+     * @return ArrayList of SEIOperations
+     */
+    public ArrayList getSEIOperations();
+
+    public void setSEIOperations(SEIOperation operation);
+
+    public void setSEIExists(boolean seiExists);
+
+    public boolean isSEIExists();
+
+    /**
+     * Names of the classes corresponding to SEI, Implementation bean and the
+     * web service and the sessionless EJB.
+     *
+     * @return
+     */
+    public String getJaxrpcSEI();
+
+    public void setJaxrpcSEI(String string);
+
+    public String getJ2eeComponetLink();
+
+    public void setJ2eeComponetLink(String string);
+
+    /**
+     * Validate the Content of the Misc Info
+     */
+    public void validate();
+
+    public boolean isVerbose();
+
+    public void setVerbose(boolean b);
+
+    /**
+     * The jaxrpc-file specifies a location of the WSDL description of
+     * a set of Web services. The location is relative to the root of the module
+     * and must be specified by the developer.
+     */
+    public InputOutputFile getJaxrpcfile();
+
+    public void setJaxrpcfile(InputOutputFile string);
+
+    /**
+     * The wsdl-file specifies a location of the WSDL description of
+     * a set of Web services. The location is relative to the root of the module
+     * and must be specified by the developer.
+     */
+    public InputOutputFile getWsdlFile();
+
+    public void setWsdlFile(InputOutputFile string);
+
+    /**
+     * <p>One of the following values and specify how the ejb based web service
+     * Obtain the referance to the sessionless web service</p>
+     * public static final String USE_REMOTE ="use-remote";
+     * public static final String USE_LOCAL =  "use-local";
+     * public static final String USE_INTERNALS = "use-internals";
+     * public static final String USE_LOCAL_AND_REMOTE = "use-local-remote";
+     */
+    public String getImplStyle();
+
+    public void setImplStyle(String string);
+
+    /**
+     * <p>One of the following values and specify what is the j2ee container the
+     * implementation is based on.</p>
+     * public static final String JBOSS_CONTAINER = "jboss";
+     * public static final String JONAS_CONTAINER = "jonas";
+     * public static final String GERONIMO_CONTAINER = "geronimo";
+     */
+    public String getTargetJ2EEContainer();
+
+    public void setTargetJ2EEContainer(String string);
+
+    /**
+     * Say the implementation of the webservice is based on the sessionless web service
+     * or a java class.
+     *
+     * @return
+     */
+    public boolean isImplwithEJB();
+
+    public void setImplwithEJB(boolean b);
+
+    /**
+     * Say wheather the Implementation bean is avalible when gererating without wsdl.
+     * For other cases it does not make sense.
+     *
+     * @return
+     */
+    public boolean isImplAvalible();
+
+    public void setImplAvalible(boolean b);
+
+    /**
+     * The webservices.xml specifies a location of the WSDL description of
+     * a set of Web services. The location is relative to the root of the module
+     * and must be specified by the developer.
+     */
+    public InputOutputFile getWsconffile();
+
+    public void setWsconffile(InputOutputFile string);
+
+    /**
+     * Handlers. A developer may optionally specify handlers associated with the
+     * service-ref using the handler element.
+     */
+    public WSCFHandler[] getHandlers();
+
+    public void setHandlers(WSCFHandler[] handlers);
+
+    /**
+     * the class path elemnts added via jar,war,ear files this is a Vector of
+     * java.io.File
+     */
+    public ArrayList getClasspathElements();
+
+    public void setClassPathElements(ArrayList classpathelements);
+
+    public ClassLoader getClassloader();
+
+    public void setClassloader(ClassLoader loader);
+
+    public boolean isCompile();
+
+    public void setCompile(boolean compile);
+    
+    public Object getProprty(Object key);
+}
\ No newline at end of file

Added: webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.java?rev=230793&view=auto
==============================================================================
--- webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.java (added)
+++ webservices/ews/trunk/ws4j2ee/src/java/org/apache/geronimo/ews/ws4j2ee/context/SEIOperation.java Mon Aug  8 05:40:25 2005
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.geronimo.ews.ws4j2ee.context;
+
+import java.util.ArrayList;
+
+/**
+ * represent a operation in the SEI.
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public interface SEIOperation {
+    public String getMethodName();
+
+    /**
+     * @return a Map in which key is the parameter name and the Type is the value.
+     */
+    public ArrayList getParameterNames();
+
+    public String getParameterType(String name);
+
+    /**
+     * @return ArrayList of Strings
+     */
+    public ArrayList getFaults();
+
+    public void setMethodName(String methodName);
+
+    public void addParameter(String type, String name);
+
+    public void addFault(String name);
+
+    public String getReturnType();
+
+    public void setReturnType(String returnType);
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: ews-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: ews-dev-help@ws.apache.org