You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ds...@apache.org on 2006/04/10 12:42:43 UTC
svn commit: r392916 [1/4] - in
/webservices/axis2/trunk/java/modules/xmlbeans: ./ src/ src/org/
src/org/apache/ src/org/apache/axis2/ src/org/apache/axis2/xmlbeans/
test-resources/ test/ test/org/ test/org/apache/ test/org/apache/axis2/
test/org/apache...
Author: dsosnoski
Date: Mon Apr 10 03:42:36 2006
New Revision: 392916
URL: http://svn.apache.org/viewcvs?rev=392916&view=rev
Log:
Separate XMLBeans code generation module
Added:
webservices/axis2/trunk/java/modules/xmlbeans/
webservices/axis2/trunk/java/modules/xmlbeans/maven.xml
webservices/axis2/trunk/java/modules/xmlbeans/project.properties
webservices/axis2/trunk/java/modules/xmlbeans/project.xml
webservices/axis2/trunk/java/modules/xmlbeans/src/
webservices/axis2/trunk/java/modules/xmlbeans/src/org/
webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/
webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/
webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/
webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java
webservices/axis2/trunk/java/modules/xmlbeans/test/
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote2.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTest.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTestDocLit2.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/SalesRankNPrice.wsdl (with props)
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/complex-doc-literal.wsdl (with props)
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/compound1.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/compound2.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/dime-doc.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/headers.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/interoptestdoclit.wsdl (with props)
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/interoptestdoclitparameters.wsdl (with props)
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/mime-doc.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/mtomecho.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/no-service.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/ping-mod.xsd
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/ping-modified.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/ping-unbound.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/ping.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/simple-doc-literal.wsdl (with props)
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/wsat.wsdl
webservices/axis2/trunk/java/modules/xmlbeans/test-resources/wsat.xsd
webservices/axis2/trunk/java/modules/xmlbeans/test/org/
webservices/axis2/trunk/java/modules/xmlbeans/test/org/apache/
webservices/axis2/trunk/java/modules/xmlbeans/test/org/apache/axis2/
webservices/axis2/trunk/java/modules/xmlbeans/test/org/apache/axis2/xmlbeans/
webservices/axis2/trunk/java/modules/xmlbeans/test/org/apache/axis2/xmlbeans/TestConstants.java
webservices/axis2/trunk/java/modules/xmlbeans/test/org/apache/axis2/xmlbeans/WSDL2JavaTest.java
Added: webservices/axis2/trunk/java/modules/xmlbeans/maven.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/maven.xml?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/maven.xml (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/maven.xml Mon Apr 10 03:42:36 2006
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
+
+<project default="jar"
+ xmlns:j="jelly:core"
+ xmlns:u="jelly:util"
+ xmlns:maven="jelly:maven"
+ xmlns:util="jelly:util"
+ xmlns:deploy="deploy"
+ xmlns:ant="jelly:ant">
+
+ <preGoal name="itest:compile">
+ <u:file var="file" name="${maven.itest.src}"/>
+ <j:if test="${!file.exists()}">
+ <j:expr value="${context.setVariable('maven.itest.skip', 'true')}"/>
+ </j:if>
+ </preGoal>
+
+</project>
Added: webservices/axis2/trunk/java/modules/xmlbeans/project.properties
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/project.properties?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/project.properties (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/project.properties Mon Apr 10 03:42:36 2006
@@ -0,0 +1,17 @@
+# -------------------------------------------------------------------
+# Copyright 2001-2004 The Apache Software Foundation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# -------------------------------------------------------------------
+
+maven.multiproject.type=jar
Added: webservices/axis2/trunk/java/modules/xmlbeans/project.xml
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/project.xml?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/project.xml (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/project.xml Mon Apr 10 03:42:36 2006
@@ -0,0 +1,166 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+/*
+ * Copyright 2001-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<project>
+ <pomVersion>3</pomVersion>
+ <extend>../../etc/project.xml</extend>
+
+ <id>axis2-xmlbeans</id>
+ <name>Apache Axis 2.0 - XMLBeans Data Binding</name>
+ <groupId>axis2</groupId>
+ <description>XMLBeans data binding support for Axis2</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>axiom-api</artifactId>
+ <version>${axiom.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>axis2</groupId>
+ <artifactId>axis2-common</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>axis2</groupId>
+ <artifactId>axis2-codegen</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>axis2</groupId>
+ <artifactId>axis2-core</artifactId>
+ <version>${pom.currentVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>XmlSchema</artifactId>
+ <version>${XmlSchema.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>xmlbeans</groupId>
+ <artifactId>xbean</artifactId>
+ <version>${xbean.version}</version>
+ <type>jar</type>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${commons.logging.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>${stax.impl.groupid}</groupId>
+ <artifactId>${stax.impl.artifactid}</artifactId>
+ <version>${stax.impl.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ <url>http://dist.codehaus.org/stax/jars/</url>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4j.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ <url>http://dist.codehaus.org/stax/jars/</url>
+ </dependency>
+
+ <dependency>
+ <groupId>stax</groupId>
+ <artifactId>stax-api</artifactId>
+ <version>${stax.api.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ <url>http://dist.codehaus.org/stax/jars/</url>
+ </dependency>
+ <dependency>
+ <groupId>axis</groupId>
+ <artifactId>axis-wsdl4j</artifactId>
+ <version>${axis.wsdl4j.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>ant</groupId>
+ <artifactId>ant</artifactId>
+ <version>${ant.version}</version>
+ <type>jar</type>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>xmlunit</groupId>
+ <artifactId>xmlunit</artifactId>
+ <version>${xmlunit.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ <url>http://www.ibiblio.org/maven/xmlunit/jars/</url>
+ </dependency>
+ <dependency>
+ <groupId>annogen</groupId>
+ <artifactId>annogen</artifactId>
+ <version>${annogen.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>backport-util-concurrent</groupId>
+ <artifactId>backport-util-concurrent</artifactId>
+ <version>${backport_util_concurrent.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ <dependency>
+ <groupId>ws-commons</groupId>
+ <artifactId>policy</artifactId>
+ <version>${policy.version}</version>
+ <properties>
+ <module>true</module>
+ </properties>
+ </dependency>
+ </dependencies>
+
+ <reports/>
+ <!-- add the build properties-->
+ <build>
+ <resources>
+ <resource>
+ <directory>src</directory>
+ <includes>
+ <include>**/*.properties</include>
+ <include>**/*.xml</include>
+ <include>**/*.xsl</include>
+ <include>**/*.xsd</include>
+ </includes>
+ </resource>
+ </resources>
+ </build>
+</project>
Added: webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/src/org/apache/axis2/xmlbeans/CodeGenerationUtility.java Mon Apr 10 03:42:36 2006
@@ -0,0 +1,313 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.axis2.xmlbeans;
+
+import java.io.ByteArrayOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Vector;
+
+import org.apache.axis2.namespace.Constants;
+import org.apache.axis2.util.URLProcessor;
+import org.apache.axis2.wsdl.codegen.CodeGenConfiguration;
+import org.apache.axis2.wsdl.databinding.DefaultTypeMapper;
+import org.apache.axis2.wsdl.databinding.JavaTypeMapper;
+import org.apache.axis2.wsdl.databinding.TypeMapper;
+import org.apache.axis2.wsdl.util.XSLTConstants;
+import org.apache.ws.commons.schema.XmlSchema;
+import org.apache.xmlbeans.BindingConfig;
+import org.apache.xmlbeans.Filer;
+import org.apache.xmlbeans.SchemaProperty;
+import org.apache.xmlbeans.SchemaType;
+import org.apache.xmlbeans.SchemaTypeSystem;
+import org.apache.xmlbeans.XmlBeans;
+import org.apache.xmlbeans.XmlObject;
+import org.apache.xmlbeans.XmlOptions;
+import org.w3c.dom.Element;
+
+/**
+ * Framework-linked code used by XMLBeans data binding support. This is accessed
+ * via reflection from the XMLBeans code generation extension when XMLBeans data
+ * binding is selected.
+ *
+ * @author dsosnoski
+ */
+public class CodeGenerationUtility {
+ public static final String SCHEMA_FOLDER = "schemas";
+
+ public static String MAPPINGS = "mappings";
+ public static String MAPPING = "mapping";
+ public static String MESSAGE = "message";
+ public static String JAVA_NAME = "javaclass";
+
+ public static final String MAPPING_FOLDER = "Mapping";
+ public static final String MAPPER_FILE_NAME = "mapper";
+ public static final String SCHEMA_PATH = "/org/apache/axis2/wsdl/codegen/schema/";
+
+ boolean debug = false;
+
+ /**
+ *
+ * @param additionalSchemas
+ * @throws RuntimeException
+ */
+ public static TypeMapper processSchemas(List schemas,
+ Element[] additionalSchemas, CodeGenConfiguration cgconfig) throws RuntimeException {
+ try {
+
+
+ //check for the imported types. Any imported types are supposed to be here also
+ if (schemas == null || schemas.isEmpty()) {
+ //there are no types to be code generated
+ //However if the type mapper is left empty it will be a problem for the other
+ //processes. Hence the default type mapper is set to the configuration
+ return new DefaultTypeMapper();
+ }
+
+ // todo - improve this code by using the schema compiler from
+ //xmlbeans directly
+
+ SchemaTypeSystem sts;
+ Vector xmlObjectsVector = new Vector();
+ //create the type mapper
+ JavaTypeMapper mapper = new JavaTypeMapper();
+ Map nameSpacesMap = cgconfig.getAxisService().getNameSpacesMap();
+ for (int i = 0; i < schemas.size(); i++) {
+
+ XmlSchema schema = (XmlSchema) schemas.get(i);
+ XmlOptions options = new XmlOptions();
+
+ options.setLoadAdditionalNamespaces(
+ nameSpacesMap); //add the namespaces
+ xmlObjectsVector.add(
+ XmlObject.Factory.parse(
+ getSchemaAsString(schema)
+ , options));
+
+ }
+
+ // add the third party schemas
+ //todo perhaps checking the namespaces would be a good idea to
+ //make the generated code work efficiently
+ for (int i = 0; i < additionalSchemas.length; i++) {
+ xmlObjectsVector.add(XmlObject.Factory.parse(
+ additionalSchemas[i]
+ , null));
+ }
+
+ //compile the type system
+ XmlObject[] objeArray = convertToXMLObjectArray(xmlObjectsVector);
+ BindingConfig config = new Axis2BindingConfig();
+
+ //set the STS name to null. it makes the generated class include a unique (but random) STS name
+ sts = XmlBeans.compileXmlBeans(null, null,
+ objeArray,
+ config, XmlBeans.getContextTypeLoader(),
+ new Axis2Filer(cgconfig.getOutputLocation()),
+ null);
+
+ // prune the generated schema type system and add the list of base64 types
+ cgconfig.putProperty(XSLTConstants.BASE_64_PROPERTY_KEY,
+ findBase64Types(sts));
+ cgconfig.putProperty(XSLTConstants.PLAIN_BASE_64_PROPERTY_KEY,
+ findPlainBase64Types(sts));
+
+ //get the schematypes and add the document types to the type mapper
+ SchemaType[] schemaType = sts.documentTypes();
+ SchemaType type;
+ for (int j = 0; j < schemaType.length; j++) {
+ type = schemaType[j];
+ mapper.addTypeMappingName(type.getDocumentElementName(),
+ type.getFullJavaName());
+ }
+
+ //return mapper to be set in the config
+ return mapper;
+
+
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ }
+
+ /**
+ * Populate the base64 types
+ * The algo is to look for simpletypes that have base64 content, and then step out of that
+ * onestep and get the element. For now there's an extended check to see whether the simple type
+ * is related to the Xmime:contentType!
+ *
+ * @param sts
+ */
+ private static List findBase64Types(SchemaTypeSystem sts) {
+ List allSeenTypes = new ArrayList();
+ List base64ElementQNamesList = new ArrayList();
+ SchemaType outerType;
+//add the document types and global types
+ allSeenTypes.addAll(Arrays.asList(sts.documentTypes()));
+ allSeenTypes.addAll(Arrays.asList(sts.globalTypes()));
+ for (int i = 0; i < allSeenTypes.size(); i++) {
+ SchemaType sType = (SchemaType) allSeenTypes.get(i);
+
+ if (sType.getContentType() == SchemaType.SIMPLE_CONTENT && sType.getPrimitiveType() != null) {
+ if (Constants.BASE_64_CONTENT_QNAME.equals(sType.getPrimitiveType().getName())) {
+ outerType = sType.getOuterType();
+//check the outer type further to see whether it has the contenttype attribute from
+//XMime namespace
+ SchemaProperty[] properties = sType.getProperties();
+ for (int j = 0; j < properties.length; j++) {
+ if (Constants.XMIME_CONTENT_TYPE_QNAME.equals(properties[j].getName())) {
+ base64ElementQNamesList.add(outerType.getDocumentElementName());
+ break;
+ }
+ }
+ }
+ }
+ //add any of the child types if there are any
+ allSeenTypes.addAll(Arrays.asList(sType.getAnonymousTypes()));
+ }
+
+ return base64ElementQNamesList;
+ }
+
+ private static List findPlainBase64Types(SchemaTypeSystem sts) {
+ ArrayList allSeenTypes = new ArrayList();
+
+ allSeenTypes.addAll(Arrays.asList(sts.documentTypes()));
+ allSeenTypes.addAll(Arrays.asList(sts.globalTypes()));
+
+ ArrayList base64Types = new ArrayList();
+
+ for (Iterator iterator = allSeenTypes.iterator(); iterator.hasNext();) {
+ SchemaType stype = (SchemaType) iterator.next();
+ findPlainBase64Types(stype, base64Types);
+ }
+
+ return base64Types;
+ }
+
+ private static void findPlainBase64Types(SchemaType stype, ArrayList base64Types) {
+
+ SchemaProperty[] elementProperties = stype.getElementProperties();
+
+ for (int i = 0; i < elementProperties.length; i++) {
+ SchemaType schemaType = elementProperties[i].getType();
+
+ if (schemaType.isPrimitiveType()) {
+ SchemaType primitiveType = schemaType.getPrimitiveType();
+
+ if (Constants.BASE_64_CONTENT_QNAME.equals(primitiveType.getName())) {
+ base64Types.add(elementProperties[i].getName());
+ }
+
+ } else {
+ findPlainBase64Types(schemaType, base64Types);
+ }
+ }
+ }
+
+ private static XmlObject[] convertToXMLObjectArray(Vector vec) {
+ return (XmlObject[]) vec.toArray(new XmlObject[vec.size()]);
+ }
+
+ /**
+ * Private class to generate the filer
+ */
+ private static class Axis2Filer implements Filer {
+
+ private File location;
+
+ private Axis2Filer(File loc) {
+ location = loc;
+ }
+
+ public OutputStream createBinaryFile(String typename)
+ throws IOException {
+ File resourcesDirectory = new File(location, "resources");
+ if (!resourcesDirectory.exists()) {
+ resourcesDirectory.mkdirs();
+ }
+ File file = new File(resourcesDirectory, typename);
+ file.getParentFile().mkdirs();
+ file.createNewFile();
+ return new FileOutputStream(file);
+ }
+
+ public Writer createSourceFile(String typename)
+ throws IOException {
+ typename =
+ typename.replace('.', File.separatorChar);
+ File outputDir = new File(location, "src");
+ if (!outputDir.exists()) {
+ outputDir.mkdirs();
+ }
+ File file = new File(outputDir,
+ typename + ".java");
+ file.getParentFile().mkdirs();
+ file.createNewFile();
+ return new FileWriter(file);
+ }
+ }
+
+ /**
+ * Convert schema into a String
+ *
+ * @param schema
+ */
+ private static String getSchemaAsString(XmlSchema schema) {
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ schema.write(baos);
+ return baos.toString();
+ }
+
+ /**
+ * Custom binding configuration for the code generator. This controls
+ * how the namespaces are suffixed/prefixed
+ */
+ private static class Axis2BindingConfig extends BindingConfig {
+ public String lookupPackageForNamespace(String uri) {
+ return URLProcessor.makePackageName(uri);
+ }
+ }
+
+// /**
+// *
+// */
+// public static class Axis2SchemaCompilerExtension implements SchemaCompilerExtension{
+// private SchemaTypeSystem sts;
+//
+// public SchemaTypeSystem getSts() {
+// return sts;
+// }
+//
+// public void schemaCompilerExtension(SchemaTypeSystem schemaTypeSystem, Map parms) {
+// this.sts = schemaTypeSystem;
+// }
+//
+// public String getExtensionName() {
+// return "Axis2.xmlbeans.extension";
+// }
+// }
+}
Added: webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote.wsdl?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote.wsdl (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote.wsdl Mon Apr 10 03:42:36 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns:mh="http://www.Monson-Haefel.com/jwsbook/BookQuote" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.Monson-Haefel.com/jwsbook/BookQuote" name="BookQuote">
+ <message name="BookQuote_getBookPrice">
+ <part name="isbn" type="xsd:anyType"/>
+ <part name="number" type="xsd:int"/>
+ </message>
+ <message name="BookQuote_getBookPriceResponse">
+ <part name="result" type="xsd:anyType"/>
+ </message>
+ <message name="InvalidIsbnFault">
+ <part name="message" type="xsd:anyType"/>
+ </message>
+ <portType name="BookQuote">
+ <operation name="getBookPrice">
+ <input message="mh:BookQuote_getBookPrice"/>
+ <output message="mh:BookQuote_getBookPriceResponse"/>
+ <fault name="InvalidIsbnFault" message="mh:InvalidIsbnFault"/>
+ </operation>
+ <operation name="getBookPriceNonRobust">
+ <input message="mh:BookQuote_getBookPrice"/>
+ <output message="mh:BookQuote_getBookPriceResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="BookQuoteBinding" type="mh:BookQuote">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="getBookPrice">
+ <soap:operation soapAction="myAction"/>
+ <input>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </output>
+ </operation>
+
+ <operation name="getBookPriceNonRobust">
+ <soap:operation soapAction="myAction2"/>
+ <input>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="BookQuoteService">
+ <port name="BookQuotePort" binding="mh:BookQuoteBinding">
+ <soap:address location="http://www.Monson-Haefel.com/jwsbook/BookQuoteService"/>
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote2.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote2.wsdl?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote2.wsdl (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/test-resources/BookQuote2.wsdl Mon Apr 10 03:42:36 2006
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions xmlns:mh="http://www.Monson-Haefel.com/jwsbook/BookQuote" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://www.Monson-Haefel.com/jwsbook/BookQuote" name="BookQuote">
+ <message name="BookQuote_getBookPrice">
+ <part name="isbn" type="xsd:string"/>
+ <part name="number" type="xsd:int"/>
+ </message>
+ <message name="BookQuote_getBookPriceResponse">
+ <part name="result" type="xsd:string"/>
+ </message>
+ <message name="InvalidIsbnFault">
+ <part name="message" type="xsd:string"/>
+ </message>
+ <portType name="BookQuote">
+ <operation name="getBookPrice">
+ <input message="mh:BookQuote_getBookPrice"/>
+ <output message="mh:BookQuote_getBookPriceResponse"/>
+ <fault name="InvalidIsbnFault" message="mh:InvalidIsbnFault"/>
+ </operation>
+ <operation name="getBookPriceNonRobust">
+ <input message="mh:BookQuote_getBookPrice"/>
+ <output message="mh:BookQuote_getBookPriceResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="BookQuoteBinding" type="mh:BookQuote">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="getBookPrice">
+ <soap:operation soapAction="myAction"/>
+ <input>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </output>
+ </operation>
+
+ <operation name="getBookPriceNonRobust">
+ <soap:operation soapAction="myAction2"/>
+ <input>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://www.Monson-Haefel.com/jwsbook/BookQuote/BookQuote"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="BookQuoteService">
+ <port name="BookQuotePort" binding="mh:BookQuoteBinding">
+ <soap:address location="http://www.Monson-Haefel.com/jwsbook/BookQuoteService"/>
+ </port>
+ </service>
+</definitions>
Added: webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTest.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTest.wsdl?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTest.wsdl (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTest.wsdl Mon Apr 10 03:42:36 2006
@@ -0,0 +1,717 @@
+<?xml version="1.0"?>
+<!-- This WSDL file is a combination of the InteropTest.wsdl -->
+<!-- and InteropTest2.wsdl files from White Mesa -->
+<definitions name="InteropTest" 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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://soapinterop.org/" xmlns:s="http://soapinterop.org/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xml-soap="http://xml.apache.org/xml-soap">
+
+ <!-- These are the types defined for Round 2 A and B -->
+ <!-- These types were copied from white mesa InteropTest.wsdl/InteropTestB.wsdl -->
+ <types>
+ <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soapinterop.org/xsd">
+ <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
+ <complexType name="ArrayOfstring">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="string[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ArrayOfint">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="int[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ArrayOffloat">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="float[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="ArrayOfSOAPStruct">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="s:SOAPStruct[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ <complexType name="SOAPStruct">
+ <all>
+ <element name="varString" type="string"/>
+ <element name="varInt" type="int"/>
+ <element name="varFloat" type="float"/>
+ </all>
+ </complexType>
+ <complexType name="SOAPStructStruct">
+ <all>
+ <element name="varString" type="string"/>
+ <element name="varInt" type="int"/>
+ <element name="varFloat" type="float"/>
+ <element name="varStruct" type="s:SOAPStruct"/>
+ </all>
+ </complexType>
+ <complexType name="SOAPArrayStruct">
+ <all>
+ <element name="varString" type="string"/>
+ <element name="varInt" type="int"/>
+ <element name="varFloat" type="float"/>
+ <element name="varArray" type="s:ArrayOfstring"/>
+ </all>
+ </complexType>
+ <complexType name="ArrayOfString2D">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[,]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+
+ <complexType name="ArrayOfMap">
+ <complexContent>
+ <restriction base="SOAP-ENC:Array">
+ <attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xml-soap:Map[]"/>
+ </restriction>
+ </complexContent>
+ </complexType>
+ </schema>
+ </types>
+
+ <!-- message, portType and binding for Round 2 tests -->
+ <!-- Copied from white mesa InteropTest.wsdl -->
+ <message name="echoStringRequest">
+ <part name="inputString" type="xsd:string"/>
+ </message>
+ <message name="echoStringResponse">
+ <part name="return" type="xsd:string"/>
+ </message>
+ <message name="echoStringArrayRequest">
+ <part name="inputStringArray" type="s:ArrayOfstring"/>
+ </message>
+ <message name="echoStringArrayResponse">
+ <part name="return" type="s:ArrayOfstring"/>
+ </message>
+ <message name="echoIntegerRequest">
+ <part name="inputInteger" type="xsd:int"/>
+ </message>
+ <message name="echoIntegerResponse">
+ <part name="return" type="xsd:int"/>
+ </message>
+ <message name="echoIntegerArrayRequest">
+ <part name="inputIntegerArray" type="s:ArrayOfint"/>
+ </message>
+ <message name="echoIntegerArrayResponse">
+ <part name="return" type="s:ArrayOfint"/>
+ </message>
+ <message name="echoFloatRequest">
+ <part name="inputFloat" type="xsd:float"/>
+ </message>
+ <message name="echoFloatResponse">
+ <part name="return" type="xsd:float"/>
+ </message>
+ <message name="echoFloatArrayRequest">
+ <part name="inputFloatArray" type="s:ArrayOffloat"/>
+ </message>
+ <message name="echoFloatArrayResponse">
+ <part name="return" type="s:ArrayOffloat"/>
+ </message>
+ <message name="echoStructRequest">
+ <part name="inputStruct" type="s:SOAPStruct"/>
+ </message>
+ <message name="echoStructResponse">
+ <part name="return" type="s:SOAPStruct"/>
+ </message>
+ <message name="echoStructArrayRequest">
+ <part name="inputStructArray" type="s:ArrayOfSOAPStruct"/>
+ </message>
+ <message name="echoStructArrayResponse">
+ <part name="return" type="s:ArrayOfSOAPStruct"/>
+ </message>
+ <message name="echoVoidRequest"/>
+ <message name="echoVoidResponse"/>
+ <message name="echoBase64Request">
+ <part name="inputBase64" type="xsd:base64Binary"/>
+ </message>
+ <message name="echoBase64Response">
+ <part name="return" type="xsd:base64Binary"/>
+ </message>
+ <message name="echoDateRequest">
+ <part name="inputDate" type="xsd:dateTime"/>
+ </message>
+ <message name="echoDateResponse">
+ <part name="return" type="xsd:dateTime"/>
+ </message>
+ <message name="echoHexBinaryRequest">
+ <part name="inputHexBinary" type="xsd:hexBinary"/>
+ </message>
+ <message name="echoHexBinaryResponse">
+ <part name="return" type="xsd:hexBinary"/>
+ </message>
+ <message name="echoDecimalRequest">
+ <part name="inputDecimal" type="xsd:decimal"/>
+ </message>
+ <message name="echoDecimalResponse">
+ <part name="return" type="xsd:decimal"/>
+ </message>
+ <message name="echoBooleanRequest">
+ <part name="inputBoolean" type="xsd:boolean"/>
+ </message>
+ <message name="echoBooleanResponse">
+ <part name="return" type="xsd:boolean"/>
+ </message>
+
+ <!-- messages for Round 2B tests -->
+ <!-- Copied from white mesa InteropTestB.wsdl -->
+ <message name="echoStructAsSimpleTypesRequest">
+ <part name="inputStruct" type="s:SOAPStruct"/>
+ </message>
+ <message name="echoStructAsSimpleTypesResponse">
+ <part name="outputString" type="xsd:string"/>
+ <part name="outputInteger" type="xsd:int"/>
+ <part name="outputFloat" type="xsd:float"/>
+ </message>
+ <message name="echoSimpleTypesAsStructRequest">
+ <part name="inputString" type="xsd:string"/>
+ <part name="inputInteger" type="xsd:int"/>
+ <part name="inputFloat" type="xsd:float"/>
+ </message>
+ <message name="echoSimpleTypesAsStructResponse">
+ <part name="return" type="s:SOAPStruct"/>
+ </message>
+ <message name="echo2DStringArrayRequest">
+ <part name="input2DStringArray" type="s:ArrayOfString2D"/>
+ </message>
+ <message name="echo2DStringArrayResponse">
+ <part name="return" type="s:ArrayOfString2D"/>
+ </message>
+ <message name="echoNestedStructRequest">
+ <part name="inputStruct" type="s:SOAPStructStruct"/>
+ </message>
+ <message name="echoNestedStructResponse">
+ <part name="return" type="s:SOAPStructStruct"/>
+ </message>
+ <message name="echoNestedArrayRequest">
+ <part name="inputStruct" type="s:SOAPArrayStruct"/>
+ </message>
+ <message name="echoNestedArrayResponse">
+ <part name="return" type="s:SOAPArrayStruct"/>
+ </message>
+
+ <message name="echoMapRequest">
+ <part name="input" type="xml-soap:Map"/>
+ </message>
+ <message name="echoMapResponse">
+ <part name="return" type="xml-soap:Map"/>
+ </message>
+
+ <message name="echoMapArrayRequest">
+ <part name="input" type="s:ArrayOfMap"/>
+ </message>
+ <message name="echoMapArrayResponse">
+ <part name="return" type="s:ArrayOfMap"/>
+ </message>
+
+ <message name="echoTokenRequest">
+ <part name="inputToken" type="xsd:token"/>
+ </message>
+ <message name="echoTokenResponse">
+ <part name="return" type="xsd:token"/>
+ </message>
+
+ <message name="echoNormalizedStringRequest">
+ <part name="inputNormalizedString" type="xsd:normalizedString"/>
+ </message>
+ <message name="echoNormalizedStringResponse">
+ <part name="return" type="xsd:normalizedString"/>
+ </message>
+
+ <message name="echoUnsignedLongRequest">
+ <part name="inputUnsignedLong" type="xsd:unsignedLong"/>
+ </message>
+ <message name="echoUnsignedLongResponse">
+ <part name="return" type="xsd:unsignedLong"/>
+ </message>
+
+ <message name="echoUnsignedIntRequest">
+ <part name="inputUnsignedInt" type="xsd:unsignedInt"/>
+ </message>
+ <message name="echoUnsignedIntResponse">
+ <part name="return" type="xsd:unsignedInt"/>
+ </message>
+
+ <message name="echoUnsignedShortRequest">
+ <part name="inputUnsignedShort" type="xsd:unsignedShort"/>
+ </message>
+ <message name="echoUnsignedShortResponse">
+ <part name="return" type="xsd:unsignedShort"/>
+ </message>
+
+ <message name="echoUnsignedByteRequest">
+ <part name="inputUnsignedByte" type="xsd:unsignedByte"/>
+ </message>
+ <message name="echoUnsignedByteResponse">
+ <part name="return" type="xsd:unsignedByte"/>
+ </message>
+
+ <message name="echoNonNegativeIntegerRequest">
+ <part name="inputNonNegativeInteger" type="xsd:nonNegativeInteger"/>
+ </message>
+ <message name="echoNonNegativeIntegerResponse">
+ <part name="return" type="xsd:nonNegativeInteger"/>
+ </message>
+
+ <message name="echoPositiveIntegerRequest">
+ <part name="inputPositiveInteger" type="xsd:positiveInteger"/>
+ </message>
+ <message name="echoPositiveIntegerResponse">
+ <part name="return" type="xsd:positiveInteger"/>
+ </message>
+
+ <message name="echoNonPositiveIntegerRequest">
+ <part name="inputNonPositiveInteger" type="xsd:nonPositiveInteger"/>
+ </message>
+ <message name="echoNonPositiveIntegerResponse">
+ <part name="return" type="xsd:nonPositiveInteger"/>
+ </message>
+
+ <message name="echoNegativeIntegerRequest">
+ <part name="inputNegativeInteger" type="xsd:negativeInteger"/>
+ </message>
+ <message name="echoNegativeIntegerResponse">
+ <part name="return" type="xsd:negativeInteger"/>
+ </message>
+
+ <portType name="InteropTestPortType">
+ <operation name="echoString" parameterOrder="inputString">
+ <input message="tns:echoStringRequest"/>
+ <output message="tns:echoStringResponse"/>
+ </operation>
+ <operation name="echoStringArray" parameterOrder="inputStringArray">
+ <input message="tns:echoStringArrayRequest"/>
+ <output message="tns:echoStringArrayResponse"/>
+ </operation>
+ <operation name="echoInteger" parameterOrder="inputInteger">
+ <input message="tns:echoIntegerRequest"/>
+ <output message="tns:echoIntegerResponse"/>
+ </operation>
+ <operation name="echoIntegerArray" parameterOrder="inputIntegerArray">
+ <input message="tns:echoIntegerArrayRequest"/>
+ <output message="tns:echoIntegerArrayResponse"/>
+ </operation>
+ <operation name="echoFloat" parameterOrder="inputFloat">
+ <input message="tns:echoFloatRequest"/>
+ <output message="tns:echoFloatResponse"/>
+ </operation>
+ <operation name="echoFloatArray" parameterOrder="inputFloatArray">
+ <input message="tns:echoFloatArrayRequest"/>
+ <output message="tns:echoFloatArrayResponse"/>
+ </operation>
+ <operation name="echoStruct" parameterOrder="inputStruct">
+ <input message="tns:echoStructRequest"/>
+ <output message="tns:echoStructResponse"/>
+ </operation>
+ <operation name="echoStructArray" parameterOrder="inputStructArray">
+ <input message="tns:echoStructArrayRequest"/>
+ <output message="tns:echoStructArrayResponse"/>
+ </operation>
+ <operation name="echoVoid">
+ <input message="tns:echoVoidRequest"/>
+ <output message="tns:echoVoidResponse"/>
+ </operation>
+ <operation name="echoBase64" parameterOrder="inputBase64">
+ <input message="tns:echoBase64Request"/>
+ <output message="tns:echoBase64Response"/>
+ </operation>
+ <operation name="echoDate" parameterOrder="inputDate">
+ <input message="tns:echoDateRequest"/>
+ <output message="tns:echoDateResponse"/>
+ </operation>
+ <operation name="echoHexBinary" parameterOrder="inputHexBinary">
+ <input message="tns:echoHexBinaryRequest"/>
+ <output message="tns:echoHexBinaryResponse"/>
+ </operation>
+ <operation name="echoDecimal" parameterOrder="inputDecimal">
+ <input message="tns:echoDecimalRequest"/>
+ <output message="tns:echoDecimalResponse"/>
+ </operation>
+ <operation name="echoBoolean" parameterOrder="inputBoolean">
+ <input message="tns:echoBooleanRequest"/>
+ <output message="tns:echoBooleanResponse"/>
+ </operation>
+
+ <!-- Round2B operations -->
+ <operation name="echoStructAsSimpleTypes" parameterOrder="inputStruct outputString outputInteger outputFloat">
+ <input message="tns:echoStructAsSimpleTypesRequest"/>
+ <output message="tns:echoStructAsSimpleTypesResponse"/>
+ </operation>
+ <operation name="echoSimpleTypesAsStruct" parameterOrder="inputString inputInteger inputFloat">
+ <input message="tns:echoSimpleTypesAsStructRequest"/>
+ <output message="tns:echoSimpleTypesAsStructResponse"/>
+ </operation>
+ <operation name="echo2DStringArray" parameterOrder="input2DStringArray">
+ <input message="tns:echo2DStringArrayRequest"/>
+ <output message="tns:echo2DStringArrayResponse"/>
+ </operation>
+ <operation name="echoNestedStruct" parameterOrder="inputStruct">
+ <input message="tns:echoNestedStructRequest"/>
+ <output message="tns:echoNestedStructResponse"/>
+ </operation>
+ <operation name="echoNestedArray" parameterOrder="inputStruct">
+ <input message="tns:echoNestedArrayRequest"/>
+ <output message="tns:echoNestedArrayResponse"/>
+ </operation>
+
+
+ <operation name="echoMap" parameterOrder="input">
+ <input message="tns:echoMapRequest"/>
+ <output message="tns:echoMapResponse"/>
+ </operation>
+ <operation name="echoMapArray" parameterOrder="input">
+ <input message="tns:echoMapArrayRequest"/>
+ <output message="tns:echoMapArrayResponse"/>
+ </operation>
+
+ <operation name="echoToken">
+ <input message="tns:echoTokenRequest"/>
+ <output message="tns:echoTokenResponse"/>
+ </operation>
+
+ <operation name="echoNormalizedString">
+ <input message="tns:echoNormalizedStringRequest"/>
+ <output message="tns:echoNormalizedStringResponse"/>
+ </operation>
+
+ <operation name="echoUnsignedLong">
+ <input message="tns:echoUnsignedLongRequest"/>
+ <output message="tns:echoUnsignedLongResponse"/>
+ </operation>
+ <operation name="echoUnsignedInt">
+ <input message="tns:echoUnsignedIntRequest"/>
+ <output message="tns:echoUnsignedIntResponse"/>
+ </operation>
+ <operation name="echoUnsignedShort">
+ <input message="tns:echoUnsignedShortRequest"/>
+ <output message="tns:echoUnsignedShortResponse"/>
+ </operation>
+ <operation name="echoUnsignedByte">
+ <input message="tns:echoUnsignedByteRequest"/>
+ <output message="tns:echoUnsignedByteResponse"/>
+ </operation>
+ <operation name="echoNonNegativeInteger">
+ <input message="tns:echoNonNegativeIntegerRequest"/>
+ <output message="tns:echoNonNegativeIntegerResponse"/>
+ </operation>
+ <operation name="echoPositiveInteger">
+ <input message="tns:echoPositiveIntegerRequest"/>
+ <output message="tns:echoPositiveIntegerResponse"/>
+ </operation>
+ <operation name="echoNonPositiveInteger">
+ <input message="tns:echoNonPositiveIntegerRequest"/>
+ <output message="tns:echoNonPositiveIntegerResponse"/>
+ </operation>
+ <operation name="echoNegativeInteger">
+ <input message="tns:echoNegativeIntegerRequest"/>
+ <output message="tns:echoNegativeIntegerResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="InteropTestSoapBinding" type="tns:InteropTestPortType">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoString">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoInteger">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoIntegerArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoFloat">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoFloatArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoStruct">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoStructArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoVoid">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoBase64">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoDate">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoHexBinary">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoDecimal">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoBoolean">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <!-- Round2B Binding operations -->
+ <operation name="echoStructAsSimpleTypes">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoSimpleTypesAsStruct">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echo2DStringArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoNestedStruct">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoNestedArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="echoMap">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoMapArray">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="echoToken">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="echoNormalizedString">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+
+ <operation name="echoUnsignedLong">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoUnsignedInt">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoUnsignedShort">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoUnsignedByte">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoNonNegativeInteger">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoPositiveInteger">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoNonPositiveInteger">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ <operation name="echoNegativeInteger">
+ <soap:operation soapAction="http://soapinterop.org/"/>
+ <input>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </input>
+ <output>
+ <soap:body use="encoded" namespace="http://soapinterop.org/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
+ </output>
+ </operation>
+ </binding>
+
+ <!-- Service Description for Axis -->
+ <service name="InteropTestService">
+
+ <port binding="tns:InteropTestSoapBinding" name="echo">
+
+ <soap:address location="http://nagoya.apache.org:5049/axis/services/echo"/>
+
+ </port>
+ </service>
+
+</definitions>
Added: webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTestDocLit2.wsdl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTestDocLit2.wsdl?rev=392916&view=auto
==============================================================================
--- webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTestDocLit2.wsdl (added)
+++ webservices/axis2/trunk/java/modules/xmlbeans/test-resources/InteropTestDocLit2.wsdl Mon Apr 10 03:42:36 2006
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name="WSDLInteropTestDocLitService"
+ targetNamespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:tns="http://soapinterop.org/WSDLInteropTestDocLit"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsd1="http://soapinterop.org/xsd"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <types>
+ <schema targetNamespace="http://soapinterop.org/xsd"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ elementFormDefault="qualified">
+ <complexType name="ArrayOfstring_literal">
+ <sequence>
+ <element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="SOAPStruct">
+ <all>
+ <element name="varFloat" type="xsd:float"/>
+ <element name="varInt" type="xsd:int"/>
+ <element name="varString" type="xsd:string"/>
+ </all>
+ </complexType>
+
+ <element name="echoStringParam" type="xsd:string"/>
+
+ <element name="echoStringReturn" type="xsd:string"/>
+ <element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/>
+
+ <element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/>
+
+ <element name="echoStructParam" type="xsd1:SOAPStruct"/>
+
+ <element name="echoStructReturn" type="xsd1:SOAPStruct"/>
+ </schema>
+ </types>
+ <message name="echoString">
+ <part element="xsd1:echoStringParam" name="a"/>
+ </message>
+ <message name="echoStringResponse">
+ <part element="xsd1:echoStringReturn" name="result"/>
+ </message>
+ <message name="echoStringArray">
+ <part element="xsd1:echoStringArrayParam" name="a"/>
+ </message>
+ <message name="echoStringArrayResponse">
+ <part element="xsd1:echoStringArrayReturn" name="result"/>
+ </message>
+ <message name="echoStruct">
+ <part element="xsd1:echoStructParam" name="a"/>
+ </message>
+ <message name="echoStructResponse">
+ <part element="xsd1:echoStructReturn" name="result"/>
+ </message>
+ <message name="echoVoid"/>
+ <message name="echoVoidResponse"/>
+
+ <portType name="WSDLInteropTestDocLitPortType">
+ <operation name="echoString">
+ <input message="tns:echoString" name="echoString"/>
+ <output message="tns:echoStringResponse" name="echoStringResponse"/>
+ </operation>
+ <operation name="echoStringArray">
+ <input message="tns:echoStringArray" name="echoStringArray"/>
+ <output message="tns:echoStringArrayResponse" name="echoStringArrayResponse"/>
+ </operation>
+ <operation name="echoStruct">
+ <input message="tns:echoStruct" name="echoStruct"/>
+ <output message="tns:echoStructResponse" name="echoStructResponse"/>
+ </operation>
+ <operation name="echoVoid">
+ <input message="tns:echoVoid" name="echoVoid"/>
+ <output message="tns:echoVoidResponse" name="echoVoidResponse"/>
+ </operation>
+ </portType>
+ <binding name="WSDLInteropTestDocLitPortBinding"
+ type="tns:WSDLInteropTestDocLitPortType">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echoString">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoString">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStringResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoStringArray">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoStringArray">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStringArrayResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoStruct">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoStruct">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoStructResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ <operation name="echoVoid">
+ <soap:operation soapAction="http://soapinterop.org/" style="document"/>
+ <input name="echoVoid">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </input>
+ <output name="echoVoidResponse">
+ <soap:body namespace="http://soapinterop.org/WSDLInteropTestDocLit"
+ use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="WSDLInteropTestDocLitService">
+ <port binding="tns:WSDLInteropTestDocLitPortBinding"
+ name="WSDLInteropTestDocLitPort">
+ <soap:address
+ location="http://mssoapinterop.org/stkv3/wsdl/interopTestDocLit.wsdl"/>
+ </port>
+ </service>
+</definitions>