woohoo On 5/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Author: jsdelfino Date: Wed May 3 08:07:23 2006 New Revision: 399327 URL: http://svn.apache.org/viewcvs?rev=399327&view=rev Log: Adding server side of the webserviceInteropDoc test case Added: incubator/tuscany/java/testing/interop/services/ (with props) incubator/tuscany/java/testing/interop/services/pom.xml (with props) incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/ (with props) incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml (with props) incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/binding/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/binding/axis2/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/binding/axis2/test/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/binding/axis2/test/interopdoc/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java (with props) incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/sca.module incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/interopdoc.wsdl incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml (with props) Modified: incubator/tuscany/java/testing/interop/clients/webserviceInteropDoc/src/main/resources/sca.module incubator/tuscany/java/testing/interop/pom.xml Modified: incubator/tuscany/java/testing/interop/clients/webserviceInteropDoc/src/main/resources/sca.module URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/clients/webserviceInteropDoc/src/main/resources/sca.module?rev=399327&r1=399326&r2=399327&view=diff ============================================================================== --- incubator/tuscany/java/testing/interop/clients/webserviceInteropDoc/src/main/resources/sca.module (original) +++ incubator/tuscany/java/testing/interop/clients/webserviceInteropDoc/src/main/resources/sca.module Wed May 3 08:07:23 2006 @@ -31,7 +31,7 @@ <externalService name="LocalHostInteropDocService"> <interface.wsdl interface=" http://soapinterop.org/#DocTestPortType"/> - <binding.ws uri=" http://localhost:8080/tuscany-testing-interop-server-SNAPSHOT/services/InteropDocService " + <binding.ws uri=" http://localhost:8080/http://localhost:8080/interop-service-webserviceInteropDoc-SNAPSHOT/services/InteropDocService " port="http://soapinterop.org/#interopDocPort"/> </externalService> Modified: incubator/tuscany/java/testing/interop/pom.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/pom.xml?rev=399327&r1=399326&r2=399327&view=diff ============================================================================== --- incubator/tuscany/java/testing/interop/pom.xml (original) +++ incubator/tuscany/java/testing/interop/pom.xml Wed May 3 08:07:23 2006 @@ -29,9 +29,7 @@ <modules> <module>clients</module> -<!-- <module>services</module> ---> </modules> </project> Propchange: incubator/tuscany/java/testing/interop/services/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Wed May 3 08:07:23 2006 @@ -0,0 +1,13 @@ +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Added: incubator/tuscany/java/testing/interop/services/pom.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/pom.xml?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/pom.xml (added) +++ incubator/tuscany/java/testing/interop/services/pom.xml Wed May 3 08:07:23 2006 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-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. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-testing-interop</artifactId> + <version>SNAPSHOT</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-testing-interop-services</artifactId> + <packaging>pom</packaging> + <name>Tuscany Interop Testing - Services</name> + <version>SNAPSHOT</version> + + <modules> + <module>webserviceInteropDoc</module> + </modules> + +</project> Propchange: incubator/tuscany/java/testing/interop/services/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/tuscany/java/testing/interop/services/pom.xml ------------------------------------------------------------------------------ svn:keywords = Rev,Date Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Wed May 3 08:07:23 2006 @@ -0,0 +1,13 @@ +target +*.iws +*.ipr +*.iml +.project +.classpath +maven.log +velocity.log* +junit*.properties +.settings +.deployables +.wtpmodules + Added: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml (added) +++ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml Wed May 3 08:07:23 2006 @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-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. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-testing-interop-services</artifactId> + <version>SNAPSHOT</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <artifactId>interop-service-webserviceInteropDoc</artifactId> + <packaging>war</packaging> + <name>Tuscany Interop Testing - Services - InteropDoc</name> + <version>SNAPSHOT</version> + + <dependencies> + <dependency> + <groupId>org.osoa</groupId> + <artifactId>sca-api</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-core</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.containers</groupId> + <artifactId>tuscany-container-java</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-axis2</artifactId> + <version>${pom.version}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-sdo-plugin</artifactId> + <executions> + <execution> + <configuration> + <schemaFile>${basedir}/src/main/resources/wsdl/interopdoc.wsdl</schemaFile> + <noNotification>true</noNotification> + <noContainer>true</noContainer> + <noInterfaces>true</noInterfaces> + <noUnsettable>true</noUnsettable> + </configuration> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-sca-plugin</artifactId> + <executions> + <execution> + <configuration> + <wsdlFile>${basedir}/src/main/resources/wsdl/interopdoc.wsdl</wsdlFile> + <javaPackage>org.soapinterop</javaPackage> + </configuration> + <goals> + <goal>generate</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + +</project> Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/pom.xml ------------------------------------------------------------------------------ svn:keywords = Rev,Date Added: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java (added) +++ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java Wed May 3 08:07:23 2006 @@ -0,0 +1,45 @@ +/** + * + * Copyright 2005 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. + */ +package org.apache.tuscany.test.interop.server; + +import java.rmi.RemoteException; + +import org.osoa.sca.annotations.Service; +import org.soapinterop.ComplexDocument; +import org.soapinterop.DocTestPortType; +import org.soapinterop.SimpleDocument1; +import org.soapinterop.SingleTag; + +/** + * This class implements the HelloWorld service component. + */ [EMAIL PROTECTED](DocTestPortType.class) +public class InteropDocServiceComponentImpl implements DocTestPortType { + + public ComplexDocument ComplexDocument(ComplexDocument param2) throws RemoteException { + return param2; + } + + public SimpleDocument1 SimpleDocument(SimpleDocument1 param0) throws RemoteException { + return param0; + } + + public SingleTag SingleTag(SingleTag param4) throws RemoteException { + return param4; + } + +} Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/java/org/apache/tuscany/test/interop/server/InteropDocServiceComponentImpl.java ------------------------------------------------------------------------------ svn:keywords = Rev,Date Added: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/sca.module URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/sca.module?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/sca.module (added) +++ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/sca.module Wed May 3 08:07:23 2006 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2005 BEA Sytems Inc. + Copyright (c) 2005 International Business Machines + + 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. + --> +<module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v=" http://www.osoa.org/xmlns/sca/values/0.9" + name="interop.server"> + + <import.sdo factory="org.soapinterop.SoapinteropFactory"/> + <import.wsdl location="wsdl/interopdoc.wsdl" namespace=" http://soapinterop.org/"/> + + <entryPoint name="InteropDocService"> + <interface.wsdl interface="http://soapinterop.org/#DocTestPortType "/> + <binding.ws port="http://soapinterop.org/#interopDocPort"/> + <reference>InteropDocServiceComponent/DocTestPortType</reference> + </entryPoint> + + <component name="InteropDocServiceComponent"> + <implementation.java class=" org.apache.tuscany.test.interop.server.InteropDocServiceComponentImpl"/> + </component> + +</module> Added: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/interopdoc.wsdl URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/interopdoc.wsdl?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/interopdoc.wsdl (added) +++ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/resources/wsdl/interopdoc.wsdl Wed May 3 08:07:23 2006 @@ -0,0 +1,162 @@ +<?xml version="1.0"?> +<definitions name="InteropTestDoc" targetNamespace=" http://soapinterop.org/" + xmlns="http://schemas.xmlsoap.org/wsdl/" + xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:tns="http://soapinterop.org/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> + + <types> + + <xsd:schema elementFormDefault="qualified" targetNamespace="http://soapinterop.org/" xmlns:interop=" http://soapinterop.org/"> + + <xsd:element name="SingleTag"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="SingleTag" type="interop:SingleTag"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + + <xsd:complexType name="SingleTag"/> + <xsd:element name="SingleTagResponse"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="SingleTag" type="interop:SingleTag"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:element name="SimpleDocument"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="SimpleDocument" type="interop:SimpleDocument"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:complexType name="SimpleDocument"> + <xsd:simpleContent> + <xsd:extension base="xsd:string"/> + </xsd:simpleContent> + </xsd:complexType> + <xsd:element name="SimpleDocumentResponse"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="SimpleDocument" type="interop:SimpleDocument"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:element name="ComplexDocument"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="ComplexDocument" type="interop:ComplexDocument"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:complexType name="ComplexDocument"> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="simpleDoc" type="interop:ArrayOfSimpleDocument"/> + <xsd:element minOccurs="0" maxOccurs="1" name="child" type="interop:ChildDocument"/> + </xsd:sequence> + <xsd:attribute name="AnAttribute" type="xsd:string"/> + </xsd:complexType> + <xsd:complexType name="ArrayOfSimpleDocument"> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="unbounded" name="SimpleDocument" nillable="true" type="interop:SimpleDocument"/> + </xsd:sequence> + </xsd:complexType> + <xsd:complexType name="ChildDocument"> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="childSimpleDoc" type="interop:ArrayOfSimpleDocument"/> + </xsd:sequence> + </xsd:complexType> + <xsd:element name="ComplexDocumentResponse"> + <xsd:complexType> + <xsd:sequence> + <xsd:element minOccurs="0" maxOccurs="1" name="ComplexDocument" type="interop:ComplexDocument"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + + </xsd:schema> + + </types> + + <message name="SingleTagSoapIn"> + <part name="parameters" element="tns:SingleTag"/> + </message> + <message name="SingleTagSoapOut"> + <part name="outputDoc" element="tns:SingleTagResponse"/> + </message> + <message name="SimpleDocumentSoapIn"> + <part name="parameters" element="tns:SimpleDocument"/> + </message> + <message name="SimpleDocumentSoapOut"> + <part name="outputDoc" element="tns:SimpleDocumentResponse"/> + </message> + <message name="ComplexDocumentSoapIn"> + <part name="parameters" element="tns:ComplexDocument"/> + </message> + <message name="ComplexDocumentSoapOut"> + <part name="outputDoc" element="tns:ComplexDocumentResponse"/> + </message> + + <portType name="DocTestPortType"> + + <operation name="SingleTag"> + <input message="tns:SingleTagSoapIn"/> + <output message="tns:SingleTagSoapOut"/> + </operation> + <operation name="SimpleDocument"> + <input message="tns:SimpleDocumentSoapIn"/> + <output message="tns:SimpleDocumentSoapOut"/> + </operation> + <operation name="ComplexDocument"> + <input message="tns:ComplexDocumentSoapIn"/> + <output message="tns:ComplexDocumentSoapOut"/> + </operation> + + </portType> + + <binding name="doc_test_binding" type="tns:DocTestPortType"> + <soap:binding style="document" transport=" http://schemas.xmlsoap.org/soap/http"/> + + <operation name="SingleTag"> + <soap:operation soapAction=" http://soapinterop.org/SingleTag"/> + <input> + <soap:body use="literal"/> + </input> + <output> + <soap:body use="literal"/> + </output> + </operation> + + <operation name="SimpleDocument"> + <soap:operation soapAction=" http://soapinterop.org/SimpleDocument"/> + <input> + <soap:body use="literal"/> + </input> + <output> + <soap:body use="literal"/> + </output> + </operation> + + <operation name="ComplexDocument"> + <soap:operation soapAction=" http://soapinterop.org/ComplexDocument"/> + <input> + <soap:body use="literal"/> + </input> + <output> + <soap:body use="literal"/> + </output> + </operation> + </binding> + + <service name="interopDocSvc"> + + <port name="interopDocPort" binding="tns:doc_test_binding"> + <soap:address location=" http://www.whitemesa.net/interopdoc"/> + </port> + + </service> + +</definitions> Added: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml?rev=399327&view=auto ============================================================================== --- incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml (added) +++ incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml Wed May 3 08:07:23 2006 @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + Copyright (c) 2005 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. + --> + +<!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 Interop Test Server</display-name> + +</web-app> Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: incubator/tuscany/java/testing/interop/services/webserviceInteropDoc/src/main/webapp/WEB-INF/web.xml ------------------------------------------------------------------------------ svn:keywords = Rev,Date