You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2012/10/16 22:27:13 UTC

svn commit: r1398978 - in /axis/axis1/java/branches/AXIS-1984: axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/ maven/maven-wsdl2java-plugin/src/it/wsrf/ maven/maven-wsdl2java-plugin/src/it/wsrf/src/ maven/maven-wsdl2java-plugin/src/it/wsrf...

Author: veithen
Date: Tue Oct 16 20:27:13 2012
New Revision: 1398978

URL: http://svn.apache.org/viewvc?rev=1398978&view=rev
Log:
Finalized the XML catalog support for maven-wsdl2java-plugin.

Added:
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml   (with props)
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/addressing.xsd
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml   (with props)
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01-impl.wsdl
      - copied unchanged from r1398907, axis/axis1/java/branches/AXIS-1984/test/wsdl/wsrf/wsrf-WS-ResourceProperties-1.2-draft-01-impl.wsdl
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/xml.xsd
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/verify.bsh
Removed:
    axis/axis1/java/branches/AXIS-1984/test/wsdl/wsrf/
Modified:
    axis/axis1/java/branches/AXIS-1984/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/SymbolTable.java
    axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java

Modified: axis/axis1/java/branches/AXIS-1984/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/SymbolTable.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/SymbolTable.java?rev=1398978&r1=1398977&r2=1398978&view=diff
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/SymbolTable.java (original)
+++ axis/axis1/java/branches/AXIS-1984/axis-rt-core/src/main/java/org/apache/axis/wsdl/symbolTable/SymbolTable.java Tue Oct 16 20:27:13 2012
@@ -28,6 +28,7 @@ import org.w3c.dom.NamedNodeMap;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
 import org.xml.sax.EntityResolver;
+import org.xml.sax.InputSource;
 import org.xml.sax.SAXException;
 
 import javax.wsdl.Binding;
@@ -708,6 +709,17 @@ public class SymbolTable {
         }
     }                // checkForUndefined
 
+    private Document newDocument(String systemId) throws SAXException, IOException, ParserConfigurationException {
+        InputSource is = null;
+        if (entityResolver != null) {
+            is = entityResolver.resolveEntity(null, systemId);
+        }
+        if (is == null) {
+            is = new InputSource(systemId);
+        }
+        return XMLUtils.newDocument(is);
+    }
+    
     /**
      * Add the given Definition and Document information to the symbol table (including imported
      * symbols), populating it with SymTabEntries for each of the top-level symbols.
@@ -765,7 +777,7 @@ public class SymbolTable {
                             URL url = getURL(context, imp.getLocationURI());
 
                             populate(url, imp.getDefinition(),
-                                    XMLUtils.newDocument(url.toString()),
+                                    newDocument(url.toString()),
                                     url.toString());
                         }
                     }
@@ -889,7 +901,7 @@ public class SymbolTable {
 
                         String filename = url.toString();
 
-                        populate(url, null, XMLUtils.newDocument(filename),
+                        populate(url, null, newDocument(filename),
                                 filename);
                     }
                 }
@@ -1099,7 +1111,7 @@ public class SymbolTable {
 
                 if (includeName != null) {
                     URL url = getURL(context, includeName);
-                    Document includeDoc = XMLUtils.newDocument(url.toString());
+                    Document includeDoc = newDocument(url.toString());
 
                     // Vidyanand : Fix for Bug #15124
                     org.w3c.dom.Element schemaEl =

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml Tue Oct 16 20:27:13 2012
@@ -0,0 +1,76 @@
+<?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.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>test</groupId>
+    <artifactId>wsrf</artifactId>
+    <version>1</version>
+    <dependencies>
+        <dependency>
+            <groupId>@project.groupId@</groupId>
+            <artifactId>axis-rt-core</artifactId>
+            <version>@project.version@</version>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>@project.groupId@</groupId>
+                <artifactId>maven-wsdl2java-plugin</artifactId>
+                <version>@project.version@</version>
+                <executions>
+                    <execution>
+                        <id>gen-sources</id>
+                        <goals>
+                            <goal>generate-sources</goal>
+                        </goals>
+                        <configuration>
+                            <file>src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01-impl.wsdl</file>
+                            <catalog>src/main/wsdl/catalog.xml</catalog>
+                            <generate>client</generate>
+                            <mappings>
+                                <mapping>
+                                    <namespace>http://www.tempuri.org</namespace>
+                                    <package>test.wsdl.wsrf</package>
+                                </mapping>
+                                <mapping>
+                                    <namespace>http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl</namespace>
+                                    <package>test.wsdl.wsrf.draft</package>
+                                </mapping>
+                                <mapping>
+                                    <namespace>http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd</namespace>
+                                    <package>test.wsdl.wsrf.draft</package>
+                                </mapping>
+                                <mapping>
+                                    <namespace>http://schemas.xmlsoap.org/ws/2003/03/addressing</namespace>
+                                    <package>test.wsdl.wsrf.addressing</package>
+                                </mapping>
+                                <mapping>
+                                    <namespace>http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd</namespace>
+                                    <package>test.wsdl.wsrf.draft</package>
+                                </mapping>
+                            </mappings>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Propchange: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/addressing.xsd
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/addressing.xsd?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/addressing.xsd (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/addressing.xsd Tue Oct 16 20:27:13 2012
@@ -0,0 +1,112 @@
+<?xml version="1.0"?>
+<!-- 
+ 
+Legal Disclaimer
+
+The presentation, distribution or other dissemination of the information 
+contained in this document is not a license, either expressly or impliedly, 
+to any intellectual property owned or controlled by BEA or IBM or Microsoft
+and\or any other third party.  BEA and IBM and Microsoft and\or any other
+third party may have patents, patent applications, trademarks, copyrights, 
+or other intellectual property rights covering subject matter in this 
+document.  The furnishing of this document does not give you any license 
+to BEA's and IBM's and Microsoft's or any other third party's patents, 
+trademarks, copyrights, or other intellectual property.
+
+This document and the information contained herein is provided on an "AS IS"
+basis and to the maximum extent permitted by applicable law, BEA and IBM 
+and Microsoft provide the document AS IS AND WITH ALL FAULTS, and hereby 
+disclaims all other warranties and conditions, either express, implied or 
+statutory, including, but not limited to, any (if any) implied warranties, 
+duties or conditions of merchantability, of fitness for a particular 
+purpose, of accuracy or completeness of responses, of results, of 
+workmanlike effort, of lack of viruses, and of lack of negligence, all with
+regard to the document. ALSO, THERE IS NO WARRANTY OR CONDITION OF 
+TITLE, QUIET ENJOYMENT, QUIET POSSESSION, CORRESPONDENCE TO DESCRIPTION OR 
+NON-INFRINGEMENT OF ANY INTELLECTUAL PROPERTY RIGHTS WITH REGARD TO THE 
+DOCUMENT.
+
+IN NO EVENT WILL BEA or IBM or MICROSOFT BE LIABLE TO ANY OTHER PARTY FOR THE
+COST OF PROCURING SUBSTITUTE GOODS OR SERVICES, LOST PROFITS, LOSS OF USE, 
+LOSS OF DATA, OR ANY INCIDENTAL, CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL 
+DAMAGES WHETHER UNDER CONTRACT, TORT, WARRANTY, OR OTHERWISE, ARISING IN ANY 
+WAY OUT OF THIS OR ANY OTHER AGREEMENT RELATING TO THIS DOCUMENT, WHETHER OR 
+NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES.
+
+Copyright Notice
+
+Copyright 2003 BEA Systems Inc. and IBM Corporation and Microsoft Corporation. All rights reserved.
+
+-->
+<xs:schema targetNamespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" blockDefault="#all">
+
+   <!-- //////////////////// WS-Addressing //////////////////// -->
+	<!-- Endpoint reference -->
+	<xs:element name="EndpointReference" type="wsa:EndpointReferenceType"/>
+	<xs:complexType name="EndpointReferenceType">
+		<xs:sequence>
+			<xs:element name="Address" type="wsa:AttributedURI"/>
+			<xs:element name="ReferenceProperties" type="wsa:ReferencePropertiesType" minOccurs="0"/>
+			<xs:element name="PortType" type="wsa:AttributedQName" minOccurs="0"/>
+			<xs:element name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/>
+			<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded">
+				<xs:annotation>
+					<xs:documentation>
+					 If "Policy" elements from namespace "http://schemas.xmlsoap.org/ws/2002/12/policy#policy" are used, they must appear first (before any extensibility elements).
+					</xs:documentation>
+				</xs:annotation>
+                        </xs:any>			
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax"/>
+	</xs:complexType>
+	<xs:complexType name="ReferencePropertiesType">
+		<xs:sequence>
+			<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="ServiceNameType">
+		<xs:simpleContent>
+			<xs:extension base="xs:QName">
+				<xs:attribute name="PortName" type="xs:NCName"/>
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	<!-- Message information header blocks -->
+	<xs:element name="MessageID" type="wsa:AttributedURI"/>
+	<xs:element name="RelatesTo" type="wsa:Relationship"/>
+	<xs:element name="To" type="wsa:AttributedURI"/>
+	<xs:element name="Action" type="wsa:AttributedURI"/>
+	<xs:element name="From" type="wsa:EndpointReferenceType"/>
+	<xs:element name="ReplyTo" type="wsa:EndpointReferenceType"/>
+	<xs:element name="FaultTo" type="wsa:EndpointReferenceType"/>
+	<xs:element name="Recipient" type="wsa:EndpointReferenceType"/>
+	<xs:complexType name="Relationship">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+				<xs:attribute name="RelationshipType" type="xs:QName" use="optional"/>
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	<xs:simpleType name="RelationshipTypeValues">
+		<xs:restriction base="xs:QName">
+			<xs:enumeration value="wsa:Response"/>
+		</xs:restriction>
+	</xs:simpleType>
+	<!-- Common declarations and definitions -->
+	<xs:complexType name="AttributedQName">
+		<xs:simpleContent>
+			<xs:extension base="xs:QName">
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+	<xs:complexType name="AttributedURI">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+				<xs:anyAttribute namespace="##other" processContents="lax"/>
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+</xs:schema>
\ No newline at end of file

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml Tue Oct 16 20:27:13 2012
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
+    <system systemId="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" uri="wsrf-WS-BaseFaults-1.2-draft-01.xsd"/>
+    <system systemId="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" uri="wsrf-WS-ResourceProperties-1.2-draft-01.wsdl"/>
+    <system systemId="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" uri="wsrf-WS-ResourceProperties-1.2-draft-01.xsd"/>
+    <system systemId="http://schemas.xmlsoap.org/ws/2003/03/addressing" uri="addressing.xsd"/>
+    <system systemId="http://www.w3.org/2001/xml.xsd" uri="xml.xsd"/>
+</catalog>

Propchange: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/catalog.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-BaseFaults-1.2-draft-01.xsd Tue Oct 16 20:27:13 2012
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+   OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director. 
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director. 
+
+Copyright (C) OASIS Open (2004). All Rights Reserved. 
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 
+-->
+
+<xsd:schema 
+  xmlns="http://www.w3.org/2001/XMLSchema" 
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing"
+  xmlns:wsbf=
+    "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" 
+  elementFormDefault="qualified" attributeFormDefault="unqualified" 
+  targetNamespace=
+    "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd">
+  <xsd:import
+     namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" 
+     schemaLocation=
+              "http://schemas.xmlsoap.org/ws/2003/03/addressing" />
+              
+  <xsd:import namespace="http://www.w3.org/XML/1998/namespace" 
+              schemaLocation="http://www.w3.org/2001/xml.xsd">
+    <xsd:annotation>
+      <xsd:documentation>
+        Get access to the xml: attribute groups for xml:lang as declared on 'schema'
+        and 'documentation' below
+      </xsd:documentation> 
+    </xsd:annotation>
+  </xsd:import>
+<!-- ====================== BaseFault Types ======================= -->
+      
+  <xsd:element name="BaseFault" type="wsbf:BaseFaultType"/>
+  
+  <xsd:complexType name="BaseFaultType">
+    <xsd:sequence>
+      <xsd:element name="Timestamp" type="xsd:dateTime" 
+               minOccurs="1" maxOccurs="1"/>
+      <xsd:element name="Originator" type="wsa:EndpointReferenceType" 
+               minOccurs="0" maxOccurs="1"/>
+      <xsd:element name="ErrorCode" 
+               minOccurs="0" maxOccurs="1">
+        <xsd:complexType>
+          <xsd:complexContent mixed="true">
+            <xsd:extension base="xsd:anyType">
+              <xsd:attribute name="dialect" type="xsd:anyURI"
+                         use="required"/>
+            </xsd:extension>
+          </xsd:complexContent>
+        </xsd:complexType>      
+      </xsd:element>
+
+      <xsd:element name="Description" 
+               minOccurs="0" maxOccurs="unbounded">
+        <xsd:complexType>
+          <xsd:simpleContent>
+            <xsd:extension base="xsd:string">
+              <xsd:attribute ref="xml:lang" use="optional"/>
+            </xsd:extension>
+          </xsd:simpleContent>
+        </xsd:complexType>
+      </xsd:element>
+
+      <xsd:element name="FaultCause" type="wsbf:BaseFaultType" 
+               minOccurs="0" maxOccurs="unbounded"/> 
+   </xsd:sequence>
+ </xsd:complexType>
+</xsd:schema>

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl Tue Oct 16 20:27:13 2012
@@ -0,0 +1,393 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 
+
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+
+Copyright (C) OASIS Open (2004). All Rights Reserved.
+
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English. 
+
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns. 
+
+This document and the information contained herein is provided on an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+
+-->
+
+<wsdl:definitions name="WS-ResourceProperties"
+  xmlns="http://schemas.xmlsoap.org/wsdl/" 
+  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+  xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" 
+  xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+  xmlns:wsbf=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
+  xmlns:wsrp=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd" 
+  xmlns:wsrpw=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" 
+  targetNamespace=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl" 
+>
+  
+<!-- ===================== Types Definitions ====================== -->
+   <wsdl:types>
+     <xsd:schema 
+        xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
+        targetNamespace=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
+        elementFormDefault="qualified" 
+        attributeFormDefault="unqualified">
+
+       <xsd:include schemaLocation=
+ "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd"
+       /> 
+       
+       <xsd:import 
+            namespace=
+            "http://schemas.xmlsoap.org/ws/2003/03/addressing"
+            schemaLocation=
+            "http://schemas.xmlsoap.org/ws/2003/03/addressing" 
+       />
+       
+       <xsd:import 
+          namespace=
+       "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd"
+          schemaLocation=
+  "http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd" 
+       />
+       
+<!-- ========== Message Types for GetResourceProperty  ============ -->
+       
+       <xsd:element name="GetResourceProperty" 
+                    type="xsd:QName" />
+
+       <xsd:element name="GetResourcePropertyResponse" >
+         <xsd:complexType>
+           <xsd:sequence>
+             <xsd:any  minOccurs="0" maxOccurs="unbounded" />
+           </xsd:sequence>
+         </xsd:complexType>
+       </xsd:element>
+
+      <xsd:complexType name="ResourceUnknownFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="ResourceUnknownFault" 
+                   type="wsrp:ResourceUnknownFaultType"/>
+
+      <xsd:complexType name="InvalidResourcePropertyQNameFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="InvalidResourcePropertyQNameFault" 
+                   type="wsrp:InvalidResourcePropertyQNameFaultType"/>
+
+
+<!-- ====== Message Types for GetMultipleResourceProperties ======= -->       
+       <xsd:element name="GetMultipleResourceProperties">
+         <xsd:complexType>
+           <xsd:sequence>
+             <xsd:element name="ResourceProperty" type="xsd:QName" 
+                          minOccurs="1" maxOccurs="unbounded" />
+           </xsd:sequence>
+         </xsd:complexType>
+       </xsd:element>
+ 
+       <xsd:element name="GetMultipleResourcePropertiesResponse">
+         <xsd:complexType>
+           <xsd:sequence>
+             <xsd:any  minOccurs="0" maxOccurs="unbounded" />
+           </xsd:sequence>
+         </xsd:complexType>
+       </xsd:element>
+
+<!-- ========= Message Types for SetResourceProperties =========== -->
+                   
+       <xsd:complexType name="InsertType">
+         <xsd:sequence>
+           <xsd:any processContents="lax"
+                    minOccurs="1" maxOccurs="unbounded" />
+         </xsd:sequence>
+       </xsd:complexType>
+       <xsd:element name="Insert" 
+                    type="wsrp:InsertType"/>
+         
+       <xsd:complexType name="UpdateType">
+         <xsd:sequence>
+           <xsd:any processContents="lax"
+                    minOccurs="1" maxOccurs="unbounded" />
+         </xsd:sequence>
+       </xsd:complexType>
+       <xsd:element name="Update" 
+                    type="wsrp:UpdateType"/>
+         
+       <xsd:complexType name="DeleteType">
+         <xsd:attribute name="ResourceProperty" 
+                        type="xsd:QName" use="required" />
+       </xsd:complexType>
+       <xsd:element name="Delete" 
+                    type="wsrp:DeleteType"/>
+        
+       <xsd:element name="SetResourceProperties">
+         <xsd:complexType>
+           <xsd:choice minOccurs="0" maxOccurs="unbounded">
+             <xsd:element ref="wsrp:Insert"/>
+             <xsd:element ref="wsrp:Update"/>
+             <xsd:element ref="wsrp:Delete"/>
+           </xsd:choice>
+         </xsd:complexType>
+       </xsd:element>
+
+      <xsd:element name="SetResourcePropertiesResponse" >
+         <xsd:complexType />
+      </xsd:element>
+
+      <xsd:complexType
+               name="InvalidSetResourcePropertiesRequestContentFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="InvalidSetResourcePropertiesRequestContentFault" 
+               type="wsrp:InvalidSetResourcePropertiesRequestContentFaultType"/>
+
+      <xsd:complexType name="UnableToModifyResourcePropertyFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="UnableToModifyResourcePropertyFault" 
+                   type="wsrp:UnableToModifyResourcePropertyFaultType"/>
+
+      <xsd:complexType name="SetResourcePropertyRequestFailedFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="SetResourcePropertyRequestFailedFault" 
+                   type="wsrp:SetResourcePropertyRequestFailedFaultType"/>
+
+
+<!-- ========= Message Types for QueryResourceProperties ========== -->         
+       
+       <xsd:element name="QueryResourceProperties" >
+         <xsd:complexType>
+           <xsd:sequence>
+             <xsd:element ref="wsrp:QueryExpression" 
+                          minOccurs="1" maxOccurs="1"/>
+           </xsd:sequence>
+         </xsd:complexType>
+       </xsd:element>
+ 
+       <xsd:element name="QueryResourcePropertiesResponse" >
+         <xsd:complexType>
+           <xsd:complexContent mixed="true">
+             <xsd:restriction base="xsd:anyType">
+               <xsd:sequence>
+                 <xsd:any processContents="lax" 
+                          minOccurs="1" maxOccurs="unbounded"/>
+               </xsd:sequence>
+             </xsd:restriction>
+           </xsd:complexContent>
+         </xsd:complexType>
+       </xsd:element>        
+
+      <xsd:complexType name="UnknownQueryExpressionDialectFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="UnknownQueryExpressionDialectFault" 
+                   type="wsrp:UnknownQueryExpressionDialectFaultType"/>
+
+      <xsd:complexType name="InvalidQueryExpressionFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="InvalidQueryExpressionFault" 
+                   type="wsrp:InvalidQueryExpressionFaultType"/>
+
+      <xsd:complexType name="QueryEvaluationErrorFaultType">
+         <xsd:complexContent>
+            <xsd:extension base="wsbf:BaseFaultType"/>
+         </xsd:complexContent>
+      </xsd:complexType>
+      <xsd:element name="QueryEvaluationErrorFault" 
+                   type="wsrp:QueryEvaluationErrorFaultType"/>
+
+
+     </xsd:schema>
+   </wsdl:types>
+   
+<!-- ===================== GetResourceProperty ==================== 
+  GetResourceProperty(QName)
+  returns: any
+-->
+  <wsdl:message name="GetResourcePropertyRequest">
+    <wsdl:part name="GetResourcePropertyRequest" 
+               element="wsrp:GetResourceProperty" />
+  </wsdl:message>
+  
+  <wsdl:message name="GetResourcePropertyResponse">
+    <wsdl:part name="GetResourcePropertyResponse" 
+               element="wsrp:GetResourcePropertyResponse" />
+  </wsdl:message>
+
+  <wsdl:message name="ResourceUnknownFault">
+     <part name="ResourceUnknownFault"
+           element="wsrp:ResourceUnknownFault" />
+  </wsdl:message> 
+
+  <wsdl:message name="InvalidResourcePropertyQNameFault">
+     <part name="InvalidResourcePropertyQNameFault"
+           element="wsrp:InvalidResourcePropertyQNameFault" />
+  </wsdl:message> 
+
+<!-- ==============GetMultipleResourceProperties ================== 
+  GetMultipleResourceProperties(list of QName)
+  returns: sequence of any
+-->
+  <wsdl:message name="GetMultipleResourcePropertiesRequest">
+    <wsdl:part name="GetMultipleResourcePropertiesRequest" 
+               element="wsrp:GetMultipleResourceProperties" />
+  </wsdl:message>
+  
+  <wsdl:message name="GetMultipleResourcePropertiesResponse">
+    <wsdl:part name="GetMultipleResourcePropertiesResponse" 
+               element="wsrp:GetMultipleResourcePropertiesResponse" />
+  </wsdl:message>
+
+<!-- ================= SetResourceProperties ====================== 
+  SetResourceProperties(
+  { insert (any)* |
+    update (any)* |
+    delete@QName } + 
+  )
+  returns: empty
+-->
+  <wsdl:message name="SetResourcePropertiesRequest">
+    <wsdl:part name="SetResourcePropertiesRequest" 
+               element="wsrp:SetResourceProperties" />
+  </wsdl:message>
+  
+  <wsdl:message name="SetResourcePropertiesResponse">
+    <wsdl:part name="SetResourcePropertiesResponse" 
+               element="wsrp:SetResourcePropertiesResponse" />
+  </wsdl:message>
+  
+  <wsdl:message name="InvalidSetResourcePropertiesRequestContentFault">
+     <part name="InvalidSetResourcePropertiesRequestContentFault"
+           element="wsrp:InvalidSetResourcePropertiesRequestContentFault" />
+  </wsdl:message> 
+
+  <wsdl:message name="UnableToModifyResourcePropertyFault">
+     <part name="UnableToModifyResourcePropertyFault"
+           element="wsrp:UnableToModifyResourcePropertyFault" />
+  </wsdl:message> 
+
+  <wsdl:message name="SetResourcePropertyRequestFailedFault">
+     <part name="SetResourcePropertyRequestFailedFault"
+           element="wsrp:SetResourcePropertyRequestFailedFault" />
+  </wsdl:message> 
+
+<!-- ================ QueryResourceProperties ===================== 
+  QueryResourceProperties(QueryExpression)
+  returns: any
+-->
+  <wsdl:message name="QueryResourcePropertiesRequest">
+    <wsdl:part name="QueryResourcePropertiesRequest" 
+               element="wsrp:QueryResourceProperties" />
+  </wsdl:message>
+  
+  <wsdl:message name="QueryResourcePropertiesResponse">
+    <wsdl:part name="QueryResourcePropertiesResponse" 
+               element="wsrp:QueryResourcePropertiesResponse" />
+  </wsdl:message>
+
+  <wsdl:message name="UnknownQueryExpressionDialectFault">
+     <part name="UnknownQueryExpressionDialectFault"
+           element="wsrp:UnknownQueryExpressionDialectFault" />
+  </wsdl:message> 
+
+  <wsdl:message name="InvalidQueryExpressionFault">
+     <part name="InvalidQueryExpressionFault"
+           element="wsrp:InvalidQueryExpressionFault" />
+  </wsdl:message> 
+
+  <wsdl:message name="QueryEvaluationErrorFault">
+     <part name="QueryEvaluationErrorFault"
+           element="wsrp:QueryEvaluationErrorFault" />
+  </wsdl:message> 
+
+<!-- =================== PortType Definitions ===================== -->
+  <wsdl:portType name="GetResourceProperty">  
+    <wsdl:operation name="GetResourceProperty">
+      <wsdl:input  name="GetResourcePropertyRequest" 
+                   message="wsrpw:GetResourcePropertyRequest" />
+      <wsdl:output name="GetResourcePropertyResponse" 
+                   message="wsrpw:GetResourcePropertyResponse" />
+      <wsdl:fault  name="ResourceUnknownFault" 
+                   message="wsrpw:ResourceUnknownFault" />
+      <wsdl:fault  name="InvalidResourcePropertyQNameFault" 
+                   message="wsrpw:InvalidResourcePropertyQNameFault" />     
+    </wsdl:operation>
+  </wsdl:portType>
+  
+  <wsdl:portType name="GetMultipleResourceProperties">
+    <wsdl:operation name="GetMultipleResourceProperties">
+      <wsdl:input  name="GetMultipleResourcePropertiesRequest" 
+                   message="wsrpw:GetMultipleResourcePropertiesRequest" />
+      <wsdl:output name="GetMultipleResourcePropertiesResponse" 
+                   message="wsrpw:GetMultipleResourcePropertiesResponse" />
+      <wsdl:fault  name="ResourceUnknownFault" 
+                   message="wsrpw:ResourceUnknownFault" />
+      <wsdl:fault  name="InvalidResourcePropertyQNameFault" 
+                   message="wsrpw:InvalidResourcePropertyQNameFault" />     
+    </wsdl:operation>
+  </wsdl:portType>
+
+  <wsdl:portType name="SetResourceProperties"> 
+    <wsdl:operation name="SetResourceProperties">
+      <wsdl:input  name="SetResourcePropertiesRequest" 
+                   message="wsrpw:SetResourcePropertiesRequest" />
+      <wsdl:output name="SetResourcePropertiesResponse" 
+                   message="wsrpw:SetResourcePropertiesResponse" />
+      <wsdl:fault  name="ResourceUnknownFault" 
+                   message="wsrpw:ResourceUnknownFault" />
+      <wsdl:fault  name="InvalidSetResourcePropertiesRequestContentFault" 
+               message="wsrpw:InvalidSetResourcePropertiesRequestContentFault" />     
+      <wsdl:fault  name="UnableToModifyResourcePropertyFault" 
+                   message="wsrpw:UnableToModifyResourcePropertyFault" />
+      <wsdl:fault  name="InvalidResourcePropertyQNameFault" 
+                   message="wsrpw:InvalidResourcePropertyQNameFault" />     
+      <wsdl:fault  name="SetResourcePropertyRequestFailedFault" 
+                   message="wsrpw:SetResourcePropertyRequestFailedFault" />
+    </wsdl:operation>
+  </wsdl:portType>
+  
+  <wsdl:portType name="QueryResourceProperties">
+    <wsdl:operation name="QueryResourceProperties">
+      <wsdl:input  name="QueryResourcePropertiesRequest" 
+                   message="wsrpw:QueryResourcePropertiesRequest" />
+      <wsdl:output name="QueryResourcePropertiesResponse" 
+                   message="wsrpw:QueryResourcePropertiesResponse" />
+      <wsdl:fault  name="ResourceUnknownFault" 
+                   message="wsrpw:ResourceUnknownFault" />
+      <wsdl:fault  name="InvalidResourcePropertyQNameFault" 
+                   message="wsrpw:InvalidResourcePropertyQNameFault" />     
+      <wsdl:fault  name="UnknownQueryExpressionDialectFault" 
+                   message="wsrpw:UnknownQueryExpressionDialectFault" />
+      <wsdl:fault  name="InvalidQueryExpressionFault" 
+                   message="wsrpw:InvalidQueryExpressionFault" />
+      <wsdl:fault  name="QueryEvaluationErrorFault" 
+                   message="wsrpw:QueryEvaluationErrorFault" />
+    </wsdl:operation>
+
+  </wsdl:portType>
+
+</wsdl:definitions>

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/xml.xsd
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/xml.xsd?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/xml.xsd (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/src/main/wsdl/xml.xsd Tue Oct 16 20:27:13 2012
@@ -0,0 +1,287 @@
+<?xml version='1.0'?>
+<?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" 
+  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+  xmlns   ="http://www.w3.org/1999/xhtml"
+  xml:lang="en">
+
+ <xs:annotation>
+  <xs:documentation>
+   <div>
+    <h1>About the XML namespace</h1>
+
+    <div class="bodytext">
+     <p>
+      This schema document describes the XML namespace, in a form
+      suitable for import by other schema documents.
+     </p>
+     <p>
+      See <a href="http://www.w3.org/XML/1998/namespace.html">
+      http://www.w3.org/XML/1998/namespace.html</a> and
+      <a href="http://www.w3.org/TR/REC-xml">
+      http://www.w3.org/TR/REC-xml</a> for information 
+      about this namespace.
+     </p>
+     <p>
+      Note that local names in this namespace are intended to be
+      defined only by the World Wide Web Consortium or its subgroups.
+      The names currently defined in this namespace are listed below.
+      They should not be used with conflicting semantics by any Working
+      Group, specification, or document instance.
+     </p>
+     <p>   
+      See further below in this document for more information about <a
+      href="#usage">how to refer to this schema document from your own
+      XSD schema documents</a> and about <a href="#nsversioning">the
+      namespace-versioning policy governing this schema document</a>.
+     </p>
+    </div>
+   </div>
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:attribute name="lang">
+  <xs:annotation>
+   <xs:documentation>
+    <div>
+     
+      <h3>lang (as an attribute name)</h3>
+      <p>
+       denotes an attribute whose value
+       is a language code for the natural language of the content of
+       any element; its value is inherited.  This name is reserved
+       by virtue of its definition in the XML specification.</p>
+     
+    </div>
+    <div>
+     <h4>Notes</h4>
+     <p>
+      Attempting to install the relevant ISO 2- and 3-letter
+      codes as the enumerated possible values is probably never
+      going to be a realistic possibility.  
+     </p>
+     <p>
+      See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
+       http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
+      and the IANA language subtag registry at
+      <a href="http://www.iana.org/assignments/language-subtag-registry">
+       http://www.iana.org/assignments/language-subtag-registry</a>
+      for further information.
+     </p>
+     <p>
+      The union allows for the 'un-declaration' of xml:lang with
+      the empty string.
+     </p>
+    </div>
+   </xs:documentation>
+  </xs:annotation>
+  <xs:simpleType>
+   <xs:union memberTypes="xs:language">
+    <xs:simpleType>    
+     <xs:restriction base="xs:string">
+      <xs:enumeration value=""/>
+     </xs:restriction>
+    </xs:simpleType>
+   </xs:union>
+  </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="space">
+  <xs:annotation>
+   <xs:documentation>
+    <div>
+     
+      <h3>space (as an attribute name)</h3>
+      <p>
+       denotes an attribute whose
+       value is a keyword indicating what whitespace processing
+       discipline is intended for the content of the element; its
+       value is inherited.  This name is reserved by virtue of its
+       definition in the XML specification.</p>
+     
+    </div>
+   </xs:documentation>
+  </xs:annotation>
+  <xs:simpleType>
+   <xs:restriction base="xs:NCName">
+    <xs:enumeration value="default"/>
+    <xs:enumeration value="preserve"/>
+   </xs:restriction>
+  </xs:simpleType>
+ </xs:attribute>
+ 
+ <xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
+   <xs:documentation>
+    <div>
+     
+      <h3>base (as an attribute name)</h3>
+      <p>
+       denotes an attribute whose value
+       provides a URI to be used as the base for interpreting any
+       relative URIs in the scope of the element on which it
+       appears; its value is inherited.  This name is reserved
+       by virtue of its definition in the XML Base specification.</p>
+     
+     <p>
+      See <a
+      href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
+      for information about this attribute.
+     </p>
+    </div>
+   </xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+ 
+ <xs:attribute name="id" type="xs:ID">
+  <xs:annotation>
+   <xs:documentation>
+    <div>
+     
+      <h3>id (as an attribute name)</h3> 
+      <p>
+       denotes an attribute whose value
+       should be interpreted as if declared to be of type ID.
+       This name is reserved by virtue of its definition in the
+       xml:id specification.</p>
+     
+     <p>
+      See <a
+      href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+      for information about this attribute.
+     </p>
+    </div>
+   </xs:documentation>
+  </xs:annotation>
+ </xs:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+  <xs:attribute ref="xml:base"/>
+  <xs:attribute ref="xml:lang"/>
+  <xs:attribute ref="xml:space"/>
+  <xs:attribute ref="xml:id"/>
+ </xs:attributeGroup>
+
+ <xs:annotation>
+  <xs:documentation>
+   <div>
+   
+    <h3>Father (in any context at all)</h3> 
+
+    <div class="bodytext">
+     <p>
+      denotes Jon Bosak, the chair of 
+      the original XML Working Group.  This name is reserved by 
+      the following decision of the W3C XML Plenary and 
+      XML Coordination groups:
+     </p>
+     <blockquote>
+       <p>
+	In appreciation for his vision, leadership and
+	dedication the W3C XML Plenary on this 10th day of
+	February, 2000, reserves for Jon Bosak in perpetuity
+	the XML name "xml:Father".
+       </p>
+     </blockquote>
+    </div>
+   </div>
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>
+   <div xml:id="usage" id="usage">
+    <h2><a name="usage">About this schema document</a></h2>
+
+    <div class="bodytext">
+     <p>
+      This schema defines attributes and an attribute group suitable
+      for use by schemas wishing to allow <code>xml:base</code>,
+      <code>xml:lang</code>, <code>xml:space</code> or
+      <code>xml:id</code> attributes on elements they define.
+     </p>
+     <p>
+      To enable this, such a schema must import this schema for
+      the XML namespace, e.g. as follows:
+     </p>
+     <pre>
+          &lt;schema . . .>
+           . . .
+           &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+                      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+     </pre>
+     <p>
+      or
+     </p>
+     <pre>
+           &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+                      schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
+     </pre>
+     <p>
+      Subsequently, qualified reference to any of the attributes or the
+      group defined below will have the desired effect, e.g.
+     </p>
+     <pre>
+          &lt;type . . .>
+           . . .
+           &lt;attributeGroup ref="xml:specialAttrs"/>
+     </pre>
+     <p>
+      will define a type which will schema-validate an instance element
+      with any of those attributes.
+     </p>
+    </div>
+   </div>
+  </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+  <xs:documentation>
+   <div id="nsversioning" xml:id="nsversioning">
+    <h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
+    <div class="bodytext">
+     <p>
+      In keeping with the XML Schema WG's standard versioning
+      policy, this schema document will persist at
+      <a href="http://www.w3.org/2009/01/xml.xsd">
+       http://www.w3.org/2009/01/xml.xsd</a>.
+     </p>
+     <p>
+      At the date of issue it can also be found at
+      <a href="http://www.w3.org/2001/xml.xsd">
+       http://www.w3.org/2001/xml.xsd</a>.
+     </p>
+     <p>
+      The schema document at that URI may however change in the future,
+      in order to remain compatible with the latest version of XML
+      Schema itself, or with the XML namespace itself.  In other words,
+      if the XML Schema or XML namespaces change, the version of this
+      document at <a href="http://www.w3.org/2001/xml.xsd">
+       http://www.w3.org/2001/xml.xsd 
+      </a> 
+      will change accordingly; the version at 
+      <a href="http://www.w3.org/2009/01/xml.xsd">
+       http://www.w3.org/2009/01/xml.xsd 
+      </a> 
+      will not change.
+     </p>
+     <p>
+      Previous dated (and unchanging) versions of this schema 
+      document are at:
+     </p>
+     <ul>
+      <li><a href="http://www.w3.org/2009/01/xml.xsd">
+	http://www.w3.org/2009/01/xml.xsd</a></li>
+      <li><a href="http://www.w3.org/2007/08/xml.xsd">
+	http://www.w3.org/2007/08/xml.xsd</a></li>
+      <li><a href="http://www.w3.org/2004/10/xml.xsd">
+	http://www.w3.org/2004/10/xml.xsd</a></li>
+      <li><a href="http://www.w3.org/2001/03/xml.xsd">
+	http://www.w3.org/2001/03/xml.xsd</a></li>
+     </ul>
+    </div>
+   </div>
+  </xs:documentation>
+ </xs:annotation>
+
+</xs:schema>
+

Added: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/verify.bsh
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/verify.bsh?rev=1398978&view=auto
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/verify.bsh (added)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/it/wsrf/verify.bsh Tue Oct 16 20:27:13 2012
@@ -0,0 +1,5 @@
+import java.io.*;
+
+if (!new File(basedir, "target/generated-sources//wsdl2java/test/wsdl/wsrf/ResourceServiceLocator.java").exists()) {
+    throw new IllegalStateException("The build didn't generate the expected output file");
+}

Modified: axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java
URL: http://svn.apache.org/viewvc/axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java?rev=1398978&r1=1398977&r2=1398978&view=diff
==============================================================================
--- axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java (original)
+++ axis/axis1/java/branches/AXIS-1984/maven/maven-wsdl2java-plugin/src/main/java/org/apache/axis/tools/maven/wsdl2java/AbstractWsdl2JavaMojo.java Tue Oct 16 20:27:13 2012
@@ -32,6 +32,8 @@ import org.apache.maven.plugin.AbstractM
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.plugin.MojoFailureException;
 import org.apache.maven.project.MavenProject;
+import org.apache.xml.resolver.CatalogManager;
+import org.apache.xml.resolver.tools.CatalogResolver;
 
 import com.github.veithen.ulog.PlexusLoggerInjector;
 
@@ -68,6 +70,15 @@ public abstract class AbstractWsdl2JavaM
     private String url;
     
     /**
+     * The catalog file to resolve external entity references. This can be any type of catalog
+     * supported by <a
+     * href="http://xerces.apache.org/xml-commons/components/resolver/">xml-resolver</a>.
+     * 
+     * @parameter
+     */
+    private File catalog;
+    
+    /**
      * Determines the scope that will be specified for the service in the deployment WSDD. Valid
      * values are <code>application</code>, <code>request</code> and <code>session</code>. This
      * parameter has no effect if {@link #generate} is set to <code>client</code> or if
@@ -297,6 +308,12 @@ public abstract class AbstractWsdl2JavaM
         
         configureEmitter(emitter);
         
+        if (catalog != null) {
+            CatalogManager catalogManager = new CatalogManager();
+            catalogManager.setCatalogFiles(catalog.getAbsolutePath());
+            emitter.setEntityResolver(new CatalogResolver(catalogManager));
+        }
+        
         getLog().info("Processing " + wsdlUrl);
         
         try {