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/06/22 00:08:39 UTC
svn commit: r416128 - in /webservices/muse/trunk/samples/simple: ./ config/
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/test/simple/first/ src/org/apache/muse/test/si...
Author: danj
Date: Wed Jun 21 15:08:37 2006
New Revision: 416128
URL: http://svn.apache.org/viewvc?rev=416128&view=rev
Log:
Initial commit of the simplest sample project - just the Java/XML files.
I don't yet know if we should be committing jars/wars, and it seems like
other Apache WS projects are not doing this, instead relying on a
combination of Maven and scripts to create the deployable applications
that are added to the release repository.
Assuming we're to keep the Muse SVN free of pre-compiled code, I will
follow this commit with a readme file to explain the build/creation
process for developers who want to modify the samples.
Added:
webservices/muse/trunk/samples/simple/
webservices/muse/trunk/samples/simple/config/
webservices/muse/trunk/samples/simple/config/muse.xml
webservices/muse/trunk/samples/simple/config/services.xml
webservices/muse/trunk/samples/simple/pom.xml
webservices/muse/trunk/samples/simple/src/
webservices/muse/trunk/samples/simple/src/org/
webservices/muse/trunk/samples/simple/src/org/apache/
webservices/muse/trunk/samples/simple/src/org/apache/muse/
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleResourceClient.java
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleTestClient.java
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapability.java
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapability.java
webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java
webservices/muse/trunk/samples/simple/wsdl/
webservices/muse/trunk/samples/simple/wsdl/SOAP-Envelope-1_2.xsd
webservices/muse/trunk/samples/simple/wsdl/SimpleResource.wsdl
webservices/muse/trunk/samples/simple/wsdl/WS-Addressing-2005_08.xsd
webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.wsdl
webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.xsd
webservices/muse/trunk/samples/simple/wsdl/XML-Namespace-1998.xsd
Added: webservices/muse/trunk/samples/simple/config/muse.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/config/muse.xml?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/config/muse.xml (added)
+++ webservices/muse/trunk/samples/simple/config/muse.xml Wed Jun 21 15:08:37 2006
@@ -0,0 +1,38 @@
+<?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>
+ </router>
+ <resource-type instances-at-startup="3">
+ <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/simple/config/services.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/config/services.xml?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/config/services.xml (added)
+++ webservices/muse/trunk/samples/simple/config/services.xml Wed Jun 21 15:08:37 2006
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<serviceGroup>
+
+<service name="SimpleResource">
+ <description>This is the Apache Muse router service.</description>
+ <parameter name="ServiceClass" locked="false">org.apache.muse.core.platform.axis2.AxisIsolationLayer</parameter>
+ <operation name="handleRequest">
+ <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
+ <actionMapping>http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata</actionMapping>
+ <actionMapping>http://ws.apache.org/muse/test/simple/first/FirstOperation</actionMapping>
+ <actionMapping>http://ws.apache.org/muse/test/simple/second/SecondOperation</actionMapping>
+ </operation>
+</service>
+
+</serviceGroup>
Added: webservices/muse/trunk/samples/simple/pom.xml
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/pom.xml?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/pom.xml (added)
+++ webservices/muse/trunk/samples/simple/pom.xml Wed Jun 21 15:08:37 2006
@@ -0,0 +1,80 @@
+<?xml version="1.0"?>
+<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>muse-samples</groupId>
+ <artifactId>simple</artifactId>
+ <packaging>jar</packaging>
+ <version>1.9.0-SNAPSHOT</version>
+ <name>Apache Muse - sample project demonstrating basic usage of capabilities and resources</name>
+ <url>http://ws.apache.org/muse</url>
+ <dependencies>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-util</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-core</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-util-qname</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-util-xml</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-wsa-soap</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>muse</groupId>
+ <artifactId>muse-wsx-impl</artifactId>
+ <version>1.9.0-SNAPSHOT</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ <version>1.5.1</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <outputDirectory>build/classes</outputDirectory>
+ <directory>build/jars</directory>
+
+ <!--
+
+ This feature can be used when Maven 2.1 is released
+
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <addMavenDescriptor>false</addMavenDescriptor>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+
+ -->
+
+ </build>
+</project>
Added: webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleResourceClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleResourceClient.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleResourceClient.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleResourceClient.java Wed Jun 21 15:08:37 2006
@@ -0,0 +1,85 @@
+/*=============================================================================*
+ * 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.URI;
+
+import javax.xml.namespace.QName;
+
+import org.w3c.dom.Element;
+
+import org.apache.muse.core.AbstractResourceClient;
+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;
+
+import org.apache.muse.test.simple.first.FirstCapability;
+import org.apache.muse.test.simple.second.SecondCapability;
+
+/**
+ *
+ * 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
+ {
+ URI action = URI.create(FirstCapability.FIRST_OP_URI);
+ Element body = XmlUtils.createElement(FirstCapability.FIRST_OP_QNAME, param1);
+ Element response = invoke(action, body);
+ return XmlUtils.extractText(response);
+ }
+
+ public boolean secondOperation(int param1, QName param2)
+ throws SoapFault
+ {
+ URI action = URI.create(SecondCapability.SECOND_OP_URI);
+
+ 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(action, body);
+ return XmlUtils.getBoolean(response).booleanValue();
+ }
+}
Added: webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleTestClient.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleTestClient.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleTestClient.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/SimpleTestClient.java Wed Jun 21 15:08:37 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();
+ URI 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 = "/simple/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(null, wsdl);
+ }
+
+ catch (Throwable error)
+ {
+ error.printStackTrace();
+ }
+ }
+}
Added: webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapability.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapability.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapability.java Wed Jun 21 15:08:37 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/simple/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/first/FirstCapabilityImpl.java Wed Jun 21 15:08:37 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/simple/src/org/apache/muse/test/simple/second/SecondCapability.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapability.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapability.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapability.java Wed Jun 21 15:08:37 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/simple/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java (added)
+++ webservices/muse/trunk/samples/simple/src/org/apache/muse/test/simple/second/SecondCapabilityImpl.java Wed Jun 21 15:08:37 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/simple/wsdl/SOAP-Envelope-1_2.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/SOAP-Envelope-1_2.xsd?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/SOAP-Envelope-1_2.xsd (added)
+++ webservices/muse/trunk/samples/simple/wsdl/SOAP-Envelope-1_2.xsd Wed Jun 21 15:08:37 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/simple/wsdl/SimpleResource.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/SimpleResource.wsdl?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/SimpleResource.wsdl (added)
+++ webservices/muse/trunk/samples/simple/wsdl/SimpleResource.wsdl Wed Jun 21 15:08:37 2006
@@ -0,0 +1,119 @@
+<?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/ws/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://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 name="FirstOperationRequest" message="tns:FirstOperationRequest" />
+ <wsdl:output name="FirstOperationResponse" message="tns:FirstOperationResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="SecondOperation">
+ <wsdl:input name="SecondOperationRequest" message="tns:SecondOperationRequest" />
+ <wsdl:output name="SecondOperationResponse" message="tns:SecondOperationResponse" />
+ </wsdl:operation>
+ <wsdl:operation name="GetMetadata">
+ <wsdl:input name="GetMetadataMsg" message="tns:GetMetadataMsg"/>
+ <wsdl:output 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/simple/wsdl/WS-Addressing-2005_08.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/WS-Addressing-2005_08.xsd?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/WS-Addressing-2005_08.xsd (added)
+++ webservices/muse/trunk/samples/simple/wsdl/WS-Addressing-2005_08.xsd Wed Jun 21 15:08:37 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/simple/wsdl/WS-MetadataExchange-2004_09.wsdl
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.wsdl?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.wsdl (added)
+++ webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.wsdl Wed Jun 21 15:08:37 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/simple/wsdl/WS-MetadataExchange-2004_09.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.xsd?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.xsd (added)
+++ webservices/muse/trunk/samples/simple/wsdl/WS-MetadataExchange-2004_09.xsd Wed Jun 21 15:08:37 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/simple/wsdl/XML-Namespace-1998.xsd
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/samples/simple/wsdl/XML-Namespace-1998.xsd?rev=416128&view=auto
==============================================================================
--- webservices/muse/trunk/samples/simple/wsdl/XML-Namespace-1998.xsd (added)
+++ webservices/muse/trunk/samples/simple/wsdl/XML-Namespace-1998.xsd Wed Jun 21 15:08:37 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