tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r451070 [3/3] - in /incubator/tuscany/sandbox/rfeng/samples: creditws/ creditws/src/ creditws/src/main/ creditws/src/main/java/ creditws/src/main/java/credit/ creditws/src/main/resources/ creditws/src/main/resources/META-INF/ creditws/src/m...
Date Fri, 29 Sep 2006 00:24:15 GMT
Added: incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/interface.wsdl.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/interface.wsdl.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/interface.wsdl.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/interface.wsdl.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<!--
+    Default system configuration for the launcher environment.
+    
+    $Rev: 440894 $ $Date: 2006-09-06 15:52:01 -0700 (Wed, 06 Sep 2006) $
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="org.apache.tuscany.idl.WSDL">
+
+    <component name="interface.wsdl.Loader">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader"
/>
+    </component>
+
+    <component name="wsdl.Registry">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistryImpl"
initLevel="40" />
+    </component>
+
+    <component name="xmlSchema.registry">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.XMLSchemaRegistryImpl"
initLevel="35" />
+    </component>
+    
+    <component name="interface.wsdl.Introspector">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.InterfaceWSDLIntrospectorImpl"
initLevel="40" />
+    </component>
+    
+</composite>
\ No newline at end of file

Added: incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/webapp.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/webapp.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/webapp.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/META-INF/tuscany/webapp.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.    
+-->
+<!--
+    Default system configuration for the launcher environment.
+
+    $Rev: 449867 $ $Date: 2006-09-25 17:01:40 -0700 (Mon, 25 Sep 2006) $
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+           name="org.apache.tuscany.runtime.webapp.System">
+
+    <!-- Component that provides the Deployer service -->
+    <component name="deployer">
+        <system:implementation.system class="org.apache.tuscany.core.deployer.DeployerImpl"/>
+    </component>
+
+    <!-- Work management -->
+    <component name="workContext">
+        <system:implementation.system class="org.apache.tuscany.core.component.WorkContextImpl"/>
+    </component>
+
+    <!-- Wire service -->
+    <component name="wireService">
+        <system:implementation.system class="org.apache.tuscany.core.wire.jdk.JDKWireService"/>
+    </component>
+
+    <!-- Scope infrastructure -->
+    <component name="scopeRegistry">
+        <system:implementation.system class="org.apache.tuscany.core.component.scope.ScopeRegistryImpl"/>
+    </component>
+
+    <!-- Builder and BuilderRegistry -->
+    <component name="builder">
+        <system:implementation.system class="org.apache.tuscany.core.builder.BuilderRegistryImpl"/>
+    </component>
+
+    <!-- Loader and LoaderRegistry -->
+    <component name="loader">
+        <system:implementation.system class="org.apache.tuscany.core.loader.LoaderRegistryImpl"/>
+    </component>
+
+    <!-- Introspector and IntrospectionRegistry -->
+    <component name="introspector">
+        <system:implementation.system class="org.apache.tuscany.core.implementation.IntrospectionRegistryImpl"/>
+    </component>
+
+    <!-- Connector infrastructure -->
+    <component name="connector">
+        <system:implementation.system class="org.apache.tuscany.core.builder.ConnectorImpl"/>
+    </component>
+
+    <component name="wirePostProcessorRegistry">
+        <system:implementation.system class="org.apache.tuscany.core.builder.WirePostProcessorRegistryImpl"/>
+    </component>
+
+    <!-- Default scopes -->
+    <component name="scope.module">
+        <system:implementation.system class="org.apache.tuscany.core.component.scope.ModuleScopeObjectFactory"/>
+    </component>
+    <component name="scope.stateless">
+        <system:implementation.system class="org.apache.tuscany.core.component.scope.StatelessScopeObjectFactory"/>
+    </component>
+
+    <!-- include loader configuration -->
+    <include name="org.apache.tuscany.launcher.Loader" scdlResource="org/apache/tuscany/core/loader.scdl"/>
+
+    <!-- include implementation processor configuration -->
+    <include name="org.apache.tuscany.launcher.Implementation" scdlResource="org/apache/tuscany/core/implementation.scdl"/>
+
+    <!-- Java interface definition language -->
+    <include name="org.apache.tuscany.launcher.InterfaceJava" scdlResource="org/apache/tuscany/core/interfaceJava.scdl"/>
+
+    <!-- include omposite implementation type -->
+    <include name="org.apache.tuscany.launcher.Composite" scdlResource="org/apache/tuscany/core/composite.scdl"/>
+
+    <!-- System implementation type -->
+    <include name="org.apache.tuscany.launcher.SystemImplementation" scdlResource="org/apache/tuscany/core/systemImplementation.scdl"/>
+
+    <!-- Java implementation type -->
+    <include name="org.apache.tuscany.launcher.JavaImplementation" scdlResource="org/apache/tuscany/core/javaImplementation.scdl"/>
+
+    <!-- Data Binding -->
+    <include name="org.apache.tuscany.launcher.DataBinding" scdlResource="org/apache/tuscany/core/databinding.scdl"/>
+
+    <!-- WorkScheduler service -->
+    <component name="workManager">
+        <system:implementation.system
+            class="org.apache.tuscany.core.services.work.jsr237.workmanager.ThreadPoolWorkManager"/>
+        <property name="poolSize">10</property>
+    </component>
+
+    <component name="workScheduler">
+        <system:implementation.system class="org.apache.tuscany.core.services.work.jsr237.Jsr237WorkScheduler"/>
+    </component>
+    
+    <!-- Web app ServletHost -->
+    <component name="servletHost">
+        <system:implementation.system class="org.apache.tuscany.runtime.webapp.ServletHostImpl"/>
+    </component>
+
+    <component name="policyBuilderRegistry">
+         <system:implementation.system class="org.apache.tuscany.core.policy.PolicyBuilderRegistryImpl"/>
+    </component>
+
+    <component name="propertyFactory">
+        <system:implementation.system class="org.apache.tuscany.core.loader.StringParserPropertyFactory"/>
+    </component>
+
+    <component name="artifactRepository">
+            <system:implementation.system class="org.apache.tuscany.core.services.artifact.LocalMavenRepository"/>
+            <!-- this value needs to change to a correct one -->
+            <property name = "repository">.</property>
+    </component>
+
+    <include name="databinding.sdo" scdlLocation="databinding.sdo.scdl"/>
+    <include name="databinding.axiom" scdlLocation="databinding.axiom.scdl"/>
+    <include name="binding.axis2" scdlLocation="binding.axis2.scdl"/>
+    <include name="interface.wsdl" scdlLocation="interface.wsdl.scdl"/>
+
+
+</composite>

Added: incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml Thu Sep
28 17:24:13 2006
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.    
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+  <display-name>Tuscany HelloWorld Web Service Sample</display-name>
+
+  <context-param>
+     <param-name>tuscany.systemScdlPath</param-name>
+     <param-value>/META-INF/tuscany/webapp.scdl</param-value>
+  </context-param>
+
+  <context-param>
+     <param-name>tuscany.applicationScdlPath</param-name>
+     <param-value>/META-INF/sca/default.scdl</param-value>
+  </context-param>
+
+  <listener>
+     <listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
+  </listener>
+
+  <servlet>
+     <servlet-name>TuscanyServlet</servlet-name>
+     <display-name>Tuscany Servlet</display-name>
+     <servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
+  </servlet>
+  
+  <servlet-mapping>
+     <servlet-name>TuscanyServlet</servlet-name>
+     <url-pattern>/services/*</url-pattern>
+  </servlet-mapping>
+
+</web-app>

Propchange: incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/rfeng/samples/creditws/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml (original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/pom.xml Thu Sep 28 17:24:13 2006
@@ -1,21 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- * 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.    
+    * 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>
     <parent>
@@ -38,6 +38,18 @@
             <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>test</artifactId>
             <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.bindings</groupId>
+            <artifactId>axis2</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>runtime</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+            <artifactId>databinding-axiom</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>runtime</scope>
         </dependency>
     </dependencies>
 

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheck.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheck.java?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheck.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheck.java
Thu Sep 28 17:24:13 2006
@@ -18,6 +18,9 @@
  */
 package mortgage;
 
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
 public interface CreditCheck {
     int getCreditScore(String ssn);
 }

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheckImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheckImpl.java?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheckImpl.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/CreditCheckImpl.java
Thu Sep 28 17:24:13 2006
@@ -29,11 +29,4 @@
     public int getCreditScore(String ssn) {
         return (int) (700 + (Math.random() - 0.5) * 100);
     }
-
-    public static void main(String[] args) {
-        CreditCheck creditCheck = new CreditCheckImpl();
-        for (int i = 0; i < 3; i++) {
-            System.out.println(creditCheck.getCreditScore("111-22-3333"));
-        }
-    }
 }

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/LoanApprovalImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/LoanApprovalImpl.java?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/LoanApprovalImpl.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/java/mortgage/LoanApprovalImpl.java
Thu Sep 28 17:24:13 2006
@@ -53,7 +53,7 @@
     }
 
     @Reference
-    public void setMortageCalculator(MortgageCalculator mortgageCalculator) {
+    public void setMortgageCalculator(MortgageCalculator mortgageCalculator) {
         this.mortgageCalculator = mortgageCalculator;
     }
 

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/sca/default.scdl?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/sca/default.scdl
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/sca/default.scdl
Thu Sep 28 17:24:13 2006
@@ -22,7 +22,7 @@
     <component name="LoanApprovalComponent">
         <implementation.java class="mortgage.LoanApprovalImpl" />
         <property name="minimumCreditScore" type="xsd:int">600</property>
-        <reference name="creditCheck">CreditCheckComponent</reference>
+        <reference name="creditCheck">CreditCheckService</reference>
         <reference name="interestRateQuote">InterestRateQuoteComponent</reference>
         <reference name="riskAssessment">RiskAssessmentComponent</reference>
         <reference name="mortgageCalculator">MortgageCalculatorComponent</reference>
@@ -31,6 +31,15 @@
     <component name="CreditCheckComponent">
         <implementation.java class="mortgage.CreditCheckImpl" />
     </component>
+
+    <reference name="CreditCheckService">
+        <interface.java interface="mortgage.CreditCheck" />
+        <!-- 
+            <interface.wsdl xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+            interface="http://credit#wsdl.interface(CreditCheck)" wsdli:wsdlLocation="http://credit
wsdl/credit.wsdl" />
+        -->
+        <binding.ws endpoint="http://credit#wsdl.endpoint(CreditCheckService/CreditCheckSoapPort)"
location="wsdl/credit.wsdl" />
+    </reference>
 
     <component name="InterestRateQuoteComponent">
         <implementation.java class="mortgage.InterestRateQuoteImpl" />

Added: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/binding.axis2.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/binding.axis2.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/binding.axis2.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/binding.axis2.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.    
+-->
+<!-- Axis2 based WebService binding extension -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/1.0-SNAPSHOT"
+           name="org.apache.tuscany.binding.axis2.WebServiceBinding">
+
+    <tuscany:dependency>
+        <group>axis2</group>
+        <artifact>axis2-core</artifact>
+        <version>SNAPSHOT</version>
+    </tuscany:dependency>
+    
+    <component name="webservice.bindingLoader">
+        <system:implementation.system class="org.apache.tuscany.binding.axis2.WebServiceBindingLoader"/>
+    </component>
+
+    <component name="webservice.axis2.bindingBuilder">
+        <system:implementation.system class="org.apache.tuscany.binding.axis2.Axis2BindingBuilder"/>
+    </component>
+
+</composite>

Added: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/databinding.axiom.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/databinding.axiom.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/databinding.axiom.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/databinding.axiom.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    *  Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
+    *
+    *  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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="org.apache.tuscany.databinding.Axiom">
+
+    <component name="databinding.axiom">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.AxiomDataBinding"
/>
+    </component>
+
+    <!-- Transformers -->
+    <component name="transformer.XMLStreamReader2OMElement">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.XMLStreamReader2OMElement"
/>
+    </component>
+    
+    <component name="transformer.OMElement2XMLStreamReader">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.OMElement2XMLStreamReader"
/>
+    </component>
+    
+    <component name="transformer.String2OMElement">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.String2OMElement"
/>
+    </component>
+    
+    <component name="transformer.OMElement2String">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.OMElement2String"
/>
+    </component>    
+
+    <component name="transformer.Object2OMElement">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.Object2OMElement"
/>
+    </component>
+    
+    <component name="transformer.OMElement2Object">
+        <system:implementation.system class="org.apache.tuscany.databinding.axiom.OMElement2Object"
/>
+    </component>     
+
+</composite>
\ No newline at end of file

Added: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/interface.wsdl.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/interface.wsdl.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/interface.wsdl.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/interface.wsdl.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<!--
+    Default system configuration for the launcher environment.
+    
+    $Rev: 440894 $ $Date: 2006-09-06 15:52:01 -0700 (Wed, 06 Sep 2006) $
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="org.apache.tuscany.idl.WSDL">
+
+    <component name="interface.wsdl.Loader">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.InterfaceWSDLLoader"
/>
+    </component>
+
+    <component name="wsdl.Registry">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.WSDLDefinitionRegistryImpl"
initLevel="40" />
+    </component>
+
+    <component name="xmlSchema.registry">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.XMLSchemaRegistryImpl"
initLevel="35" />
+    </component>
+    
+    <component name="interface.wsdl.Introspector">
+        <system:implementation.system class="org.apache.tuscany.idl.wsdl.InterfaceWSDLIntrospectorImpl"
initLevel="40" />
+    </component>
+    
+</composite>
\ No newline at end of file

Added: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/test-extensions.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/test-extensions.scdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/test-extensions.scdl
(added)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/META-INF/tuscany/test-extensions.scdl
Thu Sep 28 17:24:13 2006
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    *  Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
+    *
+    *  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.
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+    name="test.extensions">
+    
+    <include name="org.apache.tuscany.databinding.axiom" scdlLocation="databinding.axiom.scdl"/>
+    <include name="org.apache.tuscany.interface.wsdl" scdlLocation="interface.wsdl.scdl"/>
+    <include name="org.apache.tuscany.binding.axis2" scdlLocation="binding.axis2.scdl"/>
+
+
+</composite>
\ No newline at end of file

Added: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/wsdl/credit.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/wsdl/credit.wsdl?view=auto&rev=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/wsdl/credit.wsdl (added)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/main/resources/wsdl/credit.wsdl Thu
Sep 28 17:24:13 2006
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<wsdl:definitions targetNamespace="http://credit" xmlns:tns="http://credit" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="credit">
+
+    <wsdl:types>
+        <schema elementFormDefault="qualified" targetNamespace="http://credit" xmlns:tns="http://credit"
+            xmlns="http://www.w3.org/2001/XMLSchema">
+
+            <element name="getCreditScore">
+                <complexType>
+                    <sequence>
+                        <element name="ssn" type="xsd:string" />
+                    </sequence>
+                </complexType>
+            </element>
+
+            <element name="getCreditScoreResponse">
+                <complexType>
+                    <sequence>
+                        <element name="score" type="xsd:int" />
+                    </sequence>
+                </complexType>
+            </element>
+
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="getCreditScoreRequest">
+        <wsdl:part element="tns:getCreditScore" name="inputMsg" />
+    </wsdl:message>
+
+    <wsdl:message name="getCreditScoreResponse">
+        <wsdl:part element="tns:getCreditScoreResponse" name="outputMsg" />
+    </wsdl:message>
+
+
+    <wsdl:portType name="CreditCheck">
+        <wsdl:operation name="getCreditScore">
+            <wsdl:input message="tns:getCreditScoreRequest" name="getCreditScoreRequest"
/>
+            <wsdl:output message="tns:getCreditScoreResponse" name="getCreditScoreResponse"
/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="CreditCheckSoapBinding" type="tns:CreditCheck">
+        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"
/>
+        <wsdl:operation name="getCreditScore">
+            <wsdlsoap:operation soapAction="" />
+            <wsdl:input name="getCreditScoreRequest">
+                <wsdlsoap:body use="literal" />
+            </wsdl:input>
+            <wsdl:output name="getCreditScoreResponse">
+                <wsdlsoap:body use="literal" />
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+
+    <wsdl:service name="CreditCheckService">
+        <wsdl:port binding="tns:CreditCheckSoapBinding" name="CreditCheckSoapPort">
+            <wsdlsoap:address location="http://localhost:8080/credit/services/CreditCheckWebService"
/>
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>

Modified: incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java?view=diff&rev=451070&r1=451069&r2=451070
==============================================================================
--- incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
(original)
+++ incubator/tuscany/sandbox/rfeng/samples/mortgage/src/test/java/mortgage/MortgageClientTestCase.java
Thu Sep 28 17:24:13 2006
@@ -33,6 +33,8 @@
     private LoanApproval loanApproval;
 
     protected void setUp() throws Exception {
+        ClassLoader classLoader = getClass().getClassLoader();
+        addExtension("test.extensions", classLoader.getResource("META-INF/tuscany/test-extensions.scdl"));
         super.setUp();
         CompositeContext context = CurrentCompositeContext.getContext();
         loanApproval = context.locateService(LoanApproval.class, "LoanApprovalComponent");



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


Mime
View raw message