Added: incubator/tuscany/branches/sca-java-M2/samples/webapp/calculatorws/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/calculatorws/src/main/webapp/WEB-INF/web.xml?view=auto&rev=466437 ============================================================================== --- incubator/tuscany/branches/sca-java-M2/samples/webapp/calculatorws/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/tuscany/branches/sca-java-M2/samples/webapp/calculatorws/src/main/webapp/WEB-INF/web.xml Sat Oct 21 12:02:11 2006 @@ -0,0 +1,42 @@ +<?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 Calculator Web Service Sample</display-name> + + <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>
Modified: incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldImpl.java URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldImpl.java?view=diff&rev=466437&r1=466436&r2=466437 ============================================================================== --- incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldImpl.java (original) +++ incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldImpl.java Sat Oct 21 12:02:11 2006 @@ -38,4 +38,7 @@ return "Hello " + firstName + " " + lastName; } + public double getNumber(double seed) { + return 100.25 + seed; + } } Modified: incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldService.java URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldService.java?view=diff&rev=466437&r1=466436&r2=466437 ============================================================================== --- incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldService.java (original) +++ incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/java/helloworld/HelloWorldService.java Sat Oct 21 12:02:11 2006 @@ -34,6 +34,8 @@ public String getGreetings(String name); @DataType(name="commonj.sdo.DataObject") public String getGreetings1(DataObject name); + + public double getNumber(double seed); } Modified: incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/resources/wsdl/helloworld.wsdl URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/resources/wsdl/helloworld.wsdl?view=diff&rev=466437&r1=466436&r2=466437 ============================================================================== --- incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/resources/wsdl/helloworld.wsdl (original) +++ incubator/tuscany/branches/sca-java-M2/samples/webapp/helloworldws/src/main/resources/wsdl/helloworld.wsdl Sat Oct 21 12:02:11 2006 @@ -22,6 +22,21 @@ <wsdl:types> <schema elementFormDefault="qualified" targetNamespace="http://helloworld" xmlns="http://www.w3.org/2001/XMLSchema"> + <element name="getNumber"> + <complexType> + <sequence> + <element name="seed" type="xsd:double"/> + </sequence> + </complexType> + </element> + + <element name="getNumberResponse"> + <complexType> + <sequence> + <element name="getNumberReturn" type="xsd:double"/> + </sequence> + </complexType> + </element> <element name="getGreetings"> <complexType> @@ -66,6 +81,14 @@ </schema> </wsdl:types> + <wsdl:message name="getNumberRequest"> + <wsdl:part element="tns:getNumber" name="parameters"/> + </wsdl:message> + + <wsdl:message name="getNumberResponse"> + <wsdl:part element="tns:getNumberResponse" name="parameters"/> + </wsdl:message> + <wsdl:message name="getGreetingsRequest"> <wsdl:part element="tns:getGreetings" name="parameters"/> </wsdl:message> @@ -83,6 +106,10 @@ </wsdl:message> <wsdl:portType name="HelloWorld"> + <wsdl:operation name="getNumber"> + <wsdl:input message="tns:getNumberRequest" name="getNumberRequest"/> + <wsdl:output message="tns:getNumberResponse" name="getNumberResponse"/> + </wsdl:operation> <wsdl:operation name="getGreetings"> <wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/> <wsdl:output message="tns:getGreetingsResponse" name="getGreetingsResponse"/> @@ -95,6 +122,15 @@ <wsdl:binding name="HelloWorldSoapBinding" type="tns:HelloWorld"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> + <wsdl:operation name="getNumber"> + <wsdlsoap:operation soapAction=""/> + <wsdl:input name="getNumberRequest"> + <wsdlsoap:body use="literal"/> + </wsdl:input> + <wsdl:output name="getNumberResponse"> + <wsdlsoap:body use="literal"/> + </wsdl:output> + </wsdl:operation> <wsdl:operation name="getGreetings"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="getGreetingsRequest"> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
