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:28:41 UTC

svn commit: r230790 [1/9] - in /webservices/ews/trunk/mapper: ./ src/ src/java/ src/java/org/ src/java/org/apache/ src/java/org/apache/ws/ src/java/org/apache/ws/ews/ src/java/org/apache/ws/ews/context/ src/java/org/apache/ws/ews/context/webservices/ s...

Author: guillaume
Date: Mon Aug  8 05:28:03 2005
New Revision: 230790

URL: http://svn.apache.org/viewcvs?rev=230790&view=rev
Log:
Refactor EWS : 
Split into 2 modules : the mapper (read WSDL + mapping file to generate Axis JSR109 artifacts) and ws4j2ee.
Feature EWS-8 (split into 2 module)
Fix for Bug EWS-2 (inconsistent source packaging), now interfaces are at the root level, implementation are in a sub package names impl

First commit for the mapper subproject


Added:
    webservices/ews/trunk/mapper/
    webservices/ews/trunk/mapper/ews-mapper.iml
    webservices/ews/trunk/mapper/maven.xml
    webservices/ews/trunk/mapper/project.properties
    webservices/ews/trunk/mapper/project.xml
    webservices/ews/trunk/mapper/src/
    webservices/ews/trunk/mapper/src/java/
    webservices/ews/trunk/mapper/src/java/org/
    webservices/ews/trunk/mapper/src/java/org/apache/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/ServiceReferenceContext.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFConstants.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFContext.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFDocument.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFHandler.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFInitParam.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFPortComponent.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFSOAPHeader.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFServiceImplBean.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWSDLPort.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebserviceDescription.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebservices.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFContext.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFHandler.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFInitParam.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFPortComponent.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFSOAPHeader.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFServiceImplBean.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWSDLPort.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWebserviceDescription.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWebservices.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AsbtractWSCFDocument.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/WSCFElement.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/WSCFException.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeBindingWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeClassWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeEmitter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeGeneratorFactory.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeImplWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeInterfaceWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeSkelWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeStubWriter.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/J2eeUtils.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/MapperFault.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/WsdlToJ2ee.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/context/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/context/JAXRPCMapperContext.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/jaxrpc/
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/jaxrpc/JaxRpcMapper.java
    webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/mapper/jaxrpc/XMLBeansJaxRpcMapper.java
    webservices/ews/trunk/mapper/src/schemas/
    webservices/ews/trunk/mapper/src/schemas/XMLSchema.dtd
    webservices/ews/trunk/mapper/src/schemas/datatypes.dtd
    webservices/ews/trunk/mapper/src/schemas/ejb-jar.xsd
    webservices/ews/trunk/mapper/src/schemas/ejb-jar_2_0.dtd
    webservices/ews/trunk/mapper/src/schemas/j2ee_1_4.xsd
    webservices/ews/trunk/mapper/src/schemas/j2ee_jaxrpc_mapping_1_1.xsd
    webservices/ews/trunk/mapper/src/schemas/j2ee_web_services_client_1_1.xsd
    webservices/ews/trunk/mapper/src/schemas/sun-ri.properties
    webservices/ews/trunk/mapper/src/schemas/web-app_2_3.dtd
    webservices/ews/trunk/mapper/src/schemas/webservices.xsd
    webservices/ews/trunk/mapper/src/schemas/xml.xsd
    webservices/ews/trunk/mapper/src/test/
    webservices/ews/trunk/mapper/src/test-resources/
    webservices/ews/trunk/mapper/src/test-resources/anonymous/
    webservices/ews/trunk/mapper/src/test-resources/anonymous/anonymous.wsdl
    webservices/ews/trunk/mapper/src/test-resources/anonymous/mapping.xml
    webservices/ews/trunk/mapper/src/test-resources/frenchzip/
    webservices/ews/trunk/mapper/src/test-resources/frenchzip/FrenchZip.wsdl
    webservices/ews/trunk/mapper/src/test-resources/frenchzip/FrenchZipMapping.xml
    webservices/ews/trunk/mapper/src/test-resources/frenchzip/webserviceClient.xml
    webservices/ews/trunk/mapper/src/test-resources/frenchzip/webservices.xml
    webservices/ews/trunk/mapper/src/test-resources/google/
    webservices/ews/trunk/mapper/src/test-resources/google/GoogleSearch.wsdl
    webservices/ews/trunk/mapper/src/test-resources/google/GoogleSearch.xml
    webservices/ews/trunk/mapper/src/test-resources/google/webserviceClient.xml
    webservices/ews/trunk/mapper/src/test-resources/google/webservices.xml
    webservices/ews/trunk/mapper/src/test-resources/heavyweight/
    webservices/ews/trunk/mapper/src/test-resources/heavyweight/BookQuote.wsdl
    webservices/ews/trunk/mapper/src/test-resources/heavyweight/BookQuote.xml
    webservices/ews/trunk/mapper/src/test/org/
    webservices/ews/trunk/mapper/src/test/org/apache/
    webservices/ews/trunk/mapper/src/test/org/apache/ws/
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/AbstractTestCase.java
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/AnonymousTypesTest.java
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/FrenchZipTest.java
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/JAXRPCMapperTestCase.java
    webservices/ews/trunk/mapper/src/test/org/apache/ws/ews/mapper/MapperTest.java

Added: webservices/ews/trunk/mapper/ews-mapper.iml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/ews-mapper.iml?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/ews-mapper.iml (added)
+++ webservices/ews/trunk/mapper/ews-mapper.iml Mon Aug  8 05:28:03 2005
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module version="4" relativePaths="true" type="JAVA_MODULE">
+  <component name="ModuleRootManager" />
+  <component name="NewModuleRootManager">
+    <output url="file://$MODULE_DIR$/classes" />
+    <exclude-output />
+    <content url="file://$MODULE_DIR$">
+      <sourceFolder url="file://$MODULE_DIR$/src/java" isTestSource="false" />
+      <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" />
+      <excludeFolder url="file://$MODULE_DIR$/target" />
+    </content>
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/axis/jars/axis-1.2.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/commons-logging/jars/commons-logging-1.0.4.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/axis/jars/axis-jaxrpc-1.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/axis/jars/axis-saaj-1.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/axis/jars/axis-wsdl4j-1.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../.maven/repository/xmlbeans/jars/xbean-1.0.4.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library>
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/target/xmlbeans/lib/ews-xmlbeans-DEV.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="library" name="junit" level="application" />
+    <orderEntryProperties />
+  </component>
+  <component name="org.mevenide.idea.module.ModuleSettings">
+    <favoriteGoals>
+      <list size="0" />
+    </favoriteGoals>
+  </component>
+</module>
+

Added: webservices/ews/trunk/mapper/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/maven.xml?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/maven.xml (added)
+++ webservices/ews/trunk/mapper/maven.xml Mon Aug  8 05:28:03 2005
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Revision: 1.21 $ $Date$ -->
+
+<project default="jar"
+    xmlns:j="jelly:core"
+    xmlns:maven="jelly:maven"
+    xmlns:deploy="deploy"
+    xmlns:ant="jelly:ant">
+
+    <goal name="setclasspath">
+        <path id="test.classpath">
+            <path refid="maven.dependency.classpath"/>
+        </path>
+    </goal>
+
+	<goal name="fixcrlf">
+		<chmod dir="${basedir}/src" perm="u+w" includes="**/*.java"/>
+		<fixcrlf srcdir="${basedir}/src" includes="**/*.java"/>
+    </goal>
+    
+    <goal name="generate:xmlbeans"
+        description="Generates the XML beans using XMLBeans">
+
+        <j:jelly xmlns="jelly:ant">
+
+            <j:set var="src.dir" value="${basedir}/src"/>
+            <j:set var="target.dir" value="${basedir}/target"/>
+            <j:set var="schema.dir" value="${basedir}/src/schemas"/>
+            <j:set var="xmlbeans.src.dir" value="${basedir}/target/xmlbeans/src"/>
+            <j:set var="xmlbeans.lib.dir" value="${basedir}/target/xmlbeans/lib"/>
+
+            <taskdef name="xmlbean"
+            	classname="org.apache.xmlbeans.impl.tool.XMLBean"
+	            classpathref="maven.dependency.classpath"/>
+
+            <ant:mkdir dir="${xmlbeans.src.dir}"/>
+            <ant:mkdir dir="${xmlbeans.lib.dir}"/>
+
+            <xmlbean schema="${schema.dir}"
+    	        destfile="${xmlbeans.lib.dir}/ews-xmlbeans-DEV.jar"
+        	    srcgendir="${xmlbeans.src.dir}"
+            	classpathref="maven.dependency.classpath"
+	            debug="on">    
+		            <includes>j2ee_jaxrpc_mapping_1_1.xsd</includes>
+                    <includes>j2ee_web_services_client_1_1.xsd</includes>
+            </xmlbean>
+
+            <ant:path id="ews.xmlbeans.libraries">
+                <ant:pathelement path="${xmlbeans.lib.dir}/ews-xmlbeans-DEV.jar"/>
+            </ant:path>
+            <maven:addPath id="maven.dependency.classpath" refid="ews.xmlbeans.libraries"/>
+
+            <ant:unzip src="${xmlbeans.lib.dir}/ews-xmlbeans-DEV.jar"
+                       dest="${basedir}/target/classes"/>
+
+        </j:jelly>
+    </goal>
+
+    <preGoal name="java:compile">
+        <!-- <attainGoal name="generate:jaxb"/> -->
+        <attainGoal name="generate:xmlbeans"/>
+
+        <path id="ews.beans.compile.src.set"
+              location="${basedir}/target/xmlbeans/src"/>
+
+        <maven:addPath id="maven.compile.src.set"
+                       refid="ews.beans.compile.src.set"/>
+
+    </preGoal>
+    
+    <postGoal name="jar">
+        <ant:mkdir dir="${basedir}/target/lib"/>
+        <deploy:copy-deps todir="${basedir}/target/lib"/>   
+        <ant:mkdir dir="${maven.repo.local}/${pom.groupId}/jars"/>
+		<ant:copy file="${basedir}/target/${pom.artifactId}-${pom.currentVersion}.jar" tofile="${maven.repo.local}/${pom.groupId}/jars/${pom.artifactId}-SNAPSHOT.jar"/>
+    </postGoal>
+    
+    <preGoal name="test:test">
+        <j:jelly xmlns="jelly:ant">
+		<!--
+		<ant:java classname="org.apache.geronimo.ews.ws4j2ee.utils.PropertyStore" fork="no" >
+			   	<ant:arg value="${maven.repo.local}"/>
+	  	     	<ant:classpath>
+			     	<pathelement location="${basedir}/target/classes"/>
+	  	     	</ant:classpath>
+             </ant:java>
+		-->
+                     <!--
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/ejb/bookquote"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/ejb/google"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/ejb/time"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/ejb/zip"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/servlet/bookquote"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/ejb/echo"/>
+			<ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" dir="samples/servlet/echo"/> -->
+        </j:jelly>
+    </preGoal> 
+    
+
+</project>

Added: webservices/ews/trunk/mapper/project.properties
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/project.properties?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/project.properties (added)
+++ webservices/ews/trunk/mapper/project.properties Mon Aug  8 05:28:03 2005
@@ -0,0 +1,8 @@
+##
+## $Revision: 1.3 $ $Date$
+##
+
+# axis.version 1.2.1
+# xbeans.version 1.0.4
+# ews.version 1.1
+# discovery.version 0.3
\ No newline at end of file

Added: webservices/ews/trunk/mapper/project.xml
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/project.xml?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/project.xml (added)
+++ webservices/ews/trunk/mapper/project.xml Mon Aug  8 05:28:03 2005
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <!-- the version of maven's project object model -->
+  <pomVersion>3</pomVersion>
+  <!-- a unique name for this project -->
+  <artifactId>ews-mapper</artifactId>
+    <groupId>ews</groupId>
+    <currentVersion>${ews.version}</currentVersion>
+
+  <extend>../project.xml</extend>
+  <!-- a short but descriptive name for the project -->
+  <name>EWS : JAX-RPC Mapper</name>
+  <package>org.apache.ws.ews.mapper</package>
+  <logo>http://people.apache.org/~guillaume/ews-logo.jpg</logo>
+    <!-- a short description of what the project does -->
+  <shortDescription>EWS Mapper is used to generate JAXRPC artifacts from WSDL and JAXRPC Mapping file.</shortDescription>
+  <!-- the project home page -->
+  <!-- ================ -->
+  <!--    Repository    -->
+  <!-- ================= -->
+  <repository>
+    <connection>scm:subversion:http://svn.apache.org/repos/asf/webservices/ews/trunk/mapper</connection>
+    <developerConnection>scm:subversion:https://svn.apache.org/repos/asf/webservices/ews/trunk/mapper</developerConnection>
+    <url>http://svn.apache.org/viewcvs.cgi/webservices/ews/trunk/mapper/?root=Apache-SVN</url>
+  </repository>
+  <!-- build information for the project -->
+  <build>
+    <nagEmailAddress>dev@geronimo.apache.org</nagEmailAddress>
+    <sourceDirectory>src/java</sourceDirectory>
+    <unitTestSourceDirectory>src/test</unitTestSourceDirectory>
+    <unitTest>
+      <includes>
+        <include>**/*Test.java</include>
+      </includes>
+    </unitTest>
+    <resources>
+      <resource>
+        <directory>src/resources</directory>
+        <includes>
+          <include>**/*Provider</include>
+          <include>**/*.properties</include>
+        </includes>
+        <filtering>false</filtering>
+      </resource>
+      <resource>
+        <directory>src/schemas</directory>
+        <includes>
+          <include>*.dtd</include>
+          <include>*.xsd</include>
+        </includes>
+        <filtering>false</filtering>
+      </resource>
+    </resources>
+  </build>
+    <description><![CDATA[The Mapper is an extension of the Axis file generation framework.<br/>
+It is based on the Emitter and GeneratorFactory, it provides a JaxRpcMapper interface
+(implemented with XMLBeans) that is used to read metadata from the JAXRPC Mapping File.<br/>
+The data read from that mapping file will be used to generate adequate Java classes
+(class names, methods names and signature, ...) and correct WSDD.]]></description>
+</project>
\ No newline at end of file

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/ServiceReferenceContext.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/ServiceReferenceContext.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/ServiceReferenceContext.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/client/ServiceReferenceContext.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,89 @@
+/*
+ * 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.ws.ews.context.webservices.client;
+
+import org.apache.ws.ews.context.webservices.server.WSCFHandler;
+
+import javax.xml.namespace.QName;
+
+/**
+ * This class represent the service-ref element as define by the j2ee webserice
+ * client schema. this elemet may in the web.xml or ejb-jar.xml.
+ *
+ * @author Srinath Perera(hemapani@opensource.lk)
+ */
+public interface ServiceReferenceContext {
+    /**
+     * Service type: The service-interface element defines the
+     * fully qualified name of the JAXRPC Service Interface class
+     * returned by the JNDI lookup.
+     */
+    public void setServiceInterface(String string);
+
+    public String getServiceInterface();
+
+    /**
+     * WSDL definition (optional). The wsdl-file element specifies a
+     * location of the WSDL description of the service. The location
+     * is relative to the root of the module. The WSDL description may
+     * be a partial WSDL, but must at least include the portType and
+     * binding elements. The WSDL description provided by the developer
+     * is considered a template that must be preserved by the
+     * assembly/deployment process. In other words, the WSDL description contains
+     * a declaration of the application?s dependency on portTypes, bindings, and QNames.
+     * The WSDL document must be fully specified, including the service and port elements,
+     * if the application is dependent on port QNames
+     * (e.g. uses the Service.getPort(QName,Class) method). The developer must
+     * specify the wsdl-file if any of the Service methods declared
+     * in section 4.2.2.4 or 4.2.2.5 are used
+     */
+    public String getWsdlFile();
+
+    public void setWsdlFile(String string);
+
+    /**
+     * Service Port. If the specified wsdl-file has more than
+     * one service element, the developer must specify the service-qname.
+     */
+    public void setServiceQName(QName name);
+
+    public QName getServiceQName();
+
+    /**
+     * JAX-RPC Mapping. The developer specifies the correlation
+     * of the WSDL definition to the interfaces using the jaxrpc-mapping-file element.
+     * The location is relative to the root of the module. The same mapping file must
+     * be used for all interfaces associated with a wsdl-file. The developer must
+     * specify the jaxrpc-mapping-file if the wsdl-file is specified.
+     */
+    public String getJaxrpcMappingFile();
+
+    public void setJaxrpcMappingFile(String string);
+
+    /**
+     * Service Reference Name. This defines a logical name for the
+     * reference that is used in the client source code. It is recommended,
+     * but not required that the name begin with service/*.
+     */
+    public String getServiceRefName();
+
+    public void setServiceRefName(String string);
+
+    public WSCFHandler[] getHandlers();
+
+    public void addHandler(WSCFHandler handler);
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFConstants.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFConstants.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFConstants.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFConstants.java Mon Aug  8 05:28:03 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.ws.ews.context.webservices.server;
+
+/**
+ * @author Chathura Herath
+ */
+public interface WSCFConstants {
+
+    public static final String URI_WSCF = "http://xml.apache.org/x/wscf/";
+
+    public static final String ELEM_WSCF_WEBSERVICES = "webservices";
+    public static final String ELEM_WSCF_DESCRIPTION = "description";
+    public static final String ELEM_WSCF_DISPLAY_NAME = "display-name";
+    public static final String ELEM_WSCF_SMALL_ICON = "small-icon";
+    public static final String ELEM_WSCF_LARGE_ICON = "large-icon";
+    public static final String ELEM_WSCF_WEBSERVICES_DESCRIPTION = "webservice-description";
+    public static final String ELEM_WSCF_WEBSERVICES_DESCRIPTION_NAME = "webservice-description-name";
+    public static final String ELEM_WSCF_WSDLFILE = "wsdl-file";
+    public static final String ELEM_WSCF_JAXRPC_MAPPING_FILE = "jaxrpc-mapping-file";
+    public static final String ELEM_WSCF_PORT_COMPONENT = "port-component";
+    public static final String ELEM_WSCF_PORT_COMPONENT_NAME = "port-component-name";
+    public static final String ELEM_WSCF_WSDL_PORT = "wsdl-port";
+    public static final String ELEM_WSCF_NAMESPACE_URI = "namespaceURI";
+    public static final String ELEM_WSCF_LOCALPART = "localpart";
+    public static final String ELEM_WSCF_SERVICE_ENDPOINT_INTERFACE = "service-endpoint-interface";
+    public static final String ELEM_WSCF_SERVICE_IMPLEMENTATION_BEAN = "service-impl-bean";
+    public static final String ELEM_WSCF_EJB_LINK = "ejb-link";
+    public static final String ELEM_WSCF_HANDLER = "handler";
+    public static final String ELEM_WSCF_HANDLER_NAME = "handler-name";
+    public static final String ELEM_WSCF_HANDLER_CLASS = "handler-class";
+    public static final String ELEM_WSCF_INIT_PARAM = "init-param";
+    public static final String ELEM_WSCF_PARAM_NAME = "param-name";
+    public static final String ELEM_WSCF_PARAM_VLAUE = "param-value";
+    public static final String ELEM_WSCF_SOAP_HEADER = "soap-header";
+    public static final String ELEM_WSCF_SOAP_ROLE = "soap-role";
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFContext.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFContext.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFContext.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFContext.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,78 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+import org.apache.ws.ews.mapper.MapperFault;
+
+
+/**
+ * This will inteface the wholw webservices.xml file and will give sufficient access to
+ * all the elements and attrebutes either directly or through other interfaces.
+ */
+public interface WSCFContext {
+    /**
+     * Gets the Description element of the webservices.xml
+     *
+     * @return description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the display name element of the webservices.xml
+     *
+     * @return display name
+     */
+    public String getDisplayName();
+
+    /**
+     * Gets the small icon of the webservices,xml
+     *
+     * @return small icon
+     */
+    public String getSmallIcon();
+
+    /**
+     * Gets the large icon of the webservices.xml
+     *
+     * @return large icon
+     */
+    public String getLargeIcon();
+
+    /**
+     * Gets the webservice description elements as an array
+     *
+     * @return web service description(s)
+     */
+    public WSCFWebserviceDescription[] getWebServicesDescription();
+
+    public void serialize(java.io.Writer out) throws MapperFault;
+
+    /**
+     * WSCF artifacts correponds to the current WSCF file.
+     * If one element is in the wsdl theu are used. How to select them
+     * if there is more than one is still to do.
+     *
+     * @return
+     */
+    public WSCFWebserviceDescription getWscfdWsDesxription();
+
+    public void setWscfdWsDescription(WSCFWebserviceDescription description);
+
+    public WSCFPortComponent getWscfport();
+
+    public void setWscfport(WSCFPortComponent component);
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFDocument.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFDocument.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFDocument.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFDocument.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,30 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This will interface the webservices.xml document itself. it represents teh he
+ * webservices.xml document and will give an interface to the document element:the webservices element; where the element tree begins
+ */
+public interface WSCFDocument {
+
+    /**
+     * The is the getter for the document element thus the gateway to all teh elements in the webservices.xml
+     *
+     * @return webservices Element
+     */
+    public WSCFWebservices getWebservices();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFHandler.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFHandler.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFHandler.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFHandler.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,85 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * @author Chathura Herath
+ */
+public interface WSCFHandler {
+
+    /**
+     * Gets the description of the handler element
+     *
+     * @return description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the display name of the handler element
+     *
+     * @return display-name
+     */
+    public String getDisplayName();
+
+    /**
+     * Gets the class of the handler element
+     *
+     * @return handler-class
+     */
+    public String getHandlerClass();
+
+    /**
+     * Gets the name of the handler element
+     *
+     * @return handler-name
+     */
+    public String getHandlerName();
+
+    /**
+     * Gets the large icon of the handler element
+     *
+     * @return large-icon
+     */
+    public String getLargeIcon();
+
+    /**
+     * Gets the small icon of the handler element
+     *
+     * @return small-icon
+     */
+    public String getSmallIcon();
+
+    /**
+     * Gets the soap headers of the handler element
+     *
+     * @return soap-headers
+     */
+    public WSCFSOAPHeader[] getSoapHeader();
+
+    /**
+     * Gets the soap roles of the handler element
+     *
+     * @return soap-roles
+     */
+    public String[] getSoapRole();
+
+    /**
+     * Gets the init paramaeters of the handler element as a array
+     *
+     * @return init-parameters
+     */
+    public WSCFInitParam[] getInitParam();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFInitParam.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFInitParam.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFInitParam.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFInitParam.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,83 @@
+/*
+ * The Apache Software License, Version 1.1
+ *
+ *
+ * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
+ * reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *       "This product includes software developed by the
+ *        Apache Software Foundation (http://www.apache.org/)."
+ *    Alternately, this acknowledgment may appear in the software itself,
+ *    if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The names "Axis" and "Apache Software Foundation" must
+ *    not be used to endorse or promote products derived from this
+ *    software without prior written permission. For written
+ *    permission, please contact apache@apache.org.
+ *
+ * 5. Products derived from this software may not be called "Apache",
+ *    nor may "Apache" appear in their name, without prior written
+ *    permission of the Apache Software Foundation.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ *
+ * This software consists of voluntary contributions made by many
+ * individuals on behalf of the Apache Software Foundation.  For more
+ * information on the Apache Software Foundation, please see
+ * <http://www.apache.org/>.
+ */
+package org.apache.ws.ews.context.webservices.server;
+
+/**
+ * This interface the layer 4 element :init parameter of the webservices.xml. he interface will publish sufficient information about the
+ * element
+ */
+public interface WSCFInitParam {
+
+    /**
+     * Gets the description of the init parameter element
+     *
+     * @return description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the name of the init parameter element
+     *
+     * @return name
+     */
+    public String getParamName();
+
+    /**
+     * Gets the value of the init parameter element
+     *
+     * @return value
+     */
+    public String getParamValue();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFPortComponent.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFPortComponent.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFPortComponent.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFPortComponent.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,86 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This interfaces the port component element of the webservices.xml.
+ */
+public interface WSCFPortComponent {
+
+    /**
+     * Gets the description of the port component Element
+     *
+     * @return description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the display name of the port component Element
+     *
+     * @return display name
+     */
+    public String getDisplayName();
+
+    /**
+     * Gets the large icon of the port component Element
+     *
+     * @return large icon
+     */
+    public String getLargeIcon();
+
+    /**
+     * Gets the port componenet name of the port component Element
+     *
+     * @return name
+     */
+    public String getPortComponentName();
+
+    /**
+     * Gets the SEI of the port component Element
+     *
+     * @return SEI
+     */
+    public String getServiceEndpointInterface();
+
+    /**
+     * Gets the service implimentation bean of the port component Element
+     *
+     * @return service inplinmentation bean
+     */
+    public WSCFServiceImplBean getServiceImplBean();
+
+    /**
+     * Gets the small icon of the port component Element
+     *
+     * @return small icon
+     */
+    public String getSmallIcon();
+
+    /**
+     * Gets the wsdl port of the port component Element
+     *
+     * @return wsd; port
+     */
+    public WSCFWSDLPort getWsdlPort();
+
+    /**
+     * Gets the handlers of the port component Element as an array
+     *
+     * @return handlers
+     */
+    public WSCFHandler[] getHandlers();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFSOAPHeader.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFSOAPHeader.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFSOAPHeader.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFSOAPHeader.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,36 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This interface is published to abstract the SOAP header element in the webservices.xml which is a layer 4 elment.
+ */
+public interface WSCFSOAPHeader {
+
+    /**
+     * gets the local part of the soap header
+     *
+     * @return local part
+     */
+    public String getLocalpart();
+
+    /**
+     * Gets teh namespace of the SOAP header
+     *
+     * @return namespace
+     */
+    public String getNamespaceURI();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFServiceImplBean.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFServiceImplBean.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFServiceImplBean.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFServiceImplBean.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,32 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This will interface the Service implementation bean element which is a layer 3 element in the webservices.xml
+ */
+public interface WSCFServiceImplBean {
+
+    /**
+     * Gets the ejblink elemet of the service implementation bean element
+     *
+     * @return ejb link
+     */
+    public String getEjblink();
+
+    public String getServletlink();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWSDLPort.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWSDLPort.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWSDLPort.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWSDLPort.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,36 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * @author Chathura Herath
+ */
+public interface WSCFWSDLPort {
+
+    /**
+     * Gets the local part of the WSDL port element
+     *
+     * @return local part
+     */
+    public String getLocalpart();
+
+    /**
+     * Gets the namespace URI of the WSDL port element
+     *
+     * @return
+     */
+    public String getNamespaceURI();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebserviceDescription.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebserviceDescription.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebserviceDescription.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebserviceDescription.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,78 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This will interface the webservice-description element which is a level1 element of teh webservices.xml
+ */
+public interface WSCFWebserviceDescription {
+
+    /**
+     * Gets the port compoments of the webservices-description Element as an array
+     *
+     * @return port components
+     */
+    public WSCFPortComponent[] getPortComponent();
+
+    /**
+     * Gets the description of the webservices-description Element
+     *
+     * @return description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the name of the webservices-description Element
+     *
+     * @return webservice-description-name
+     */
+    public String getWebserviceDescriptionName();
+
+    /**
+     * Gets the display name of the webservices-description Element
+     *
+     * @return display-name
+     */
+    public String getDisplayName();
+
+    /**
+     * Gets the JAXRPC mapping file of the webservices-description Element
+     *
+     * @return JAXRPC-mapping-file
+     */
+    public String getJaxrpcMappingFile();
+
+    /**
+     * Gets the large icon of the webservices-description Element
+     *
+     * @return large-icon
+     */
+    public String getLargeIcon();
+
+    /**
+     * Gets the small icon of the webservices-description Element
+     *
+     * @return small-icon
+     */
+    public String getSmallIcon();
+
+    /**
+     * Gets the wsdl file of the webservices-description Element
+     *
+     * @return wsdl-file
+     */
+    public String getWsdlFile();
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebservices.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebservices.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebservices.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/WSCFWebservices.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,66 @@
+/*
+ * 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.ws.ews.context.webservices.server;
+
+/**
+ * This will interface the WebServices element in the webService.xml file
+ */
+public interface WSCFWebservices {
+
+    /**
+     * Gets websevice description Elements from the webservices element as a n array
+     *
+     * @return webservice-descriptions
+     */
+    public WSCFWebserviceDescription[] getWebServiceDescriptions();
+
+    /**
+     * Gets the description element of the webservices Element
+     *
+     * @return Description
+     */
+    public String getDescription();
+
+    /**
+     * Gets the display name element of the webservices Element
+     *
+     * @return display-name
+     */
+    public String getDisplayName();
+
+    /**
+     * Gets the large icon element of the webservices Element
+     *
+     * @return large-icon
+     */
+    public String getLargeIcon();
+
+    /**
+     * Gets the small icon element of the webservices Element
+     *
+     * @return small-icon
+     */
+    public String getSmallIcon();
+
+//	public Webservices getJaxbWebservices(); 
+
+//	public WSCFWebserviceDescription getWSDDService(QName qname);
+//	public void setWebServiceDescriptions(Vector vector) ;
+//	public void setDescription(String description) ;
+//	public void setDisplayName(String displayName) ;
+//	public void setLargeIcon(String largeIcon);
+//	public void setSmallIcon(String smallIcon) ;
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFContext.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFContext.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFContext.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFContext.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,103 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFContext;
+import org.apache.ws.ews.context.webservices.server.WSCFDocument;
+import org.apache.ws.ews.context.webservices.server.WSCFPortComponent;
+import org.apache.ws.ews.context.webservices.server.WSCFWebserviceDescription;
+import org.apache.ws.ews.mapper.MapperFault;
+
+/**
+ * @author hemapani@opensource.lk
+ */
+public abstract class AbstractWSCFContext implements WSCFContext {
+    protected WSCFWebserviceDescription wscfdWsDesxription;
+    protected WSCFPortComponent wscfport;
+    /**
+     * This reference will be the pointer to the element tree.
+     */
+    protected WSCFDocument document;
+
+    /**
+     * @return
+     */
+    public WSCFWebserviceDescription getWscfdWsDesxription() {
+        return wscfdWsDesxription;
+    }
+
+    /**
+     * @return
+     */
+    public WSCFPortComponent getWscfport() {
+        return wscfport;
+    }
+
+    /**
+     * @param description
+     */
+    public void setWscfdWsDescription(WSCFWebserviceDescription description) {
+        wscfdWsDesxription = description;
+    }
+
+    /**
+     * @param component
+     */
+    public void setWscfport(WSCFPortComponent component) {
+        wscfport = component;
+    }
+
+    /**
+     * Interface support method. This will get the description element of the webservices.xml
+     */
+    public String getDescription() {
+        return this.document.getWebservices().getDescription();
+    }
+
+    /**
+     * Interface support method. This will get the display name element of the webservices.xml
+     */
+    public String getDisplayName() {
+        return this.document.getWebservices().getDisplayName();
+    }
+
+    /**
+     * Interface support method. This will get the small icon element of the webservices.xml
+     */
+    public String getSmallIcon() {
+        return this.document.getWebservices().getSmallIcon();
+    }
+
+    /**
+     * Interface support method. This will get the large icon element of the webservices.xml
+     */
+    public String getLargeIcon() {
+        return this.document.getWebservices().getLargeIcon();
+    }
+
+    /**
+     * Interface support method. This will get the webservice description elements of the webservices.xml as an array.
+     */
+    public WSCFWebserviceDescription[] getWebServicesDescription() {
+        return this.document.getWebservices().getWebServiceDescriptions();
+    }
+
+    public void serialize(java.io.Writer out) throws MapperFault {
+        throw new UnsupportedOperationException();
+    }
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFHandler.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFHandler.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFHandler.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFHandler.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,233 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFHandler;
+import org.apache.ws.ews.context.webservices.server.WSCFInitParam;
+import org.apache.ws.ews.context.webservices.server.WSCFSOAPHeader;
+
+import java.util.HashMap;
+import java.util.Vector;
+
+/**
+ * This encapsulates the layer 3 handler element of the webservices.xml. This
+ * is also the concrete implementation of the WSCFHandler.
+ */
+public abstract class AbstractWSCFHandler extends WSCFElement implements WSCFHandler {
+
+    /**
+     * handler derscription
+     */
+    protected String description;
+
+    /**
+     * handler display name
+     */
+    protected String displayName;
+
+    /**
+     * handler small icon
+     */
+    protected String smallIcon;
+
+    /**
+     * handler  large icon
+     */
+    protected String largeIcon;
+
+    /**
+     * handler name
+     */
+    protected String handlerName;
+
+    /**
+     * handler class
+     */
+    protected String handlerClass;
+
+    /**
+     * handler init parameters as a collection
+     */
+    protected HashMap initParam = new HashMap();
+
+    /**
+     * handler soap headers as a collection
+     */
+    protected Vector soapHeader = new Vector();
+
+    /**
+     * handler soap roles as a collection
+     */
+    protected Vector soapRole = new Vector();
+	
+	
+	
+	
+	
+//	/////////////////////////////////////////////////////////////////////////////////////
+//	
+//	/**
+//	 * The constructor. This will parse the chaild elementsin a depth first manner.
+//	 * @param e handler Element
+//	 * @throws WSCFException
+//	 */
+//	public AbstractWSCFHandlerImpl(Element e)throws WSCFException{
+//		super(e);
+//		
+//		//extract description
+//		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_DESCRIPTION);
+//		if(null != element){this.description = element.getChildNodes().item(0).toString();}
+//		
+//		//extracting the display name
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_DISPLAY_NAME);
+//		if(null != element){this.displayName = element.getChildNodes().item(0).toString();}
+//		
+//		//extract small icon
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_SMALL_ICON);
+//		if(null != element){this.smallIcon = element.getChildNodes().item(0).toString();}
+//		
+//		//extract handler name
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_HANDLER_NAME);
+//		if(null != element){this.handlerName = element.getChildNodes().item(0).toString();}
+//		
+//		// extract handler class
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_HANDLER_CLASS);
+//		if(null != element){this.handlerClass = element.getChildNodes().item(0).toString();}
+//		
+//		//extracting the params
+//		Element[] elements = this.getChildElements(e, WSCFConstants.ELEM_WSCF_INIT_PARAM);
+//		for(int i=0; i < elements.length; i++){
+//			WSCFInitParam initparam = new WSCFInitParamImpl(elements[i]);
+//			this.initParam.put(initparam.getParamName(), initparam);
+//		}
+//		
+//		//extracting the soap headers
+//		elements = this.getChildElements(e, WSCFConstants.ELEM_WSCF_SOAP_HEADER);
+//		for(int i=0; i < elements.length; i++){
+//			this.soapHeader.add(new WSCFSOAPHeaderImpl(elements[i]));
+//		}
+//		
+//		//extract the SOAP roles
+//		elements = this.getChildElements(e, WSCFConstants.ELEM_WSCF_SOAP_ROLE);
+//		for(int i=0; i < elements.length; i++){
+//			this.soapRole.add(elements[i].getChildNodes().item(0).toString());			
+//		}
+//		
+//	}
+		
+	
+
+    /**
+     * Gets the description of the handler element
+     *
+     * @return description
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    /**
+     * Gets the display name of the handler element
+     *
+     * @return display-name
+     */
+    public String getDisplayName() {
+        return displayName;
+    }
+
+    /**
+     * Gets the class of the handler element
+     *
+     * @return handler-class
+     */
+    public String getHandlerClass() {
+        return handlerClass;
+    }
+
+    /**
+     * Gets the name of the handler element
+     *
+     * @return handler-name
+     */
+    public String getHandlerName() {
+        return handlerName;
+    }
+
+    /**
+     * Gets the init paramaeters of the handler element as a array
+     *
+     * @return init-parameters
+     */
+    public WSCFInitParam[] getInitParam() {
+        WSCFInitParam[] initparam = new WSCFInitParam[this.initParam.size()];
+        this.initParam.values().toArray(initparam);
+        return initparam;
+    }
+
+    /**
+     * Gets the large icon of the handler element
+     *
+     * @return large-icon
+     */
+    public String getLargeIcon() {
+        return largeIcon;
+    }
+
+    /**
+     * Gets the small icon of the handler element
+     *
+     * @return small-icon
+     */
+    public String getSmallIcon() {
+        return smallIcon;
+    }
+
+    /**
+     * Gets the soap headers of the handler element
+     *
+     * @return soap-headers
+     */
+    public WSCFSOAPHeader[] getSoapHeader() {
+        WSCFSOAPHeader[] soapheader = new WSCFSOAPHeader[this.soapHeader.size()];
+        int size = soapHeader.size();
+        for (int i = 0; i < size; i++) {
+            soapheader[i] = ((WSCFSOAPHeader) soapHeader.get(i));
+        }
+        return soapheader;
+    }
+
+    /**
+     * Gets the soap roles of the handler element
+     *
+     * @return soap-roles
+     */
+    public String[] getSoapRole() {
+        String[] soaprole = new String[this.soapRole.size()];
+        int size = soapRole.size();
+        for (int i = 0; i < size; i++) {
+            soaprole[i] = (String) soapRole.get(i);
+        }
+        return soaprole;
+    }
+
+//	/**
+//	 * @return
+//	 */
+//	public PortComponentHandlerType getJaxbHandler() {
+//		return jaxbHandler;
+//	}
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFInitParam.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFInitParam.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFInitParam.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFInitParam.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,117 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFInitParam;
+
+/**
+ * This will encapsulate the init parameter element and the information will be able access
+ * using the interface published.
+ */
+public abstract class AbstractWSCFInitParam extends WSCFElement implements WSCFInitParam {
+
+    /**
+     * Init parameter name
+     */
+    protected String paramName;
+
+    /**
+     * Init parameter value
+     */
+    protected String paramValue;
+
+    /**
+     * Init parameter description
+     */
+    protected String description;
+
+    public AbstractWSCFInitParam() {
+    }
+
+
+    ////////////////////////////////////////jaxb intefacing block////////////////////////////
+
+//	public WSCFInitParamImpl(ParamValueType jaxbInitParameter){
+//		this.jaxbInitParameter = jaxbInitParameter;
+//		
+//		/////////////////asigning values///////////////////
+//		if(null != jaxbInitParameter.getParamName())
+//			this.paramName = jaxbInitParameter.getParamName().getValue();
+//		
+//		if(null != jaxbInitParameter.getParamValue())	
+//		this.paramValue = jaxbInitParameter.getParamValue().getValue();
+//		
+//		List temp = null;
+//		temp = jaxbInitParameter.getDescription();
+//		if(0 != temp.size())
+//			this.description = ((DescriptionType)temp.get(0)).getValue();
+//	
+//	}
+//	
+//	
+//	/////////////////////////////////////////////////////////////////////////////////////////	
+//	
+//	/**
+//	 * The constructor. this willget the child nodes that provide teh sufficient statistics about the init parameters.
+//	 * @param e init parameter Element
+//	 * @throws WSCFException
+//	 */
+//	public AbstractWSCFInitParamImpl(Element e) throws WSCFException{
+//		super(e);
+//		
+//		//extract param name
+//		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_PARAM_NAME);
+//		if(null != element){this.paramName = element.getChildNodes().item(0).toString();}
+//		
+//		//extract param value
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_PARAM_VLAUE);
+//		if(null != element){this.paramValue = element.getChildNodes().item(0).toString();}
+//		
+//		// extract the description
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_DESCRIPTION);
+//		if(null != element){this.description = element.getChildNodes().item(0).toString();}
+//		
+//	
+//	}
+
+
+    /**
+     * Gets the description of the init parameter element
+     *
+     * @return description
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    /**
+     * Gets the name of the init parameter element
+     *
+     * @return name
+     */
+    public String getParamName() {
+        return paramName;
+    }
+
+    /**
+     * Gets the value of the init parameter element
+     *
+     * @return value
+     */
+    public String getParamValue() {
+        return paramValue;
+    }
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFPortComponent.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFPortComponent.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFPortComponent.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFPortComponent.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,256 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFPortComponent;
+import org.apache.ws.ews.context.webservices.server.WSCFWSDLPort;
+import org.apache.ws.ews.context.webservices.server.WSCFServiceImplBean;
+import org.apache.ws.ews.context.webservices.server.WSCFHandler;
+
+import java.util.HashMap;
+
+/**
+ * This encapsulates the level 2 Elemenr PortComponent which is a child element of the webservice-description element.
+ * It is also the concrete implmentation of the WSCFPortComponent.
+ */
+public abstract class AbstractWSCFPortComponent extends WSCFElement implements WSCFPortComponent {
+
+    /**
+     * port-component description
+     */
+    protected String description;
+
+    /**
+     * port-component display name
+     */
+    protected String displayName;
+
+    /**
+     * port-component small icon
+     */
+    protected String smallIcon;
+
+    /**
+     * port-component large icon
+     */
+    protected String largeIcon;
+
+    /**
+     * port-component name
+     */
+    protected String portComponentName;
+
+    /**
+     * port-component wsdl port
+     */
+    protected WSCFWSDLPort wsdlPort;
+
+    /**
+     * port-component service endpoint interface
+     */
+    protected String serviceEndpointInterface;
+
+    /**
+     * port-component service implementation bean
+     */
+    protected WSCFServiceImplBean serviceImplBean;
+
+    /**
+     * port-component handlers
+     */
+    protected HashMap handlers = new HashMap();
+	
+	
+    //////////////////////////////jaxb interfacing block///////////////////////////////////
+	
+//	public WSCFPortComponentImpl(PortComponentType jaxbPortComponent){
+//		this.jaxbPortComponent = jaxbPortComponent;		
+//		
+////		/////////////assigning the values //////////////
+//		if(null != jaxbPortComponent.getDescription())
+//			this.description =jaxbPortComponent.getDescription().getValue();
+//		
+//		if(null != jaxbPortComponent.getDisplayName())			
+//			this.displayName =jaxbPortComponent.getDisplayName().getValue();
+//		
+//		if(null != jaxbPortComponent.getIcon())	
+//			this.smallIcon =((PathType)(jaxbPortComponent.getIcon()).getSmallIcon()).getValue();
+//		
+//		if(null != jaxbPortComponent.getIcon())
+//			this.largeIcon =((PathType)(jaxbPortComponent.getIcon()).getLargeIcon()).getValue();
+//		
+//		if(null != jaxbPortComponent.getPortComponentName())
+//			this.portComponentName = jaxbPortComponent.getPortComponentName().getValue();
+//		
+//		if(null != jaxbPortComponent.getServiceEndpointInterface())
+//			this.serviceEndpointInterface = (jaxbPortComponent.getServiceEndpointInterface()).getValue();
+//			
+//				
+//		this.wsdlPort = new WSCFWSDLPortImpl(jaxbPortComponent.getWsdlPort());
+//		this.serviceImplBean = new WSCFServiceImplBeanImpl(jaxbPortComponent.getServiceImplBean());
+//		java.util.List list = this.jaxbPortComponent.getHandler();
+//		for(int i=0; i < list.size(); i++){
+//			WSCFHandler handler = new AbstractWSCFHandlerImpl(((PortComponentHandlerType)list.get(i)));
+//			this.handlers.put(handler.getHandlerName(), handler);
+//		}
+//	}
+	
+	
+    ///////////////////////////////////////////////////////////////////////////////////////
+	
+	
+//	/**
+//	 * The constructor. This will recursively parse the child elements in depth first manner.
+//	 * @param e PortComponent Element
+//	 * @throws WSCFException
+//	 */
+//	public WSCFPortComponentImpl(Element e)throws WSCFException{
+//		super(e);
+//		
+//		//extract the description.
+//		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_DESCRIPTION);
+//		if(null != element){this.description = element.getChildNodes().item(0).toString();}
+//		
+//		//extract the display name
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_DISPLAY_NAME);
+//		if(null != element){this.displayName = element.getChildNodes().item(0).toString();}
+//		
+//		//extract the small icon
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_SMALL_ICON);
+//		if(null != element){this.smallIcon = element.getChildNodes().item(0).toString();}
+//		
+//		//extract the large icon
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_LARGE_ICON);
+//		if(null != element){this.largeIcon = element.getChildNodes().item(0).toString();}
+//		
+//		//extract the port component name
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_PORT_COMPONENT_NAME);
+//		if(null != element){this.portComponentName = element.getChildNodes().item(0).toString();}
+//		
+//		//extract the  wsdl port
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_WSDL_PORT);
+//		if(null != element){this.wsdlPort = new WSCFWSDLPortImpl(element);}
+//		
+//		//extracting the SEI
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_SERVICE_ENDPOINT_INTERFACE);
+//		if(null != element){this.serviceEndpointInterface = element.getChildNodes().item(0).toString();}
+//		
+//		//extracting the service implementation bean
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_SERVICE_IMPLEMENTATION_BEAN);
+//		if(null != element){this.serviceImplBean = new WSCFServiceImplBeanImpl(element);}
+//		
+//		Element[] elements = this.getChildElements(e, WSCFConstants.ELEM_WSCF_HANDLER);
+//		for(int i=0; i < elements.length; i++){
+//			WSCFHandler handler = new AbstractWSCFHandlerImpl(elements[i]);
+//			this.handlers.put(handler.getHandlerName(), handler);					
+//		}
+//	
+//	}	
+	
+	
+
+
+    /**
+     * Gets the description of the port component Element
+     *
+     * @return description
+     */
+    public String getDescription() {
+        return description;
+    }
+
+    /**
+     * Gets the display name of the port component Element
+     *
+     * @return display name
+     */
+    public String getDisplayName() {
+        return displayName;
+    }
+
+    /**
+     * Gets the handlers of the port component Element as an array
+     *
+     * @return handlers
+     */
+    public WSCFHandler[] getHandlers() {
+        WSCFHandler[] handler = new WSCFHandler[this.handlers.size()];
+        this.handlers.values().toArray(handler);
+        return handler;
+    }
+
+    /**
+     * Gets the large icon of the port component Element
+     *
+     * @return large icon
+     */
+    public String getLargeIcon() {
+        return largeIcon;
+    }
+
+    /**
+     * Gets the port componenet name of the port component Element
+     *
+     * @return name
+     */
+    public String getPortComponentName() {
+        return portComponentName;
+    }
+
+    /**
+     * Gets the SEI of the port component Element
+     *
+     * @return SEI
+     */
+    public String getServiceEndpointInterface() {
+        return serviceEndpointInterface;
+    }
+
+    /**
+     * Gets the service implimentation bean of the port component Element
+     *
+     * @return service inplinmentation bean
+     */
+    public WSCFServiceImplBean getServiceImplBean() {
+        return serviceImplBean;
+    }
+
+    /**
+     * Gets the small icon of the port component Element
+     *
+     * @return small icon
+     */
+    public String getSmallIcon() {
+        return smallIcon;
+    }
+
+    /**
+     * Gets the wsdl port of the port component Element
+     *
+     * @return wsd; port
+     */
+    public WSCFWSDLPort getWsdlPort() {
+        return wsdlPort;
+    }
+
+//	/**
+//	 * @return
+//	 */
+//	public PortComponentType getJaxbPortComponent() {
+//		return jaxbPortComponent;
+//	}
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFSOAPHeader.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFSOAPHeader.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFSOAPHeader.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFSOAPHeader.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,94 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFSOAPHeader;
+
+/**
+ * This encapsulates the soap header of the handler element. The information about this element can be accessed uaing the interface published.
+ * Basically this is  a Qname
+ */
+public abstract class AbstractWSCFSOAPHeader extends WSCFElement implements WSCFSOAPHeader {
+
+    /**
+     * SOAP header namespace
+     */
+    protected String namespaceURI;
+
+    /**
+     * Soap Header local part
+     */
+    protected String localpart;
+
+    //////////////////////////////////jaxb interfacing block ///////////////////////////////
+//	
+//	protected XsdQNameType jaxbSoapHeader;
+//	
+//	public WSCFSOAPHeaderImpl(XsdQNameType jaxbSoapHeader){
+//		this.jaxbSoapHeader = jaxbSoapHeader;
+//		
+//		if(null != jaxbSoapHeader.getValue()){	
+//			this.localpart = jaxbSoapHeader.getValue().getLocalPart();
+//			this.namespaceURI = jaxbSoapHeader.getValue().getNamespaceURI();
+//		}
+//			
+//	}
+//	
+//	
+//	////////////////////////////////////////////////////////////////////////////////////////
+//	
+//	/**
+//	 * The constructor. This will get the namespace and the localpart of the SOAP header
+//	 * @param e SOAP header element
+//	 * @throws WSCFException
+//	 */
+//	public WSCFSOAPHeaderImpl(Element e)throws WSCFException{
+//		super(e);
+//		//		extract the namespace URI
+//  		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_NAMESPACE_URI);
+//  		if(null != element){this.namespaceURI = element.getChildNodes().item(0).toString();}
+//
+//  		//extract the local part
+//  		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_LOCALPART);
+//  		if(null != element){this.localpart = element.getChildNodes().item(0).toString();}
+//	}
+
+    /**
+     * gets the local part of the soap header
+     *
+     * @return local part
+     */
+    public String getLocalpart() {
+        return localpart;
+    }
+
+    /**
+     * Gets teh namespace of the SOAP header
+     *
+     * @return namespace
+     */
+    public String getNamespaceURI() {
+        return namespaceURI;
+    }
+
+//	/**
+//	 * @return
+//	 */
+//	public XsdQNameType getJaxbSoapHeader() {
+//		return jaxbSoapHeader;
+//	}
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFServiceImplBean.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFServiceImplBean.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFServiceImplBean.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFServiceImplBean.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,95 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFServiceImplBean;
+
+/**
+ * This encapsulates the Service Implementation bean element whih is a level 3 elemet. This is the concrete implementation of teh
+ * WSCFServiceImplBean
+ */
+public abstract class AbstractWSCFServiceImplBean extends WSCFElement implements WSCFServiceImplBean {
+
+    /**
+     * Service Implementation bean ejblink
+     */
+    protected String ejblink;
+
+    protected String servletlink;
+
+
+
+
+    //////////////////////////////jaxb interfacing block////////////////////////////////
+
+//	protected ServiceImplBeanType jaxbServiceImplBean;
+//	
+//	
+//	public WSCFServiceImplBeanImpl(ServiceImplBeanType jaxbServiceImplBean){
+//		if(null == jaxbServiceImplBean){return;}
+//		
+//		this.jaxbServiceImplBean = jaxbServiceImplBean;
+//		
+////		///////////assigning the values //////////////
+//		
+//		if(null != this.jaxbServiceImplBean.getEjbLink())
+//			this.ejblink = jaxbServiceImplBean.getEjbLink().getValue();
+//		
+//		if(null != jaxbServiceImplBean.getServletLink())
+//			this.servletlink = jaxbServiceImplBean.getServletLink().getValue();	
+//		
+//	}
+//	
+//	
+//	/////////////////////////////////////////////////////////////////////////////////////
+//		
+//	/**
+//	 * The constructor. Parse the only child element it has: the ejblink element.
+//	 * @param e Service implimentation bean Element 
+//	 * @throws WSCFException
+//	 */
+//	public WSCFServiceImplBeanImpl(Element e) throws WSCFException{
+//		super(e);
+//		
+//		//extracting the ejb-link
+//		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_EJB_LINK);
+//		if(null != element){this.ejblink = element.getChildNodes().item(0).toString();}
+//	}
+
+    /**
+     * Gets the ejblink elemet of the service implementation bean element
+     *
+     * @return ejb link
+     */
+    public String getEjblink() {
+        return ejblink;
+    }
+
+//	/**
+//	 * @return
+//	 */
+//	public ServiceImplBeanType getJaxbServiceImplBean() {
+//		return jaxbServiceImplBean;
+//	}
+
+    /**
+     * @return
+     */
+    public String getServletlink() {
+        return servletlink;
+    }
+
+}

Added: webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWSDLPort.java
URL: http://svn.apache.org/viewcvs/webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWSDLPort.java?rev=230790&view=auto
==============================================================================
--- webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWSDLPort.java (added)
+++ webservices/ews/trunk/mapper/src/java/org/apache/ws/ews/context/webservices/server/impl/AbstractWSCFWSDLPort.java Mon Aug  8 05:28:03 2005
@@ -0,0 +1,100 @@
+/*
+ * 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.ws.ews.context.webservices.server.impl;
+
+import org.apache.ws.ews.context.webservices.server.WSCFWSDLPort;
+
+/**
+ * This encapsulates the Qname wsdlport name and this is the concrete implementation of the WSCFWSDLPort
+ */
+public abstract class AbstractWSCFWSDLPort extends WSCFElement implements WSCFWSDLPort {
+
+    /**
+     * WSDL Port namespace URI
+     */
+    protected String namespaceURI;
+
+    /**
+     * WSDL port local part
+     */
+    protected String localpart;
+
+
+    ////////////////////////////////jaxb interfacing block/////////////////////////////////////
+//	
+//	protected XsdQNameType jaxbWSDLPort;
+//	
+//	public WSCFWSDLPortImpl(XsdQNameType jaxbWSDLPort){
+//		
+//		if(null == jaxbWSDLPort){return;}
+//		
+//		this.jaxbWSDLPort = jaxbWSDLPort;		
+//
+//		if(null != jaxbWSDLPort.getValue()){
+//			this.localpart = jaxbWSDLPort.getValue().getLocalPart();
+//			this.namespaceURI = jaxbWSDLPort.getValue().getNamespaceURI();
+//		}
+//		
+//		
+//	}
+//	
+//	
+//	///////////////////////////////////////////////////////////////////////////////////////////
+//	
+//	
+//	/**
+//	 * The constructor. this will get the naspace and the lacalpart extracted from the element.
+//	 * @param e
+//	 * @throws WSCFException
+//	 */
+//	public WSCFWSDLPortImpl(Element e) throws WSCFException{
+//		super(e);
+//		//extract the namespace URI
+//		Element element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_NAMESPACE_URI);
+//		if(null != element){this.namespaceURI = element.getNodeValue();}
+//		
+//		//extract the local part
+//		element = this.getChildElement(e, WSCFConstants.ELEM_WSCF_LOCALPART);
+//		if(null != element){this.localpart = element.getNodeValue();}		
+//		
+//	}
+
+    /**
+     * Gets the local part of the WSDL port element
+     *
+     * @return local part
+     */
+    public String getLocalpart() {
+        return localpart;
+    }
+
+    /**
+     * Gets the namespace URI of the WSDL port element
+     *
+     * @return
+     */
+    public String getNamespaceURI() {
+        return namespaceURI;
+    }
+
+    /**
+     * @return
+     */
+//	public XsdQNameType getJaxbWSDLPort() {
+//		return jaxbWSDLPort;
+//	}
+//
+}



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