You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by da...@apache.org on 2006/12/08 21:33:48 UTC

svn commit: r484757 - in /webservices/muse/trunk/samples/mini: ./ config/ router-entries/ router-entries/SimpleResource/ src/ src/org/ src/org/apache/ src/org/apache/muse/ src/org/apache/muse/test/ src/org/apache/muse/test/simple/ src/org/apache/muse/t...

Author: danj
Date: Fri Dec  8 12:33:46 2006
New Revision: 484757

URL: http://svn.apache.org/viewvc?view=rev&rev=484757
Log:
Sample for constrained devices via Mini SOAP Engine - fix for MUSE-129

Added:
    webservices/muse/trunk/samples/mini/
    webservices/muse/trunk/samples/mini/build.xml
    webservices/muse/trunk/samples/mini/config/
    webservices/muse/trunk/samples/mini/config/muse.xml
    webservices/muse/trunk/samples/mini/router-entries/
    webservices/muse/trunk/samples/mini/router-entries/SimpleResource/
    webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-1.xml
    webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-2.xml
    webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-3.xml
    webservices/muse/trunk/samples/mini/src/
    webservices/muse/trunk/samples/mini/src/org/
    webservices/muse/trunk/samples/mini/src/org/apache/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleResourceClient.java
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleTestClient.java
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapability.java
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapability.java
    webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java
    webservices/muse/trunk/samples/mini/wsdl/
    webservices/muse/trunk/samples/mini/wsdl/SOAP-Envelope-1_2.xsd
    webservices/muse/trunk/samples/mini/wsdl/SimpleResource.wsdl
    webservices/muse/trunk/samples/mini/wsdl/WS-Addressing-2005_08.xsd
    webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.wsdl
    webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.xsd
    webservices/muse/trunk/samples/mini/wsdl/XML-Namespace-1998.xsd

Added: webservices/muse/trunk/samples/mini/build.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/build.xml?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/build.xml (added)
+++ webservices/muse/trunk/samples/mini/build.xml Fri Dec  8 12:33:46 2006
@@ -0,0 +1,91 @@
+<?xml version="1.0"?>
+<project name="project" default="war">
+	<target name="init">
+		<basename property="NAME" file="${basedir}"/>
+		<property name="MUSE_HOME" value="../.."/>
+		<property name="MUSE_TEMPLATE" value="${MUSE_HOME}/lib/mini"/>
+		<property name="BUILD_DIR" value="build"/>
+		<property name="JAVA_SRC_DIR" value="src"/>
+		<property name="JAVA_DEST_DIR" value="${BUILD_DIR}/bin"/>
+
+		<property name="WAR_FILE" value="${BUILD_DIR}/${NAME}.war"/>
+		<property name="LIB_DIR" value="${BUILD_DIR}/WEB-INF/lib"/>
+		<property name="CLASSES_DIR" value="${BUILD_DIR}/WEB-INF/classes"/>
+		<property name="JAR_FILE" value="${LIB_DIR}/${NAME}.jar"/>
+
+		<path id="muse.class.path">
+			<fileset dir="${MUSE_HOME}/modules/ws-fx-api/">
+				<include name="*.jar"/>
+			</fileset>
+			<fileset dir="${MUSE_HOME}/modules/ws-fx-impl/">
+				<include name="*.jar"/>
+			</fileset>
+			<fileset dir="${MUSE_HOME}/modules/core/">
+				<include name="*.jar"/>
+			</fileset>
+			<fileset dir="${MUSE_HOME}/lib/common/">
+				<include name="wsdl4j*.jar"/>
+				<include name="xml*.jar"/>
+				<include name="xerces*.jar"/>
+			</fileset>
+		</path>
+	</target>
+
+	<target name="layout" depends="init, clean">
+		<copy todir="${BUILD_DIR}">
+			<fileset dir="${MUSE_TEMPLATE}">
+				<include name="**/*"/>
+			</fileset>
+		</copy>
+
+		<copy todir="${CLASSES_DIR}">
+			<fileset dir=".">
+				<include name="wsdl/**"/>
+				<include name="router-entries/**"/>
+			</fileset>
+		</copy>
+
+		<copy todir="${CLASSES_DIR}">
+			<fileset dir="config">
+				<include name="muse.xml"/>
+			</fileset>
+		</copy>
+
+		<copy todir="${LIB_DIR}" flatten="true">
+			<fileset dir="${MUSE_HOME}/modules">
+				<include name="ws-fx-api/muse-wsx*.jar"/>
+				<include name="mini/*.jar"/>
+				<include name="ws-fx-impl/muse-wsx*.jar"/>
+				<include name="core/*.jar"/>
+			</fileset>
+			<fileset dir="${MUSE_HOME}/lib/common/">
+				<include name="wsdl4j*.jar"/>
+				<include name="xml*.jar"/>
+				<include name="xerces*.jar"/>
+			</fileset>
+		</copy>
+	</target>
+
+	<target name="java" depends="layout">
+		<mkdir dir="${JAVA_DEST_DIR}"/>
+		<javac srcdir="${JAVA_SRC_DIR}" destdir="${JAVA_DEST_DIR}" classpathref="muse.class.path"/>
+		<jar basedir="${JAVA_DEST_DIR}" destfile="${JAR_FILE}">
+			<fileset dir="${JAVA_DEST_DIR}">
+				<include name="**/*.class"/>
+			</fileset>
+		</jar>
+	</target>
+
+	<target name="war" depends="java">
+		<jar destfile="${WAR_FILE}">
+			<fileset dir="${BUILD_DIR}">
+				<include name="WEB-INF/**"/>
+			</fileset>
+		</jar>
+	</target>
+
+	<target name="clean" depends="init">
+		<delete dir="${BUILD_DIR}"/>
+	</target>
+</project>
+

Added: webservices/muse/trunk/samples/mini/config/muse.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/config/muse.xml?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/config/muse.xml (added)
+++ webservices/muse/trunk/samples/mini/config/muse.xml Fri Dec  8 12:33:46 2006
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<muse xmlns="http://ws.apache.org/muse/descriptor" 
+      xmlns:test="http://ws.apache.org/muse/test/simple" 
+      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+      xsi:schemaLocation="http://ws.apache.org/muse/descriptor muse-descriptor.xsd">
+	<router>
+		<java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
+		<logging>
+			<log-file>log/muse.log</log-file>
+			<log-level>FINE</log-level>
+		</logging>
+		<persistence>
+			<java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
+			<persistence-location>router-entries</persistence-location>
+		</persistence>
+	</router>
+	<resource-type>
+		<context-path>SimpleResource</context-path>
+		<wsdl>
+			<wsdl-file>wsdl/SimpleResource.wsdl</wsdl-file>
+			<wsdl-port-type>test:SimpleResourcePortType</wsdl-port-type>
+		</wsdl>
+		<java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
+		<java-resource-class>org.apache.muse.core.SimpleResource</java-resource-class>
+		<capability>
+			<capability-uri>http://schemas.xmlsoap.org/ws/2004/09/mex</capability-uri>
+			<java-capability-class>org.apache.muse.ws.metadata.impl.SimpleMetadataExchange</java-capability-class>
+		</capability>
+		<capability>
+			<capability-uri>http://ws.apache.org/muse/test/simple/first</capability-uri>
+			<java-capability-class>org.apache.muse.test.simple.first.FirstCapabilityImpl</java-capability-class>
+			<init-param>
+				<param-name>EmailAddress</param-name>
+				<param-value>danjemiolo@us.ibm.com</param-value>
+			</init-param>
+		</capability>
+		<capability>
+			<capability-uri>http://ws.apache.org/muse/test/simple/second</capability-uri>
+			<java-capability-class>org.apache.muse.test.simple.second.SecondCapabilityImpl</java-capability-class>
+		</capability>
+	</resource-type>
+</muse>

Added: webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-1.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-1.xml?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-1.xml (added)
+++ webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-1.xml Fri Dec  8 12:33:46 2006
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
+	<muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-1</muse-wsa:ResourceId>
+</wsa:ReferenceParameters>

Added: webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-2.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-2.xml?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-2.xml (added)
+++ webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-2.xml Fri Dec  8 12:33:46 2006
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
+	<muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-2</muse-wsa:ResourceId>
+</wsa:ReferenceParameters>

Added: webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-3.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-3.xml?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-3.xml (added)
+++ webservices/muse/trunk/samples/mini/router-entries/SimpleResource/resource-instance-3.xml Fri Dec  8 12:33:46 2006
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsa:ReferenceParameters xmlns:wsa="http://www.w3.org/2005/08/addressing">
+	<muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">MuseResource-3</muse-wsa:ResourceId>
+</wsa:ReferenceParameters>

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleResourceClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleResourceClient.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleResourceClient.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleResourceClient.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,79 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.core.AbstractResourceClient;
+import org.apache.muse.test.simple.first.FirstCapability;
+import org.apache.muse.test.simple.second.SecondCapability;
+import org.apache.muse.util.xml.XmlUtils;
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.addressing.soap.SoapClient;
+import org.apache.muse.ws.addressing.soap.SoapFault;
+
+/**
+ * 
+ * SimpleResourceClient is a web services client that implements the 
+ * operations in FirstCapability and SecondCapability. This client 
+ * was not generated by the Muse proxy generation tool because that 
+ * code has not been modified to use the non-IBM/AC identifiers yet.
+ *
+ * @author Dan Jemiolo (danjemiolo)
+ *
+ */
+
+public class SimpleResourceClient extends AbstractResourceClient
+{
+    public SimpleResourceClient(EndpointReference destination)
+    {
+        super(destination);
+    }
+
+    public SimpleResourceClient(EndpointReference destination, EndpointReference source)
+    {
+        super(destination, source);
+    }
+
+    public SimpleResourceClient(EndpointReference destination, 
+                                EndpointReference source, 
+                                SoapClient soapClient)
+    {
+        super(destination, source, soapClient);
+    }
+    
+    public String firstOperation(String param1)
+        throws SoapFault
+    {
+        Element body = XmlUtils.createElement(FirstCapability.FIRST_OP_QNAME, param1);
+        Element response = invoke(FirstCapability.FIRST_OP_URI, body);
+        return XmlUtils.extractText(response);
+    }
+    
+    public boolean secondOperation(int param1, QName param2)
+        throws SoapFault
+    {
+        Element body = XmlUtils.createElement(SecondCapability.SECOND_OP_QNAME);
+        XmlUtils.setElement(body, SecondCapability.PARAM1_QNAME, new Integer(param1));
+        XmlUtils.setElement(body, SecondCapability.PARAM2_QNAME, param2);
+        
+        Element response = invoke(SecondCapability.SECOND_OP_URI, body);
+        return XmlUtils.getBoolean(response).booleanValue();
+    }
+}

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleTestClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleTestClient.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleTestClient.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/SimpleTestClient.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,125 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple;
+
+import java.net.InetAddress;
+import java.net.URI;
+import java.net.UnknownHostException;
+
+import javax.wsdl.factory.WSDLFactory;
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.core.routing.CounterResourceIdFactory;
+import org.apache.muse.core.routing.ResourceIdFactory;
+import org.apache.muse.ws.addressing.EndpointReference;
+import org.apache.muse.ws.metadata.remote.MetadataExchangeClient;
+
+/**
+ * 
+ * SimpleTestClient is a simple test driver that invokes the two user-defined 
+ * operations in FirstCapability and SecondCapability, as well as the GetMetadata 
+ * operation from WS-MetadataExchange. The WSDL retrieved via WS-MetadataExchange 
+ * is run through the WSDL4J parser to make sure it was serialized properly.
+ *
+ * @author Dan Jemiolo (danjemiolo)
+ *
+ */
+
+public class SimpleTestClient
+{
+    public static void addReferenceParameter(EndpointReference epr)
+    {
+        ResourceIdFactory factory = new CounterResourceIdFactory();
+        QName name = factory.getIdentifierName();
+        String value = factory.getNextIdentifier();
+        epr.addParameter(name, value);
+    }
+    
+    public static URI getLocalAddress(String contextPath, int port) 
+        throws UnknownHostException
+    {
+        String ip = InetAddress.getLocalHost().getHostAddress();
+        
+        StringBuffer address = new StringBuffer();
+        address.append("http://");
+        address.append(ip);
+        address.append(':');
+        address.append(port);
+        
+        if (contextPath.charAt(0) != '/')
+            address.append('/');
+            
+        address.append(contextPath);
+        
+        return URI.create(address.toString());
+    }
+    
+    public static void main(String[] args)
+    {
+        try
+        {
+            //
+            // change these to point to different applications/servers
+            //
+            String contextPath = "/mini/services/SimpleResource";
+            int port = 8080; 
+            
+            //
+            // create EPR for test resource
+            //
+            URI address = getLocalAddress(contextPath, port);
+            EndpointReference epr = new EndpointReference(address);
+            
+            addReferenceParameter(epr);
+            
+            //
+            // create proxy - turn on tracing of SOAP messages
+            //
+            SimpleResourceClient client = new SimpleResourceClient(epr);
+            client.setTrace(true);
+            
+            //
+            // test FirstCapability.firstOperation
+            //
+            client.firstOperation("Hello, World!");
+            
+            //
+            // test SecondCapability.secondOperation
+            //
+            client.secondOperation(42, new QName("http://ibm.com", "Test", "ibm"));
+            
+            //
+            // test WS-MEx GetMetadata with WSDL dialect
+            //
+            MetadataExchangeClient wsxClient = new MetadataExchangeClient(epr);
+            wsxClient.setTrace(true);
+            
+            //
+            // make sure WSDL is valid using WSDL4J
+            //
+            Element wsdl = wsxClient.getWSDL();
+            WSDLFactory.newInstance().newWSDLReader().readWSDL((String)null, wsdl);
+        }
+        
+        catch (Throwable error)
+        {
+            error.printStackTrace();
+        }
+    }
+}

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapability.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapability.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapability.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,34 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple.first;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.core.Capability;
+
+public interface FirstCapability extends Capability
+{
+    String NAMESPACE_URI = "http://ws.apache.org/muse/test/simple/first";
+    
+    String PREFIX = "first";
+    
+    String FIRST_OP_URI = NAMESPACE_URI + "/FirstOperation";
+    
+    QName FIRST_OP_QNAME = new QName(NAMESPACE_URI, "FirstOperation", PREFIX);
+    
+    String firstOperation(String param1);
+}

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,28 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple.first;
+
+import org.apache.muse.core.AbstractCapability;
+
+public class FirstCapabilityImpl 
+    extends AbstractCapability implements FirstCapability
+{
+    public String firstOperation(String param1)
+    {
+        return "[RESPONSE] " + param1;
+    }
+}

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapability.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapability.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapability.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,38 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple.second;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.core.Capability;
+
+public interface SecondCapability extends Capability
+{
+    String NAMESPACE_URI = "http://ws.apache.org/muse/test/simple/second";
+    
+    String PREFIX = "second";
+    
+    String SECOND_OP_URI = NAMESPACE_URI + "/SecondOperation";
+    
+    QName SECOND_OP_QNAME = new QName(NAMESPACE_URI, "SecondOperation", PREFIX);
+    
+    QName PARAM1_QNAME = new QName(NAMESPACE_URI, "Param1", PREFIX);
+    
+    QName PARAM2_QNAME = new QName(NAMESPACE_URI, "Param2", PREFIX);
+    
+    boolean secondOperation(int param1, QName param2);
+}

Added: webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java (added)
+++ webservices/muse/trunk/samples/mini/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java Fri Dec  8 12:33:46 2006
@@ -0,0 +1,31 @@
+/*=============================================================================*
+ *  Copyright 2006 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.muse.test.simple.second;
+
+import javax.xml.namespace.QName;
+
+import org.apache.muse.core.AbstractCapability;
+
+public class SecondCapabilityImpl 
+    extends AbstractCapability implements SecondCapability
+{
+    public boolean secondOperation(int param1, QName param2)
+    {
+        getLog().info("Calling secondOperation with " + param1 + " and " + param2);
+        return true;
+    }
+}

Added: webservices/muse/trunk/samples/mini/wsdl/SOAP-Envelope-1_2.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/SOAP-Envelope-1_2.xsd?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/SOAP-Envelope-1_2.xsd (added)
+++ webservices/muse/trunk/samples/mini/wsdl/SOAP-Envelope-1_2.xsd Fri Dec  8 12:33:46 2006
@@ -0,0 +1,160 @@
+<?xml version="1.0"?>
+
+<!-- Schema defined in the SOAP Version 1.2 Part 1 specification
+     Proposed Recommendation:
+     http://www.w3.org/TR/2003/PR-soap12-part1-20030507/
+     $Id: SOAP-Envelope-1_2.xsd,v 1.1 2006/06/01 20:26:45 danjemiolo Exp $
+
+     Copyright (C)2003 W3C(R) (MIT, ERCIM, Keio), All Rights Reserved.
+     W3C viability, trademark, document use and software licensing rules
+     apply.
+     http://www.w3.org/Consortium/Legal/
+
+     This document is governed by the W3C Software License [1] as
+     described in the FAQ [2].
+
+     [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+     [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+-->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  xmlns:tns="http://www.w3.org/2003/05/soap-envelope"
+  targetNamespace="http://www.w3.org/2003/05/soap-envelope"
+  elementFormDefault="qualified">
+
+  <xs:import namespace="http://www.w3.org/XML/1998/namespace" 
+             schemaLocation="XML-Namespace-1998.xsd"/>
+
+  <!-- Envelope, header and body -->
+  <xs:element name="Envelope" type="tns:Envelope"/>
+  <xs:complexType name="Envelope">
+    <xs:sequence>
+      <xs:element ref="tns:Header" minOccurs="0"/>
+      <xs:element ref="tns:Body" minOccurs="1"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax"/>
+  </xs:complexType>
+
+  <xs:element name="Header" type="tns:Header"/>
+  <xs:complexType name="Header">
+    <xs:annotation>
+      <xs:documentation>
+	  Elements replacing the wildcard MUST be namespace qualified, but can be in the targetNamespace
+      </xs:documentation>
+    </xs:annotation>
+    <xs:sequence>
+      <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax"/>
+  </xs:complexType>
+
+  <xs:element name="Body" type="tns:Body"/>
+  <xs:complexType name="Body">
+    <xs:sequence>
+      <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax"/>
+  </xs:complexType>
+
+  <!-- Global Attributes.  The following attributes are intended to be
+  usable via qualified attribute names on any complex type referencing
+  them.  -->
+  <xs:attribute name="mustUnderstand" type="xs:boolean" default="0"/>
+  <xs:attribute name="relay" type="xs:boolean" default="0"/>
+  <xs:attribute name="role" type="xs:anyURI"/>
+
+  <!-- 'encodingStyle' indicates any canonicalization conventions
+  followed in the contents of the containing element.  For example, the
+  value 'http://www.w3.org/2003/05/soap-encoding' indicates the pattern
+  described in the last call working draft of SOAP Version 1.2 Part 2:
+  Adjuncts -->
+
+  <xs:attribute name="encodingStyle" type="xs:anyURI"/>
+
+  <xs:element name="Fault" type="tns:Fault"/>
+  <xs:complexType name="Fault" final="extension">
+    <xs:annotation>
+      <xs:documentation>
+	    Fault reporting structure
+      </xs:documentation>
+    </xs:annotation>
+    <xs:sequence>
+      <xs:element name="Code" type="tns:faultcode"/>
+      <xs:element name="Reason" type="tns:faultreason"/>
+      <xs:element name="Node" type="xs:anyURI" minOccurs="0"/>
+      <xs:element name="Role" type="xs:anyURI" minOccurs="0"/>
+      <xs:element name="Detail" type="tns:detail" minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="faultreason">
+    <xs:sequence>
+      <xs:element name="Text" type="tns:reasontext"
+        minOccurs="1" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="reasontext">
+    <xs:simpleContent>
+      <xs:extension base="xs:string">
+        <xs:attribute ref="xml:lang" use="required"/>
+      </xs:extension>
+    </xs:simpleContent>
+  </xs:complexType>
+
+  <xs:complexType name="faultcode">
+    <xs:sequence>
+      <xs:element name="Value"
+        type="tns:faultcodeEnum"/>
+      <xs:element name="Subcode"
+        type="tns:subcode"
+        minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:simpleType name="faultcodeEnum">
+    <xs:restriction base="xs:QName">
+      <xs:enumeration value="tns:DataEncodingUnknown"/>
+      <xs:enumeration value="tns:MustUnderstand"/>
+      <xs:enumeration value="tns:Receiver"/>
+      <xs:enumeration value="tns:Sender"/>
+      <xs:enumeration value="tns:VersionMismatch"/>
+    </xs:restriction>
+  </xs:simpleType>
+
+  <xs:complexType name="subcode">
+    <xs:sequence>
+      <xs:element name="Value"
+        type="xs:QName"/>
+      <xs:element name="Subcode"
+        type="tns:subcode"
+        minOccurs="0"/>
+    </xs:sequence>
+  </xs:complexType>
+
+  <xs:complexType name="detail">
+    <xs:sequence>
+      <xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax"/>
+  </xs:complexType>
+
+  <!-- Global element declaration and complex type definition for header entry returned due to a mustUnderstand fault -->
+  <xs:element name="NotUnderstood" type="tns:NotUnderstoodType"/>
+  <xs:complexType name="NotUnderstoodType">
+    <xs:attribute name="qname" type="xs:QName" use="required"/>
+  </xs:complexType>
+
+  <!-- Global element and associated types for managing version transition as described in Appendix A of the SOAP Version 1.2 Part 1 Last Call Working Draft -->
+  <xs:complexType name="SupportedEnvType">
+    <xs:attribute name="qname" type="xs:QName" use="required"/>
+  </xs:complexType>
+
+  <xs:element name="Upgrade" type="tns:UpgradeType"/>
+  <xs:complexType name="UpgradeType">
+    <xs:sequence>
+      <xs:element name="SupportedEnvelope" type="tns:SupportedEnvType" minOccurs="1" maxOccurs="unbounded"/>
+    </xs:sequence>
+  </xs:complexType>
+
+</xs:schema>

Added: webservices/muse/trunk/samples/mini/wsdl/SimpleResource.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/SimpleResource.wsdl?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/SimpleResource.wsdl (added)
+++ webservices/muse/trunk/samples/mini/wsdl/SimpleResource.wsdl Fri Dec  8 12:33:46 2006
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions
+	targetNamespace="http://ws.apache.org/muse/test/simple"
+	xmlns:tns="http://ws.apache.org/muse/test/simple"
+	xmlns="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:wsa="http://www.w3.org/2005/08/addressing"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:wsdl-soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	xmlns:first="http://ws.apache.org/muse/test/simple/first" 
+	xmlns:second="http://ws.apache.org/muse/test/simple/second" 
+	xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" 
+	name="SimpleResource">
+	<wsdl:types>
+		<xsd:schema 
+			elementFormDefault="qualified"
+			targetNamespace="http://www.w3.org/2005/08/addressing">
+			<xsd:include schemaLocation="WS-Addressing-2005_08.xsd"/>
+		</xsd:schema>
+		<xsd:schema 
+			elementFormDefault="qualified"
+			targetNamespace="http://schemas.xmlsoap.org/ws/2004/09/mex">
+			<xsd:include schemaLocation="WS-MetadataExchange-2004_09.xsd"/>
+		</xsd:schema>
+		<xsd:schema 
+			elementFormDefault="qualified"
+			targetNamespace="http://ws.apache.org/muse/test/simple/first">
+			<xsd:element name="FirstOperation" type="xsd:string" />
+			<xsd:element name="FirstOperationResponse" type="xsd:string" />
+		</xsd:schema>
+		<xsd:schema 
+			elementFormDefault="qualified"
+			targetNamespace="http://ws.apache.org/muse/test/simple/second">
+			<xsd:element name="SecondOperation">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="Param1" type="xsd:integer"/>
+						<xsd:element name="Param2" type="xsd:QName"/>
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+			<xsd:element name="SecondOperationResponse" type="xsd:boolean" />
+		</xsd:schema>
+	</wsdl:types>
+	<wsdl:message name="FirstOperationRequest">
+		<wsdl:part name="FirstOperationRequest" element="first:FirstOperation" />
+	</wsdl:message>
+	<wsdl:message name="FirstOperationResponse">
+		<wsdl:part name="FirstOperationResponse" element="first:FirstOperationResponse" />
+	</wsdl:message>
+	<wsdl:message name="SecondOperationRequest">
+		<wsdl:part name="SecondOperationRequest" element="second:SecondOperation" />
+	</wsdl:message>
+	<wsdl:message name="SecondOperationResponse">
+		<wsdl:part name="SecondOperationResponse" element="second:SecondOperationResponse" />
+	</wsdl:message>
+	<wsdl:message name="GetMetadataMsg">
+  		<wsdl:part name="GetMetadataMsg" element="wsx:GetMetadata" />
+	</wsdl:message>
+	<wsdl:message name="GetMetadataResponseMsg">
+  		<wsdl:part name="GetMetadataResponseMsg" element="wsx:Metadata" />
+	</wsdl:message>
+	<wsdl:portType name="SimpleResourcePortType">
+		<wsdl:operation name="FirstOperation">
+			<wsdl:input wsa:Action="http://ws.apache.org/muse/test/simple/first/FirstOperation" 
+			            name="FirstOperationRequest" message="tns:FirstOperationRequest" />
+			<wsdl:output wsa:Action="http://ws.apache.org/muse/test/simple/first/FirstOperationResponse" 
+			             name="FirstOperationResponse" message="tns:FirstOperationResponse" />
+		</wsdl:operation>
+		<wsdl:operation name="SecondOperation">
+			<wsdl:input wsa:Action="http://ws.apache.org/muse/test/simple/second/SecondOperation" 
+			            name="SecondOperationRequest" message="tns:SecondOperationRequest" />
+			<wsdl:output wsa:Action="http://ws.apache.org/muse/test/simple/second/SecondOperationResponse" 
+			             name="SecondOperationResponse" message="tns:SecondOperationResponse" />
+		</wsdl:operation>
+		<wsdl:operation name="GetMetadata">
+			<wsdl:input wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata" 
+			            name="GetMetadataMsg" message="tns:GetMetadataMsg"/>
+			<wsdl:output wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataResponse" 
+			             name="GetMetadataResponseMsg" message="tns:GetMetadataResponseMsg"/>
+		</wsdl:operation>
+	</wsdl:portType>
+	<wsdl:binding name="SimpleResourceBinding" type="tns:SimpleResourcePortType">
+		<wsdl-soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="FirstOperation">
+			<wsdl-soap:operation soapAction="FirstOperation" />
+			<wsdl:input>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:input>
+			<wsdl:output>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:output>
+		</wsdl:operation>
+		<wsdl:operation name="SecondOperation">
+			<wsdl-soap:operation soapAction="SecondOperation" />
+			<wsdl:input>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:input>
+			<wsdl:output>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:output>
+		</wsdl:operation>
+		<wsdl:operation name="GetMetadata">
+			<wsdl-soap:operation soapAction="GetMetadata" />
+			<wsdl:input>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:input>
+			<wsdl:output>
+				<wsdl-soap:body 
+					use="encoded"
+					encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+	<wsdl:service name="SimpleResourceService">
+    	<wsdl:port name="SimpleResourcePort" binding="tns:SimpleResourceBinding">
+    		<wsdl-soap:address location="http://localhost:8080/simple/services/SimpleResource"/>
+    	</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Added: webservices/muse/trunk/samples/mini/wsdl/WS-Addressing-2005_08.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/WS-Addressing-2005_08.xsd?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/WS-Addressing-2005_08.xsd (added)
+++ webservices/muse/trunk/samples/mini/wsdl/WS-Addressing-2005_08.xsd Fri Dec  8 12:33:46 2006
@@ -0,0 +1,148 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema 
+	targetNamespace="http://www.w3.org/2005/08/addressing" 
+	xmlns:xs="http://www.w3.org/2001/XMLSchema"
+	xmlns:tns="http://www.w3.org/2005/08/addressing" 
+	elementFormDefault="qualified" 
+	attributeFormDefault="unqualified">
+
+	<!-- Constructs from the WS-Addressing Core -->
+
+	<xs:element name="EndpointReference"
+		type="tns:EndpointReferenceType" />
+	<xs:complexType name="EndpointReferenceType" mixed="false">
+		<xs:sequence>
+			<xs:element name="Address" type="tns:AttributedURIType" />
+			<xs:element name="ReferenceParameters"
+				type="tns:ReferenceParametersType" minOccurs="0" />
+			<xs:element ref="tns:Metadata" minOccurs="0" />
+			<xs:any namespace="##other" processContents="lax"
+				minOccurs="0" maxOccurs="unbounded" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax" />
+	</xs:complexType>
+
+	<xs:complexType name="ReferenceParametersType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax"
+				minOccurs="0" maxOccurs="unbounded" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax" />
+	</xs:complexType>
+
+	<xs:element name="Metadata" type="tns:MetadataType" />
+	<xs:complexType name="MetadataType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax"
+				minOccurs="0" maxOccurs="unbounded" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax" />
+	</xs:complexType>
+
+	<xs:element name="MessageID" type="tns:AttributedURIType" />
+	<xs:element name="RelatesTo" type="tns:RelatesToType" />
+	<xs:complexType name="RelatesToType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+				<xs:attribute name="RelationshipType"
+					type="tns:RelationshipTypeOpenEnum" use="optional"
+					default="http://www.w3.org/2005/08/addressing/reply" />
+				<xs:anyAttribute namespace="##other"
+					processContents="lax" />
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+
+	<xs:simpleType name="RelationshipTypeOpenEnum">
+		<xs:union memberTypes="tns:RelationshipType xs:anyURI" />
+	</xs:simpleType>
+
+	<xs:simpleType name="RelationshipType">
+		<xs:restriction base="xs:anyURI">
+			<xs:enumeration
+				value="http://www.w3.org/2005/08/addressing/reply" />
+		</xs:restriction>
+	</xs:simpleType>
+
+	<xs:element name="ReplyTo" type="tns:EndpointReferenceType" />
+	<xs:element name="From" type="tns:EndpointReferenceType" />
+	<xs:element name="FaultTo" type="tns:EndpointReferenceType" />
+	<xs:element name="To" type="tns:AttributedURIType" />
+	<xs:element name="Action" type="tns:AttributedURIType" />
+
+	<xs:complexType name="AttributedURIType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:anyURI">
+				<xs:anyAttribute namespace="##other"
+					processContents="lax" />
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+
+	<!-- Constructs from the WS-Addressing SOAP binding -->
+
+	<xs:attribute name="IsReferenceParameter" type="xs:boolean" />
+
+	<xs:simpleType name="FaultCodesOpenEnumType">
+		<xs:union memberTypes="tns:FaultCodesType xs:QName" />
+	</xs:simpleType>
+
+	<xs:simpleType name="FaultCodesType">
+		<xs:restriction base="xs:QName">
+			<xs:enumeration value="tns:InvalidAddressingHeader" />
+			<xs:enumeration value="tns:InvalidAddress" />
+			<xs:enumeration value="tns:InvalidEPR" />
+			<xs:enumeration value="tns:InvalidCardinality" />
+			<xs:enumeration value="tns:MissingAddressInEPR" />
+			<xs:enumeration value="tns:DuplicateMessageID" />
+			<xs:enumeration value="tns:ActionMismatch" />
+			<xs:enumeration value="tns:MessageAddressingHeaderRequired" />
+			<xs:enumeration value="tns:DestinationUnreachable" />
+			<xs:enumeration value="tns:ActionNotSupported" />
+			<xs:enumeration value="tns:EndpointUnavailable" />
+		</xs:restriction>
+	</xs:simpleType>
+
+	<xs:element name="RetryAfter" type="tns:AttributedUnsignedLongType" />
+	<xs:complexType name="AttributedUnsignedLongType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:unsignedLong">
+				<xs:anyAttribute namespace="##other"
+					processContents="lax" />
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+
+	<xs:element name="ProblemHeaderQName"
+		type="tns:AttributedQNameType" />
+	<xs:complexType name="AttributedQNameType" mixed="false">
+		<xs:simpleContent>
+			<xs:extension base="xs:QName">
+				<xs:anyAttribute namespace="##other"
+					processContents="lax" />
+			</xs:extension>
+		</xs:simpleContent>
+	</xs:complexType>
+
+	<xs:element name="ProblemHeader" type="tns:AttributedAnyType" />
+	<xs:complexType name="AttributedAnyType" mixed="false">
+		<xs:sequence>
+			<xs:any namespace="##any" processContents="lax"
+				minOccurs="1" maxOccurs="1" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax" />
+	</xs:complexType>
+
+	<xs:element name="ProblemIRI" type="tns:AttributedURIType" />
+
+	<xs:element name="ProblemAction" type="tns:ProblemActionType" />
+	<xs:complexType name="ProblemActionType" mixed="false">
+		<xs:sequence>
+			<xs:element ref="tns:Action" minOccurs="0" />
+			<xs:element name="SoapAction" minOccurs="0"
+				type="xs:anyURI" />
+		</xs:sequence>
+		<xs:anyAttribute namespace="##other" processContents="lax" />
+	</xs:complexType>
+
+</xs:schema>

Added: webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.wsdl?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.wsdl (added)
+++ webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.wsdl Fri Dec  8 12:33:46 2006
@@ -0,0 +1,98 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+(c) 2004 BEA Systems Inc., Computer Associates International, Inc.,
+International Business Machines Corporation, Microsoft Corporation,
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved.
+
+Permission to copy and display the WS-MetadataExchange Specification
+(the "Specification"), in any medium without fee or royalty is hereby
+granted, provided that you include the following on ALL copies of the
+Specification that you make:
+
+1.	A link or URL to the Specification at this location.
+2.	The copyright notice as shown in the Specification.
+
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
+webMethods (collectively, the "Authors") each agree to grant you a
+license, under royalty-free and otherwise reasonable,
+non-discriminatory terms and conditions, to their respective essential
+patent claims that they deem necessary to implement the
+WS-MetadataExchange Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.
+
+The name and trademarks of the Authors may NOT be used in any manner,
+including advertising or publicity pertaining to the Specifications or
+their contents without specific, written prior permission. Title to
+copyright in the Specifications will at all times remain with the
+Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+
+<wsdl:definitions
+    targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:tns='http://schemas.xmlsoap.org/ws/2004/09/mex'
+    xmlns:wsa='http://www.w3.org/2005/08/addressing'
+    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
+    xmlns:xs='http://www.w3.org/2001/XMLSchema' name="MetadataExchange">
+
+  <wsdl:types>
+    <xs:schema
+        targetNamespace='http://schemas.xmlsoap.org/ws/2004/09/mex' >
+      <xs:include schemaLocation='WS-MetadataExchange-2004_09.xsd' />
+    </xs:schema>
+    <xs:schema
+        targetNamespace='http://www.w3.org/2005/08/addressing' >
+      <xs:include schemaLocation='WS-Addressing-2005_08.xsd' />
+    </xs:schema>
+  </wsdl:types>
+
+  <wsdl:message name='GetMetadataMsg' >
+    <wsdl:part name='body' element='tns:GetMetadata' />
+  </wsdl:message>
+
+  <wsdl:message name='GetMetadataResponseMsg' >
+    <wsdl:part name='body' element='tns:Metadata' />
+  </wsdl:message>
+
+  <wsdl:message name='GetMsg' />
+
+  <wsdl:message name='GetResponseMsg' >
+    <wsdl:part name='body' type='tns:AnyXmlType' />
+  </wsdl:message>
+
+  <wsdl:portType name='MetadataExchange' >
+    <wsdl:operation name='GetMetadata' >
+      <wsdl:input
+          message='tns:GetMetadataMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Request' />
+      <wsdl:output
+          message='tns:GetMetadataResponseMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Response' />
+    </wsdl:operation>
+    <wsdl:operation name='Get' >
+      <wsdl:input
+          message='tns:GetMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Request' />
+      <wsdl:output
+          message='tns:GetResponseMsg'
+          wsa:Action=
+           'http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Response' />
+    </wsdl:operation>
+  </wsdl:portType>
+
+</wsdl:definitions>

Added: webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.xsd?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.xsd (added)
+++ webservices/muse/trunk/samples/mini/wsdl/WS-MetadataExchange-2004_09.xsd Fri Dec  8 12:33:46 2006
@@ -0,0 +1,113 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+<!--
+(c) 2004 BEA Systems Inc., Computer Associates International, Inc.,
+International Business Machines Corporation, Microsoft Corporation,
+Inc., SAP AG, Sun Microsystems, and webMethods. All rights reserved. 
+
+Permission to copy and display the WS-MetadataExchange Specification
+(the "Specification"), in any medium without fee or royalty is hereby
+granted, provided that you include the following on ALL copies of the
+Specification that you make:
+
+1.	A link or URL to the Specification at this location.
+2.	The copyright notice as shown in the Specification.
+
+BEA Systems, Computer Associates, IBM, Microsoft, SAP, Sun, and
+webMethods (collectively, the "Authors") each agree to grant you a
+license, under royalty-free and otherwise reasonable,
+non-discriminatory terms and conditions, to their respective essential
+patent claims that they deem necessary to implement the
+WS-MetadataExchange Specification.
+
+THE SPECIFICATION IS PROVIDED "AS IS," AND THE AUTHORS MAKE NO
+REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT
+LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
+PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE
+SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
+IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
+PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
+
+THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL,
+INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY
+USE OR DISTRIBUTION OF THE SPECIFICATIONS.
+
+The name and trademarks of the Authors may NOT be used in any manner,
+including advertising or publicity pertaining to the Specifications or
+their contents without specific, written prior permission. Title to
+copyright in the Specifications will at all times remain with the
+Authors.
+
+No other rights are granted by implication, estoppel or otherwise.
+-->
+
+<xs:schema
+    targetNamespace="http://schemas.xmlsoap.org/ws/2004/09/mex" 
+    xmlns:tns="http://schemas.xmlsoap.org/ws/2004/09/mex" 
+    xmlns:wsa="http://www.w3.org/2005/08/addressing" 
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+    elementFormDefault="qualified" >
+
+  <xs:import
+      namespace="http://www.w3.org/2005/08/addressing" 
+      schemaLocation="WS-Addressing-2005_08.xsd" />
+
+  <!-- Get Metadata request -->
+  <xs:element name='GetMetadata' >
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref='tns:Dialect' minOccurs='0' />
+        <xs:element ref='tns:Identifier' minOccurs='0' />
+      </xs:sequence>
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='Dialect' type='xs:anyURI' />
+  <xs:element name='Identifier' type='xs:anyURI' />
+
+  <!-- Get Metadata response -->
+  <xs:element name='Metadata' >
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref='tns:MetadataSection'
+                    minOccurs='0'
+                    maxOccurs='unbounded' />
+      </xs:sequence>
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='MetadataSection' >
+    <xs:complexType>
+      <xs:choice>
+        <xs:any namespace='##other'
+                processContents='lax'
+                minOccurs='0'
+                maxOccurs='unbounded' />
+        <xs:element ref='tns:MetadataReference' />
+        <xs:element ref='tns:Location' />
+      </xs:choice>
+      <xs:attribute name='Dialect' type='xs:anyURI' use='required' />
+      <xs:attribute name='Identifier' type='xs:anyURI' />
+      <xs:anyAttribute namespace='##other' processContents='lax' />
+    </xs:complexType>
+  </xs:element>
+
+  <xs:element name='MetadataReference'
+              type='wsa:EndpointReferenceType' />
+
+  <xs:element name='Location'
+              type='xs:anyURI' />
+
+  <!-- count(/s:Envelope/s:Body/*) = 0 for Get request -->
+
+  <!-- Get Response returns xs:any -->
+
+  <xs:complexType name='AnyXmlType' >
+    <xs:sequence>
+      <xs:any namespace='##any' processContents='lax' />
+    </xs:sequence>
+    <xs:anyAttribute namespace='##any' processContents='lax' />
+  </xs:complexType>
+
+</xs:schema>

Added: webservices/muse/trunk/samples/mini/wsdl/XML-Namespace-1998.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/mini/wsdl/XML-Namespace-1998.xsd?view=auto&rev=484757
==============================================================================
--- webservices/muse/trunk/samples/mini/wsdl/XML-Namespace-1998.xsd (added)
+++ webservices/muse/trunk/samples/mini/wsdl/XML-Namespace-1998.xsd Fri Dec  8 12:33:46 2006
@@ -0,0 +1,25 @@
+<?xml version='1.0'?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+ 
+ <xs:attribute name="lang" type="xs:language">
+ </xs:attribute>
+
+ <xs:attribute name="space" default="preserve">
+  <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:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+  <xs:attribute ref="xml:base"/>
+  <xs:attribute ref="xml:lang"/>
+  <xs:attribute ref="xml:space"/>
+ </xs:attributeGroup>
+
+</xs:schema>



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