cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dand...@apache.org
Subject svn commit: r450267 [2/2] - in /incubator/cxf/trunk: ./ api/src/main/java/org/apache/cxf/databinding/ common/common/src/main/java/org/apache/cxf/common/util/ rt/ rt/core/src/main/java/org/apache/cxf/service/ rt/core/src/main/java/org/apache/cxf/service...
Date Wed, 27 Sep 2006 00:31:20 GMT
Added: incubator/cxf/trunk/rt/frontend/simple/.ruleset
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/.ruleset?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/.ruleset (added)
+++ incubator/cxf/trunk/rt/frontend/simple/.ruleset Tue Sep 26 17:31:18 2006
@@ -0,0 +1,172 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ruleset name="pmd-eclipse">
+  <description>PMD Plugin preferences rule set</description>
+  
+  
+  <rule ref="rulesets/basic.xml/BooleanInstantiation"/>
+  <rule ref="rulesets/basic.xml/CollapsibleIfStatements"/>
+  <rule ref="rulesets/basic.xml/DoubleCheckedLocking"/>
+<!--<rule ref="rulesets/basic.xml/EmptyCatchBlock"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptyFinallyBlock"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptyIfStmt"/>-->
+  <rule ref="rulesets/basic.xml/EmptyStatementNotInLoop"/>
+<!--<rule ref="rulesets/basic.xml/EmptyStaticInitializer"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptySwitchStatements"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptySynchronizedBlock"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptyTryBlock"/>-->
+<!--<rule ref="rulesets/basic.xml/EmptyWhileStmt"/>-->
+  <rule ref="rulesets/basic.xml/ForLoopShouldBeWhileLoop"/>
+  <rule ref="rulesets/basic.xml/JumbledIncrementer"/>
+<!--<rule ref="rulesets/basic.xml/OverrideBothEqualsAndHashcode"/>-->
+  <rule ref="rulesets/basic.xml/ReturnFromFinallyBlock"/>
+  <rule ref="rulesets/basic.xml/UnconditionalIfStatement"/>
+  <rule ref="rulesets/basic.xml/UnnecessaryConversionTemporary"/>
+  <rule ref="rulesets/basic.xml/UnnecessaryFinalModifier"/>
+  <rule ref="rulesets/basic.xml/UnnecessaryReturn"/>
+<!--<rule ref="rulesets/basic.xml/UselessOverridingMethod"/>-->
+  
+<!--<rule ref="rulesets/braces.xml/ForLoopsMustUseBraces"/>-->
+<!--<rule ref="rulesets/braces.xml/IfElseStmtsMustUseBraces"/>-->
+<!--<rule ref="rulesets/braces.xml/IfStmtsMustUseBraces"/>-->
+<!--<rule ref="rulesets/braces.xml/WhileLoopsMustUseBraces"/>-->
+
+<!--<rule ref="rulesets/clone.xml/CloneMethodMustImplementCloneable"/>-->
+<!--<rule ref="rulesets/clone.xml/CloneThrowsCloneNotSupportedException"/>-->
+<!--<rule ref="rulesets/clone.xml/ProperCloneImplementation"/>-->
+  
+<!--<rule ref="rulesets/codesize.xml/CyclomaticComplexity"/>-->
+<!--<rule ref="rulesets/codesize.xml/ExcessiveClassLength"/>-->
+<!--<rule ref="rulesets/codesize.xml/ExcessiveMethodLength"/>-->
+<!--<rule ref="rulesets/codesize.xml/ExcessiveParameterList"/>-->
+<!--<rule ref="rulesets/codesize.xml/ExcessivePublicCount"/>-->
+<!--<rule ref="rulesets/codesize.xml/TooManyFields"/>-->
+
+<rule ref="rulesets/controversial.xml/AssignmentInOperand"/>
+<!--<rule ref="rulesets/controversial.xml/AtLeastOneConstructor"/>-->
+<!--<rule ref="rulesets/controversial.xml/CallSuperInConstructor"/>-->
+<!--<rule ref="rulesets/controversial.xml/DontImportSun"/>-->
+<!--<rule ref="rulesets/controversial.xml/NullAssignment"/>-->
+<!--<rule ref="rulesets/controversial.xml/OnlyOneReturn"/>-->
+<!--<rule ref="rulesets/controversial.xml/SingularField"/>-->
+<!--<rule ref="rulesets/controversial.xml/SuspiciousOctalEscape"/>-->
+<!--<rule ref="rulesets/controversial.xml/UnnecessaryConstructor"/>-->
+<rule ref="rulesets/controversial.xml/UnnecessaryParentheses"/>
+<!--<rule ref="rulesets/controversial.xml/UnusedModifier"/>-->
+
+<!--<rule ref="rulesets/coupling.xml/CouplingBetweenObjects"/>-->
+<!--<rule ref="rulesets/coupling.xml/ExcessiveImports"/>-->
+<!--<rule ref="rulesets/coupling.xml/LooseCoupling"/>-->
+
+<!--<rule ref="rulesets/design.xml/AbstractClassWithoutAbstractMethod"/>-->
+<!--<rule ref="rulesets/design.xml/AccessorClassGeneration"/>-->
+<!--<rule ref="rulesets/design.xml/AssignmentToNonFinalStatic"/>-->
+<!--<rule ref="rulesets/design.xml/AvoidDeeplyNestedIfStmts"/>-->
+<!--<rule ref="rulesets/design.xml/AvoidInstanceofChecksInCatchClause"/>-->
+<rule ref="rulesets/design.xml/AvoidProtectedFieldInFinalClass"/>
+<!--<rule ref="rulesets/design.xml/AvoidReassigningParameters"/>-->
+<!--<rule ref="rulesets/design.xml/AvoidSynchronizedAtMethodLevel"/>-->
+<!--<rule ref="rulesets/design.xml/BadComparison"/>-->
+<!--<rule ref="rulesets/design.xml/CloseConnection"/>-->
+<!--<rule ref="rulesets/design.xml/CompareObjectsWithEquals"/>-->
+<!--<rule ref="rulesets/design.xml/ConfusingTernary"/>-->
+<rule ref="rulesets/design.xml/ConstructorCallsOverridableMethod"/>
+<!--<rule ref="rulesets/design.xml/DefaultLabelNotLastInSwitchStmt"/>-->
+<!--<rule ref="rulesets/design.xml/FinalFieldCouldBeStatic"/>-->
+<rule ref="rulesets/design.xml/IdempotentOperations"/>
+<!--<rule ref="rulesets/design.xml/ImmutableField"/>-->
+<!--<rule ref="rulesets/design.xml/InstantiationToGetClass"/>-->
+<!--<rule ref="rulesets/design.xml/MissingBreakInSwitch"/>-->
+<!--<rule ref="rulesets/design.xml/MissingStaticMethodInNonInstantiatableClass"/>-->
+<!--<rule ref="rulesets/design.xml/NonCaseLabelInSwitchStatement"/>-->
+<!--<rule ref="rulesets/design.xml/NonStaticInitializer"/>-->
+<rule ref="rulesets/design.xml/OptimizableToArrayCall"/>
+<rule ref="rulesets/design.xml/PositionLiteralsFirstInComparisons"/>
+<rule ref="rulesets/design.xml/SimplifyBooleanExpressions"/>
+<rule ref="rulesets/design.xml/SimplifyBooleanReturns"/>
+<rule ref="rulesets/design.xml/SimplifyConditional"/>
+<!--<rule ref="rulesets/design.xml/SwitchDensity"/>-->
+<!--<rule ref="rulesets/design.xml/SwitchStmtsShouldHaveDefault"/>-->
+<rule ref="rulesets/design.xml/UnnecessaryLocalBeforeReturn"/>
+<!--<rule ref="rulesets/design.xml/UseLocaleWithCaseConversions"/>-->
+<!--<rule ref="rulesets/design.xml/UseNotifyAllInsteadOfNotify"/>-->
+<!--<rule ref="rulesets/design.xml/UseSingleton"/>-->
+
+<!--<rule ref="rulesets/finalizers.xml/EmptyFinalizer"/>-->
+<!--<rule ref="rulesets/finalizers.xml/FinalizeOnlyCallsSuperFinalize"/>-->
+<!--<rule ref="rulesets/finalizers.xml/FinalizeOverloaded"/>-->
+<!--<rule ref="rulesets/finalizers.xml/FinalizeDoesNotCallSuperFinalize"/>-->
+<!--<rule ref="rulesets/finalizers.xml/FinalizeShouldBeProtected"/>-->
+<!--<rule ref="rulesets/finalizers.xml/AvoidCallingFinalize"/>-->
+
+<!--<rule ref="rulesets/imports.xml/DuplicateImports"/>-->
+<!--<rule ref="rulesets/imports.xml/DontImportJavaLang"/>-->
+<!--<rule ref="rulesets/imports.xml/UnusedImports"/>-->
+<!--<rule ref="rulesets/imports.xml/ImportFromSamePackage"/>-->
+
+<!--<rule ref="rulesets/javabeans.xml/BeanMembersShouldSerialize"/>-->
+<!--<rule ref="rulesets/javabeans.xml/MissingSerialVersionUID"/>-->
+
+<!--<rule ref="rulesets/junit.xml/JUnitStaticSuite"/>-->
+<!--<rule ref="rulesets/junit.xml/JUnitSpelling"/>-->
+<!--<rule ref="rulesets/junit.xml/JUnitAssertionsShouldIncludeMessage"/>-->
+<!--<rule ref="rulesets/junit.xml/JUnitTestsShouldIncludeAssert"/>-->
+<!--<rule ref="rulesets/junit.xml/TestClassWithoutTestCases"/>-->
+<!--<rule ref="rulesets/junit.xml/UnnecessaryBooleanAssertion"/>-->
+<!--<rule ref="rulesets/junit.xml/UseAssertEqualsInsteadOfAssertTrue"/>-->
+<!--<rule ref="rulesets/junit.xml/UseAssertSameInsteadOfAssertTrue"/>-->
+
+  <!--<rule ref="rulesets/logging-java.xml/AvoidPrintStackTrace"/>-->
+  <rule ref="rulesets/logging-java.xml/LoggerIsNotStaticFinal"/>
+  <!--<rule ref="rulesets/logging-java.xml/MoreThanOneLogger"/>-->
+  <!--<rule ref="rulesets/logging-java.xml/LoggerIsNotStaticFinal"/>-->
+  <!--<rule ref="rulesets/logging-java.xml/LogBlockWithoutIf"/>-->
+  <!--<rule ref="rulesets/logging-java.xml/SystemPrintln"/>-->
+  <!--<rule ref="rulesets/logging-jakarta-commons.xml/UseCorrectExceptionLogging"/>-->
+  <!--<rule ref="rulesets/logging-jakarta-commons.xml/ProperLogger"/>-->
+  
+  <!--<rule ref="rulesets/naming.xml/ShortVariable"/>-->
+  <!--<rule ref="rulesets/naming.xml/LongVariable"/>-->
+  <!--<rule ref="rulesets/naming.xml/ShortMethodName"/>-->
+  <!--<rule ref="rulesets/naming.xml/VariableNamingConventions"/>-->
+  <!--<rule ref="rulesets/naming.xml/MethodNamingConventions"/>-->
+  <!--<rule ref="rulesets/naming.xml/ClassNamingConventions"/>-->
+  <!--<rule ref="rulesets/naming.xml/AbstractNaming"/>-->
+  <!--<rule ref="rulesets/naming.xml/AvoidDollarSigns"/>-->
+  <!--<rule ref="rulesets/naming.xml/MethodWithSameNameAsEnclosingClass"/>-->
+  <!--<rule ref="rulesets/naming.xml/SuspiciousHashcodeMethodName"/>-->
+  <!--<rule ref="rulesets/naming.xml/SuspiciousConstantFieldName"/>-->
+  <!--<rule ref="rulesets/naming.xml/AvoidFieldNameMatchingTypeName"/>-->
+  <!--<rule ref="rulesets/naming.xml/AvoidFieldNameMatchingMethodName"/>-->
+  <!--<rule ref="rulesets/naming.xml/AvoidNonConstructorMethodsWithClassName"/>-->
+  <!--<rule ref="rulesets/naming.xml/NoPackage"/>-->
+  <!--<rule ref="rulesets/naming.xml/PackageCase"/>-->
+
+  <!--<rule ref="rulesets/optimizations.xml/LocalVariableCouldBeFinal"/>-->
+  <!--<rule ref="rulesets/optimizations.xml/MethodArgumentCouldBeFinal"/>-->
+  <!--<rule ref="rulesets/optimizations.xml/AvoidInstantiatingObjectsInLoops"/>-->
+  <!--<rule ref="rulesets/optimizations.xml/UseArrayListInsteadOfVector"/>-->
+  <!--<rule ref="rulesets/optimizations.xml/SimplifyStartsWith"/>-->
+  <!--<rule ref="rulesets/optimizations.xml/UseStringBufferForStringAppends"/>-->
+
+  <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingThrowable"/>-->
+  <!--<rule ref="rulesets/strictexception.xml/SignatureDeclareThrowsException"/>-->
+  <!--<rule ref="rulesets/strictexception.xml/ExceptionAsFlowControl"/>-->
+  <!--<rule ref="rulesets/strictexception.xml/AvoidCatchingNPE"/>-->
+  <!--<rule ref="rulesets/strictexception.xml/AvoidThrowingRawExceptionTypes"/>-->
+  <!--<rule ref="rulesets/strictexception.xml/AvoidThrowingNullPointerException"/>-->
+ 
+  <!--<rule ref="rulesets/strings.xml/AvoidDuplicateLiterals"/>-->
+  <!--<rule ref="rulesets/strings.xml/StringInstantiation"/>-->
+  <!--<rule ref="rulesets/strings.xml/StringToString"/>-->
+  <!--<rule ref="rulesets/strings.xml/AvoidConcatenatingNonLiteralsInStringBuffer"/>-->
+  <!--<rule ref="rulesets/strings.xml/UnnecessaryCaseChange"/>-->
+  
+  <!--<rule ref="rulesets/sunsecure.xml/MethodReturnsInternalArray"/>-->
+  <!--<rule ref="rulesets/sunsecure.xml/ArrayIsStoredDirectly"/>-->
+  
+  <rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"/>
+  <rule ref="rulesets/unusedcode.xml/UnusedPrivateField"/>
+  <rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"/>
+  <!--<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"/>-->
+  
+</ruleset>

Added: incubator/cxf/trunk/rt/frontend/simple/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/pom.xml?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/pom.xml (added)
+++ incubator/cxf/trunk/rt/frontend/simple/pom.xml Tue Sep 26 17:31:18 2006
@@ -0,0 +1,99 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you 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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.cxf</groupId>
+    <artifactId>cxf-rt-frontend-simple</artifactId>
+    <packaging>jar</packaging>
+    <version>2.0-incubator-M1-SNAPSHOT</version>
+    <name>CXF Runtime Simple Frontend</name>
+    <url>http://cwiki.apache.org/confluence/display/CXF/CeltiXfire+space</url>
+
+    <parent>
+        <groupId>org.apache.cxf</groupId>
+        <artifactId>cxf-rt</artifactId>
+        <version>2.0-incubator-M1-SNAPSHOT</version>
+    </parent>
+
+    <properties>
+        <topDirectoryLocation>../../..</topDirectoryLocation>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.easymock</groupId>
+            <artifactId>easymockclassextension</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-testutils</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>javax.xml.ws</groupId>
+            <artifactId>jaxws-api</artifactId>
+	    </dependency>  
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-core</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-bindings-soap</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-bindings-xml</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-local</artifactId>
+            <version>${project.version}</version>
+            <optional>true</optional>
+        </dependency>
+        <dependency>
+            <groupId>javax.xml.soap</groupId>
+            <artifactId>saaj-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>javax.xml.soap</groupId>
+            <artifactId>saaj-api</artifactId>
+        </dependency>        
+    </dependencies>
+
+</project>

Propchange: incubator/cxf/trunk/rt/frontend/simple/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/rt/frontend/simple/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,38 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import org.apache.cxf.service.model.BindingInfo;
+
+/**
+ * An AbstractBindingFactory builds a binding for a Service.
+ */
+public abstract class AbstractBindingInfoFactoryBean {
+    private AbstractServiceFactoryBean serviceFactory;
+    
+    public abstract BindingInfo create();
+
+    public void setServiceFactory(AbstractServiceFactoryBean serviceFactory) {
+        this.serviceFactory = serviceFactory;
+    }
+
+    public AbstractServiceFactoryBean getServiceFactory() {
+        return serviceFactory;
+    }
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,133 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import java.lang.reflect.Method;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.service.Service;
+import org.apache.cxf.service.model.InterfaceInfo;
+import org.apache.cxf.service.model.OperationInfo;
+
+public abstract class AbstractServiceConfiguration {
+    private ReflectionServiceFactoryBean serviceFactory;
+    
+    public ReflectionServiceFactoryBean getServiceFactory() {
+        return serviceFactory;
+    }
+
+    public void setServiceFactory(ReflectionServiceFactoryBean serviceFactory) {
+        this.serviceFactory = serviceFactory;
+    }
+
+    public URL getWsdlURL() {
+        return null;
+    }
+    
+    public String getServiceName() {
+        return null;
+    }
+    
+    public String getServiceNamespace() {
+        return null;
+    }
+    
+    public Boolean isOperation(final Method method) {
+        return null;
+    }
+
+    public Boolean isOutParam(Method method, int j) {
+        return null;
+    }
+
+    public Boolean isInParam(Method method, int j) {
+        return null;
+    }
+
+    public QName getInputMessageName(final OperationInfo op) {
+        return null;
+    }
+
+    public QName getOutputMessageName(final OperationInfo op) {
+        return null;
+    }
+
+    public Boolean hasOutMessage(Method m) {
+        return null;
+    }
+
+    public QName getFaultName(Service service, OperationInfo o, Class exClass, Class beanClass) {
+        return null;
+    }
+
+    public String getAction(OperationInfo op) {
+        return null;
+    }
+
+    public Boolean isHeader(Method method, int j) {
+        return null;
+    }
+
+    /**
+     * Creates a name for the operation from the method name. If an operation
+     * with that name already exists, a name is create by appending an integer
+     * to the end. I.e. if there is already two methods named
+     * <code>doSomething</code>, the first one will have an operation name of
+     * "doSomething" and the second "doSomething1".
+     * 
+     * @param service
+     * @param method
+     */
+    public QName getOperationName(InterfaceInfo service, Method method) {
+        return null;
+    }
+
+    public String getMEP(final Method method) {
+        return null;
+    }
+
+    public Boolean isAsync(final Method method) {
+        return null;
+    }
+
+    public QName getInParameterName(final OperationInfo op, final Method method,
+                                    final int paramNumber) {
+        return null;
+    }
+
+    public QName getOutParameterName(final OperationInfo op, final Method method,
+                                     final int paramNumber) {
+        return null;
+    }
+
+    public QName getInterfaceName() {
+        return null;
+    }
+
+    public Class getResponseWrapper(Method selected) {
+        return null;
+    }
+    
+    public Class getRequestWrapper(Method selected) {
+        return null;
+    }
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/AbstractServiceConfiguration.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,158 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import java.lang.reflect.Method;
+import java.lang.reflect.Modifier;
+
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.common.util.ParamReader;
+import org.apache.cxf.helpers.ServiceUtils;
+import org.apache.cxf.service.Service;
+import org.apache.cxf.service.model.InterfaceInfo;
+import org.apache.cxf.service.model.OperationInfo;
+
+public class DefaultServiceConfiguration extends AbstractServiceConfiguration {
+
+    @Override
+    public QName getOperationName(InterfaceInfo service, Method method) {
+        return new QName(service.getName().getNamespaceURI(), method.getName());
+    }
+
+    @Override
+    public String getAction(OperationInfo op) {
+        // TODO Auto-generated method stub
+        return super.getAction(op);
+    }
+
+    @Override
+    public QName getFaultName(Service service, OperationInfo o, Class exClass, Class beanClass) {
+        // TODO Auto-generated method stub
+        return super.getFaultName(service, o, exClass, beanClass);
+    }
+
+    @Override
+    public QName getInParameterName(OperationInfo op, Method method, int paramNumber) {
+        return new QName(op.getName().getNamespaceURI(), createName(method, paramNumber, op.getInput()
+            .getMessageParts().size(), false, "in"));
+    }
+
+    @Override
+    public QName getInputMessageName(OperationInfo op) {
+        return new QName(op.getName().getNamespaceURI(), op.getName() + "Request");
+    }
+
+    @Override
+    public String getMEP(Method method) {
+        // TODO Auto-generated method stub
+        return super.getMEP(method);
+    }
+
+    @Override
+    public QName getOutParameterName(OperationInfo op, Method method, int paramNumber) {
+        return new QName(op.getName().getNamespaceURI(), createName(method, paramNumber, op.getOutput()
+            .getMessageParts().size(), false, "out"));
+    }
+
+    private String createName(final Method method, final int paramNumber, final int currentSize,
+                              boolean addMethodName, final String flow) {
+        String paramName = "";
+
+        if (paramNumber != -1) {
+            String[] names = ParamReader.getParameterNamesFromDebugInfo(method);
+
+            // get the spcific parameter name from the parameter Number
+            if (names != null && names[paramNumber] != null) {
+                paramName = names[paramNumber];
+                addMethodName = false;
+            } else {
+                paramName = flow + currentSize;
+            }
+        } else {
+            paramName = flow;
+        }
+
+        paramName = addMethodName ? method.getName() + paramName : paramName;
+
+        return paramName;
+    }
+
+    @Override
+    public QName getOutputMessageName(OperationInfo op) {
+        return new QName(op.getName().getNamespaceURI(), op.getName() + "R");
+    }
+
+    @Override
+    public QName getInterfaceName() {
+        return new QName(getServiceNamespace(), getServiceName() + "PortType");
+    }
+
+    @Override
+    public String getServiceName() {
+        return getServiceFactory().getServiceClass().getSimpleName();
+    }
+
+    @Override
+    public String getServiceNamespace() {
+        return ServiceUtils.makeNamespaceFromClassName(getServiceFactory().getServiceClass().getName(),
+                                                       "http");
+    }
+
+    @Override
+    public Boolean hasOutMessage(Method m) {
+        return true;
+    }
+
+    @Override
+    public Boolean isAsync(Method method) {
+        return Boolean.FALSE;
+    }
+
+    @Override
+    public Boolean isHeader(Method method, int j) {
+        return Boolean.FALSE;
+    }
+
+    @Override
+    public Boolean isInParam(Method method, int j) {
+        return j >= 0;
+    }
+
+    @Override
+    public Boolean isOperation(Method method) {
+        if (getServiceFactory().getIgnoredClasses().contains(method.getDeclaringClass().getName())) {
+            return Boolean.FALSE;
+        }
+
+        final int modifiers = method.getModifiers();
+
+        if (Modifier.isPublic(modifiers) && !Modifier.isStatic(modifiers)) {
+            return Boolean.TRUE;
+        }
+        return Boolean.FALSE;
+    }
+
+    @Override
+    public Boolean isOutParam(Method method, int j) {
+        return j < 0;
+    }
+
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/DefaultServiceConfiguration.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,621 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import java.lang.reflect.Method;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+import java.util.ResourceBundle;
+import java.util.concurrent.Executor;
+import java.util.logging.Logger;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.handler.MessageContext;
+
+import org.apache.cxf.common.i18n.BundleUtils;
+import org.apache.cxf.common.i18n.Message;
+import org.apache.cxf.helpers.MethodComparator;
+import org.apache.cxf.interceptor.Fault;
+import org.apache.cxf.service.Service;
+import org.apache.cxf.service.ServiceImpl;
+import org.apache.cxf.service.invoker.ApplicationScopePolicy;
+import org.apache.cxf.service.invoker.FactoryInvoker;
+import org.apache.cxf.service.invoker.Invoker;
+import org.apache.cxf.service.invoker.LocalFactory;
+import org.apache.cxf.service.model.FaultInfo;
+import org.apache.cxf.service.model.InterfaceInfo;
+import org.apache.cxf.service.model.MessageInfo;
+import org.apache.cxf.service.model.MessagePartInfo;
+import org.apache.cxf.service.model.OperationInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.wsdl11.WSDLServiceFactory;
+
+/**
+ * Introspects a class and builds a {@link Service} from it. If a WSDL URL is specified, 
+ * a Service model will be directly from the WSDL and then metadata will be filled in 
+ * from the service class. If no WSDL URL is specified, the Service will be constructed
+ * directly from the class structure. 
+ */
+public class ReflectionServiceFactoryBean extends AbstractServiceFactoryBean {
+
+    private static final Logger LOG = Logger.getLogger(ReflectionServiceFactoryBean.class.getName());
+    private static final ResourceBundle BUNDLE = BundleUtils.getBundle(ReflectionServiceFactoryBean.class);
+
+    protected URL wsdlURL;
+
+    protected Class<?> serviceClass;
+    
+    private List<AbstractServiceConfiguration> serviceConfigurations = 
+        new ArrayList<AbstractServiceConfiguration>();
+    private List<AbstractBindingInfoFactoryBean> bindingFactories = 
+        new ArrayList<AbstractBindingInfoFactoryBean>();
+    private QName serviceName;
+    private Invoker invoker;
+    private Executor executor;
+    private List<String> ignoredClasses = new ArrayList<String>();
+    
+    public ReflectionServiceFactoryBean() {
+        getServiceConfigurations().add(0, new DefaultServiceConfiguration());
+        
+        bindingFactories.add(new SoapBindingInfoFactoryBean());
+        
+        ignoredClasses.add("java.lang.Object");
+        ignoredClasses.add("java.lang.Throwable");
+        ignoredClasses.add("org.omg.CORBA_2_3.portable.ObjectImpl");
+        ignoredClasses.add("org.omg.CORBA.portable.ObjectImpl");
+        ignoredClasses.add("javax.ejb.EJBObject");
+        ignoredClasses.add("javax.rmi.CORBA.Stub");
+    }
+
+    @Override
+    public Service create() {
+        initializeServiceConfigurations();
+
+        initializeServiceModel();
+
+        initializeDataBindings();
+        
+        initializeDefaultInterceptors();
+
+        if (invoker != null) {
+            getService().setInvoker(getInvoker());
+        } else {
+            getService().setInvoker(createInvoker());
+        }
+        
+        if (getExecutor() != null) {
+            getService().setExecutor(getExecutor());
+        } else {
+            getService().setExecutor(new Executor() {
+                public void execute(Runnable r) {
+                    r.run();
+                }
+            });
+        }
+
+        return getService();
+    }
+
+    protected void initializeBindings() {
+        for (AbstractBindingInfoFactoryBean b : getBindingFactories()) {
+            b.setServiceFactory(this);
+            getService().getServiceInfo().addBinding(b.create());
+        }
+    }
+
+    protected void initializeServiceConfigurations() {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            c.setServiceFactory(this);
+        }
+    }
+
+    protected void initializeServiceModel() {
+        URL url = getWsdlURL();
+
+        if (url != null) {
+            LOG.info("Creating Service " + getServiceQName() + " from WSDL.");
+            WSDLServiceFactory factory = new WSDLServiceFactory(getBus(), url, getServiceQName());
+
+            setService(factory.create());
+
+            initializeWSDLOperations();
+        } else {
+            LOG.info("Creating Service " + getServiceQName() + " from class " + getServiceClass().getName());
+            // If we can't find the wsdlLocation, then we should build a service model from the class.
+            ServiceInfo serviceInfo = new ServiceInfo();
+            serviceInfo.setName(getServiceQName());
+            
+            createInterface(serviceInfo);
+
+            if (getDataBinding() != null) {
+                getDataBinding().initialize(serviceInfo);
+            }
+            
+            ServiceImpl service = new ServiceImpl(serviceInfo);
+            setService(service);
+
+            initializeBindings();
+        }
+    }
+
+    protected void initializeWSDLOperations() {
+        Method[] methods = serviceClass.getMethods();
+        Arrays.sort(methods, new MethodComparator());
+
+        InterfaceInfo intf = getService().getServiceInfo().getInterface();
+
+        for (OperationInfo o : intf.getOperations()) {
+            Method selected = null;
+            for (Method m : methods) {
+                if (isValidMethod(m)) {
+                    QName opName = getOperationName(intf, m);
+
+                    if (o.getName().getNamespaceURI().equals(opName.getNamespaceURI())
+                        && isMatchOperation(o.getName().getLocalPart(), opName.getLocalPart())) {
+                    //if (o.getName().equals(opName)) {
+                        selected = m;
+                        o.setProperty(Method.class.getName(), m);
+                        break;
+                    }
+                }
+            }
+
+            if (selected == null) {
+                throw new ServiceConstructionException(new Message("NO_METHOD_FOR_OP", BUNDLE, o.getName()));
+            }
+
+            initializeWSDLOperation(intf, o, selected);
+        }
+    }
+
+    protected void initializeWSDLOperation(InterfaceInfo intf, OperationInfo o, Method selected) {
+        // TODO Auto-generated method stub
+
+    }
+
+    protected Invoker createInvoker() {
+        return new FactoryInvoker(new LocalFactory(getServiceClass()), 
+                                  new ApplicationScopePolicy());
+    }
+    
+    protected ServiceInfo createServiceInfo(InterfaceInfo intf) {
+        ServiceInfo svcInfo = new ServiceInfo();
+        svcInfo.setInterface(intf);
+
+        return svcInfo;
+    }
+
+    protected InterfaceInfo createInterface(ServiceInfo serviceInfo) {
+        QName intfName = getInterfaceName();
+        InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName);
+
+        Method[] methods = serviceClass.getMethods();
+
+        // The BP profile states we can't have operations of the same name
+        // so we have to append numbers to the name. Different JVMs sort methods
+        // differently.
+        // We need to keep them ordered so if we have overloaded methods, the
+        // wsdl is generated the same every time across JVMs and across
+        // client/servers.
+        Arrays.sort(methods, new MethodComparator());
+
+        for (Method m : serviceClass.getMethods()) {
+            if (isValidMethod(m)) {
+                createOperation(serviceInfo, intf, m);
+            }
+        }
+        
+        return intf;
+    }
+
+    protected OperationInfo createOperation(ServiceInfo serviceInfo, InterfaceInfo intf, Method m) {
+        OperationInfo info = intf.addOperation(getOperationName(intf, m));
+
+        createMessageParts(intf, info, m);
+
+        return info;
+    }
+
+    protected void createMessageParts(InterfaceInfo intf, OperationInfo op, Method method) {
+        final Class[] paramClasses = method.getParameterTypes();
+
+        // Setup the input message
+        MessageInfo inMsg = op.createMessage(getInputMessageName(op));
+        op.setInput(inMsg.getName().getLocalPart(), inMsg);
+
+        for (int j = 0; j < paramClasses.length; j++) {
+            if (!isHeader(method, j) && isInParam(method, j)) {
+                final QName q = getInParameterName(op, method, j);
+                MessagePartInfo part = inMsg.addMessagePart(q);
+                part.setProperty(Class.class.getName(), paramClasses[j]);
+            }
+        }
+
+        if (hasOutMessage(method)) {
+            // Setup the output message
+            MessageInfo outMsg = op.createMessage(createOutputMessageName(op));
+            op.setOutput(outMsg.getName().getLocalPart(), outMsg);
+
+            final Class<?> returnType = method.getReturnType();
+            if (!returnType.isAssignableFrom(void.class) && !isHeader(method, -1)) {
+                final QName q = getOutParameterName(op, method, -1);
+                MessagePartInfo part = outMsg.addMessagePart(q);
+                part.setProperty(Class.class.getName(), method.getReturnType());
+            }
+
+            for (int j = 0; j < paramClasses.length; j++) {
+                if (!paramClasses[j].equals(MessageContext.class) && !isHeader(method, j)
+                    && isOutParam(method, j)) {
+                    final QName q = getInParameterName(op, method, j);
+                    MessagePartInfo part = outMsg.addMessagePart(q);
+                    part.setProperty(Class.class.getName(), paramClasses[j]);
+                }
+            }
+        }
+
+        initializeFaults(intf, op, method);
+    }
+
+    protected QName getServiceQName() { 
+        if (serviceName == null) {
+            serviceName = new QName(getServiceNamespace(), getServiceName());
+        }
+
+        return serviceName;
+    }
+    
+    protected QName getPortQName() {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            QName name = c.getInterfaceName();
+            if (name != null) {
+                return name;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected String getServiceName() {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            String name = c.getServiceName();
+            if (name != null) {
+                return name;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected String getServiceNamespace() {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            String name = c.getServiceNamespace();
+            if (name != null) {
+                return name;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected QName getInterfaceName() {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            QName name = c.getInterfaceName();
+            if (name != null) {
+                return name;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected boolean isValidMethod(final Method method) {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            Boolean b = c.isOperation(method);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    protected boolean isMatchOperation(String methodNameInClass, String methodNameInWsdl) {
+        // TODO: This seems wrong and not sure who put it here. Will revisit - DBD
+        boolean ret = false;
+        String initOfMethodInClass = methodNameInClass.substring(0, 1);
+        String initOfMethodInWsdl = methodNameInWsdl.substring(0, 1);
+        if (initOfMethodInClass.equalsIgnoreCase(initOfMethodInWsdl)
+            && methodNameInClass.substring(1, methodNameInClass.length()).equals(
+                methodNameInWsdl.substring(1, methodNameInWsdl.length()))) {
+            ret = true;
+        }
+        return ret;
+    }
+    
+    protected boolean isOutParam(Method method, int j) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            Boolean b = c.isOutParam(method, j);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    protected boolean isInParam(Method method, int j) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            Boolean b = c.isInParam(method, j);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    protected QName getInputMessageName(final OperationInfo op) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName q = c.getInputMessageName(op);
+            if (q != null) {
+                return q;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected QName createOutputMessageName(final OperationInfo op) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName q = c.getOutputMessageName(op);
+            if (q != null) {
+                return q;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected boolean hasOutMessage(Method m) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            Boolean b = c.hasOutMessage(m);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    protected void initializeFaults(final InterfaceInfo service, 
+                                    final OperationInfo op, 
+                                    final Method method) {
+        // Set up the fault messages
+        final Class[] exceptionClasses = method.getExceptionTypes();
+        for (int i = 0; i < exceptionClasses.length; i++) {
+            Class exClazz = exceptionClasses[i];
+
+            // Ignore XFireFaults because they don't need to be declared
+            if (exClazz.equals(Exception.class) 
+                || exClazz.equals(Fault.class)
+                || exClazz.equals(RuntimeException.class)
+                || exClazz.equals(Throwable.class)) {
+                continue;
+            }
+
+            addFault(service, op, exClazz);
+        }
+    }
+
+    protected FaultInfo addFault(final InterfaceInfo service, final OperationInfo op, Class exClass) {
+        // TODO
+        return null;
+    }
+
+    protected QName getFaultName(Service service, OperationInfo o, Class exClass, Class beanClass) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName q = c.getFaultName(service, o, exClass, beanClass);
+            if (q != null) {
+                return q;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected String getAction(OperationInfo op) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            String s = c.getAction(op);
+            if (s != null) {
+                return s;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected boolean isHeader(Method method, int j) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            Boolean b = c.isHeader(method, j);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    /**
+     * Creates a name for the operation from the method name. If an operation
+     * with that name already exists, a name is create by appending an integer
+     * to the end. I.e. if there is already two methods named
+     * <code>doSomething</code>, the first one will have an operation name of
+     * "doSomething" and the second "doSomething1".
+     * 
+     * @param service
+     * @param method
+     */
+    protected QName getOperationName(InterfaceInfo service, Method method) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName s = c.getOperationName(service, method);
+            if (s != null) {
+                return s;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected boolean isAsync(final Method method) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            Boolean b = c.isAsync(method);
+            if (b != null) {
+                return b.booleanValue();
+            }
+        }
+        return true;
+    }
+
+    protected QName getInParameterName(final OperationInfo op, 
+                                       final Method method,
+                                       final int paramNumber) {
+        if (paramNumber == -1) {
+            throw new RuntimeException();
+        }
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName q = c.getInParameterName(op, method, paramNumber);
+            if (q != null) {
+                return q;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+    protected QName getOutParameterName(final OperationInfo op, 
+                                        final Method method,
+                                        final int paramNumber) {
+        for (Iterator itr = serviceConfigurations.iterator(); itr.hasNext();) {
+            AbstractServiceConfiguration c = (AbstractServiceConfiguration)itr.next();
+            QName q = c.getOutParameterName(op, method, paramNumber);
+            if (q != null) {
+                return q;
+            }
+        }
+        throw new IllegalStateException("ServiceConfiguration must provide a value!");
+    }
+
+
+    protected Class getResponseWrapper(Method selected) {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            Class cls = c.getResponseWrapper(selected);
+            if (cls != null) {
+                return cls;
+            }
+        }
+        return null;
+    }
+    protected Class getRequestWrapper(Method selected) {
+        for (AbstractServiceConfiguration c : serviceConfigurations) {
+            Class cls = c.getRequestWrapper(selected);
+            if (cls != null) {
+                return cls;
+            }
+        }
+        return null;
+    }
+
+    
+    
+    public List<AbstractServiceConfiguration> getConfigurations() {
+        return serviceConfigurations;
+    }
+
+    public void setConfigurations(List<AbstractServiceConfiguration> configurations) {
+        this.serviceConfigurations = configurations;
+    }
+
+    public Class<?> getServiceClass() {
+        return serviceClass;
+    }
+
+    public void setServiceClass(Class<?> serviceClass) {
+        this.serviceClass = serviceClass;
+    }
+
+    public URL getWsdlURL() {
+        if (wsdlURL == null) {
+            for (AbstractServiceConfiguration c : serviceConfigurations) {
+                wsdlURL = c.getWsdlURL();
+                if (wsdlURL != null) {
+                    break;
+                }
+            }
+        }
+        return wsdlURL;
+    }
+
+    public void setWsdlURL(URL wsdlURL) {
+        this.wsdlURL = wsdlURL;
+    }
+
+    public List<AbstractServiceConfiguration> getServiceConfigurations() {
+        return serviceConfigurations;
+    }
+
+    public void setServiceConfigurations(List<AbstractServiceConfiguration> serviceConfigurations) {
+        this.serviceConfigurations = serviceConfigurations;
+    }
+
+    public void setServiceName(QName serviceName) {
+        this.serviceName = serviceName;
+    }
+
+    public Invoker getInvoker() {
+        return invoker;
+    }
+
+    public void setInvoker(Invoker invoker) {
+        this.invoker = invoker;
+    }
+
+    public Executor getExecutor() {
+        return executor;
+    }
+
+    public void setExecutor(Executor executor) {
+        this.executor = executor;
+    }
+
+    public List<String> getIgnoredClasses() {
+        return ignoredClasses;
+    }
+
+    public void setIgnoredClasses(List<String> ignoredClasses) {
+        this.ignoredClasses = ignoredClasses;
+    }
+
+    public List<AbstractBindingInfoFactoryBean> getBindingFactories() {
+        return bindingFactories;
+    }
+
+    public void setBindingFactories(List<AbstractBindingInfoFactoryBean> bindingFactories) {
+        this.bindingFactories = bindingFactories;
+    }
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,92 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.binding.soap.Soap11;
+import org.apache.cxf.binding.soap.SoapVersion;
+import org.apache.cxf.binding.soap.model.SoapBindingInfo;
+import org.apache.cxf.binding.soap.model.SoapOperationInfo;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.OperationInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+
+public class SoapBindingInfoFactoryBean extends AbstractBindingInfoFactoryBean {
+    private SoapVersion soapVersion = Soap11.getInstance();
+
+    @Override
+    public BindingInfo create() {
+        ServiceInfo si = getServiceInfo();
+        SoapBindingInfo info = new SoapBindingInfo(si, null, soapVersion);
+        
+        info.setName(getBindingName());
+        info.setStyle(getStyle());
+        info.setTransportURI(getTransportURI());
+        
+        for (OperationInfo op : si.getInterface().getOperations()) {
+            SoapOperationInfo sop = new SoapOperationInfo();
+            sop.setAction(getSoapAction(op));
+            sop.setStyle(getStyle(op));
+            
+            BindingOperationInfo bop = 
+                info.buildOperation(op.getName(), op.getInputName(), op.getOutputName());
+            bop.addExtensor(sop);
+            
+            info.addOperation(bop);
+        }
+        
+        return info;
+    }
+
+    private String getSoapAction(OperationInfo op) {
+        return "";
+    }
+
+    protected String getTransportURI() {
+        return "http://schemas.xmlsoap.org/wsdl/soap/http";
+    }
+
+    protected String getStyle() {
+        return "document";
+    }
+
+    protected String getStyle(OperationInfo op) {
+        return "document";
+    }
+
+    protected QName getBindingName() {
+        ServiceInfo si = getServiceInfo();
+        return new QName(si.getName().getNamespaceURI(), 
+                         si.getName().getLocalPart() + "SoapBinding");
+    }
+
+    protected ServiceInfo getServiceInfo() {
+        return getServiceFactory().getService().getServiceInfo();
+    }
+
+    public SoapVersion getSoapVersion() {
+        return soapVersion;
+    }
+
+    public void setSoapVersion(SoapVersion soapVersion) {
+        this.soapVersion = soapVersion;
+    }
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SoapBindingInfoFactoryBean.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/DISCLAIMER
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/DISCLAIMER?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/DISCLAIMER (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/DISCLAIMER Tue Sep 26 17:31:18 2006
@@ -0,0 +1,5 @@
+Apache CeltiXfire is an effort undergoing incubation at the Apache Software Foundation (ASF), sponsored by the Apache Incubator PMC. 
+
+Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. 
+
+While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE Tue Sep 26 17:31:18 2006
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   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.
+

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/LICENSE
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE Tue Sep 26 17:31:18 2006
@@ -0,0 +1,20 @@
+   =========================================================================
+   ==  NOTICE file corresponding to the section 4 d of                    ==
+   ==  the Apache License, Version 2.0,                                   ==
+   ==  in this case for the Apache CeltiXfire distribution.               ==
+   =========================================================================
+
+   This product includes software developed by
+   The Apache Software Foundation (http://www.apache.org/).
+
+   The product includes Web Services Description Language
+   for Java Toolkit (WSDL4J) software in binary form.
+   The source may be obtained at: http://sourceforge.net/projects/wsdl4j.
+
+   This product also includes software developed by:
+      - the W3C consortium (http://www.w3c.org) ,
+      - the SAX project (http://www.saxproject.org)
+
+
+   Additional copyright notices and license terms applicable are
+   present in the licenses directory of this distribution.

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,25 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+public interface HelloService {
+    String sayHello();
+    void ping();
+    String echo(String text);
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/HelloService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java?view=auto&rev=450267
==============================================================================
--- incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java (added)
+++ incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java Tue Sep 26 17:31:18 2006
@@ -0,0 +1,80 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.cxf.service.factory;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.binding.soap.model.SoapBindingInfo;
+import org.apache.cxf.binding.soap.model.SoapOperationInfo;
+import org.apache.cxf.jaxb.JAXBDataBinding;
+import org.apache.cxf.service.Service;
+import org.apache.cxf.service.model.BindingInfo;
+import org.apache.cxf.service.model.BindingOperationInfo;
+import org.apache.cxf.service.model.InterfaceInfo;
+import org.apache.cxf.service.model.MessagePartInfo;
+import org.apache.cxf.service.model.OperationInfo;
+import org.apache.cxf.service.model.ServiceInfo;
+import org.apache.cxf.test.AbstractCXFTest;
+
+public class ReflectionServiceFactoryTest extends AbstractCXFTest {
+    public void testReflectionBuilding() throws Exception {
+        ReflectionServiceFactoryBean sf = new ReflectionServiceFactoryBean();
+        sf.setDataBinding(new JAXBDataBinding(HelloService.class));
+        sf.setBus(getBus());
+        sf.setServiceClass(HelloService.class);
+        
+        Service service = sf.create();
+        
+        ServiceInfo si = service.getServiceInfo();
+        InterfaceInfo intf = si.getInterface();
+        
+        assertEquals(3, intf.getOperations().size());
+        
+        String ns = si.getName().getNamespaceURI();
+        OperationInfo sayHelloOp = intf.getOperation(new QName(ns, "sayHello"));
+        assertNotNull(sayHelloOp);
+        
+        List<MessagePartInfo> messageParts = sayHelloOp.getInput().getMessageParts();
+        assertEquals(0, messageParts.size());
+        
+        messageParts = sayHelloOp.getOutput().getMessageParts();
+        assertEquals(1, messageParts.size());
+        MessagePartInfo mpi = messageParts.get(0);
+        assertEquals("out", mpi.getName().getLocalPart());
+        assertEquals(String.class, mpi.getProperty(Class.class.getName()));
+        
+        BindingInfo b = si.getBindings().iterator().next();
+        
+        assertTrue(b instanceof SoapBindingInfo);
+        
+        SoapBindingInfo sb = (SoapBindingInfo) b;
+        assertEquals("HelloServiceSoapBinding", b.getName().getLocalPart());
+        assertEquals("document", sb.getStyle());
+        
+        assertEquals(3, b.getOperations().size());
+        
+        BindingOperationInfo bop = b.getOperations().iterator().next();
+        SoapOperationInfo sop = bop.getExtensor(SoapOperationInfo.class);
+        assertNotNull(sop);
+        assertEquals("", sop.getAction());
+        assertEquals("document", sop.getStyle());
+    }
+}

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/cxf/trunk/rt/frontend/simple/src/test/java/org/apache/cxf/service/factory/ReflectionServiceFactoryTest.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/cxf/trunk/rt/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/pom.xml?view=diff&rev=450267&r1=450266&r2=450267
==============================================================================
--- incubator/cxf/trunk/rt/pom.xml (original)
+++ incubator/cxf/trunk/rt/pom.xml Tue Sep 26 17:31:18 2006
@@ -42,6 +42,7 @@
         <module>transports/local</module>
         <module>databinding/jaxb</module>
         <module>bindings</module>
+        <module>frontend/simple</module>
         <module>frontend/jaxws</module>
         <module>frontend/js</module>
         <module>transports/http</module>



Mime
View raw message