Author: dkulp
Date: Thu Aug 16 18:12:02 2012
New Revision: 1373968

URL: http://svn.apache.org/viewvc?rev=1373968&view=rev
Log:
Start implementing some ws-discovery stuff

Added:
    cxf/trunk/services/ws-discovery/
    cxf/trunk/services/ws-discovery/pom.xml
      - copied, changed from r1373967, cxf/trunk/services/pom.xml
    cxf/trunk/services/ws-discovery/ws-discovery-api/
    cxf/trunk/services/ws-discovery/ws-discovery-api/pom.xml
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/
    cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-schema-os.xsd
    
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl
Modified:
    cxf/trunk/services/pom.xml

Modified: cxf/trunk/services/pom.xml
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/pom.xml?rev=1373968&r1=1373967&r2=1373968&view=diff
==============================================================================
--- cxf/trunk/services/pom.xml (original)
+++ cxf/trunk/services/pom.xml Thu Aug 16 18:12:02 2012
@@ -35,6 +35,7 @@
     <modules>
         <module>sts</module>
         <module>wsn</module>
+        <module>ws-discovery</module>
     </modules>
 
 </project>

Copied: cxf/trunk/services/ws-discovery/pom.xml (from r1373967, 
cxf/trunk/services/pom.xml)
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/pom.xml?p2=cxf/trunk/services/ws-discovery/pom.xml&p1=cxf/trunk/services/pom.xml&r1=1373967&r2=1373968&rev=1373968&view=diff
==============================================================================
--- cxf/trunk/services/pom.xml (original)
+++ cxf/trunk/services/ws-discovery/pom.xml Thu Aug 16 18:12:02 2012
@@ -18,23 +18,22 @@
 -->
 <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>org.apache.cxf.services</groupId>
-    <artifactId>cxf-services</artifactId>
+    <groupId>org.apache.cxf.services.ws-discovery</groupId>
+    <artifactId>cxf-services-ws-discovery</artifactId>
     <packaging>pom</packaging>
     <version>2.7.0-SNAPSHOT</version>
-    <name>Apache CXF Services</name>
+    <name>Apache CXF WS-Discovery service</name>
     <url>http://cxf.apache.org</url>
 
     <parent>
-        <groupId>org.apache.cxf</groupId>
-        <artifactId>cxf</artifactId>
-        <relativePath>../pom.xml</relativePath>
+        <groupId>org.apache.cxf.services</groupId>
+        <artifactId>cxf-services</artifactId>
         <version>2.7.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
     </parent>
 
     <modules>
-        <module>sts</module>
-        <module>wsn</module>
+        <module>ws-discovery-api</module>
     </modules>
 
 </project>

Added: cxf/trunk/services/ws-discovery/ws-discovery-api/pom.xml
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/ws-discovery-api/pom.xml?rev=1373968&view=auto
==============================================================================
--- cxf/trunk/services/ws-discovery/ws-discovery-api/pom.xml (added)
+++ cxf/trunk/services/ws-discovery/ws-discovery-api/pom.xml Thu Aug 16 
18:12:02 2012
@@ -0,0 +1,129 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+ 
+  http://www.apache.org/licenses/LICENSE-2.0
+ 
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.cxf.services.ws-discovery</groupId>
+    <artifactId>cxf-services-ws-discovery-api</artifactId>
+    <packaging>jar</packaging>
+    <version>2.7.0-SNAPSHOT</version>
+    <name>Apache CXF WS-Discovery API</name>
+    <description>Apache CXF WS-Discovery API</description>
+    <url>http://cxf.apache.org</url>
+
+    <parent>
+        <groupId>org.apache.cxf</groupId>
+        <artifactId>cxf-parent</artifactId>
+        <version>2.7.0-SNAPSHOT</version>
+        <relativePath>../../../parent/pom.xml</relativePath>
+    </parent>
+
+       <dependencies>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-api</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-frontend-jaxws</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-udp</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+    
+        <dependency>
+            <groupId>org.apache.cxf</groupId>
+            <artifactId>cxf-rt-transports-http-jetty</artifactId>
+            <version>${project.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+       
+       <build>
+               <plugins>
+            <plugin>
+                <groupId>org.apache.cxf</groupId>
+                <artifactId>cxf-codegen-plugin</artifactId>
+                   <version>${project.version}</version>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <defaultOptions>
+                                <markGenerated>true</markGenerated>
+                                
<faultSerialVersionUID>1</faultSerialVersionUID>
+                            </defaultOptions>
+                            <wsdlOptions>
+                                <wsdlOption>
+                                    
<wsdl>${basedir}/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl</wsdl>
+                                    <asyncMethods></asyncMethods>
+                                    <extraargs>
+                                        <extraArg>-p</extraArg>
+                                        
<extraArg>org.apache.cxf.ws.discovery.wsdl</extraArg>
+                                    </extraargs>
+                                </wsdlOption>
+                            </wsdlOptions>
+                        </configuration>
+                        <goals>
+                            <goal>wsdl2java</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+               </plugins>
+       </build>
+    
+    
+    <profiles>
+        <profile>
+            <id>setup.eclipse</id>
+            <build>
+                <defaultGoal>process-test-sources</defaultGoal>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>setup.eclipse.project.sdo</id>
+                                <phase>process-test-sources</phase>
+                                <configuration>
+                                    <target>
+                                        <!-- JAXB generated code for this 
generates some raw List types -->
+                                        <propertyfile 
file="${basedir}/.settings/org.eclipse.jdt.core.prefs">
+                                            <entry 
key="org.eclipse.jdt.core.compiler.problem.rawTypeReference" value="ignore" />
+                                            <entry 
key="org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation" 
value="ignore" />
+                                        </propertyfile>
+                                    </target>
+                                </configuration>
+                                <goals>
+                                    <goal>run</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

Added: 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java?rev=1373968&view=auto
==============================================================================
--- 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java
 (added)
+++ 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java
 Thu Aug 16 18:12:02 2012
@@ -0,0 +1,102 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.ws.discovery;
+
+import java.io.Closeable;
+import java.io.IOException;
+
+import javax.xml.transform.dom.DOMResult;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.ws.EndpointReference;
+import javax.xml.ws.soap.SOAPBinding;
+import javax.xml.ws.wsaddressing.W3CEndpointReference;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.ws.discovery.wsdl.ByeType;
+import org.apache.cxf.ws.discovery.wsdl.DiscoveryProxy;
+import org.apache.cxf.ws.discovery.wsdl.HelloType;
+
+/**
+ * 
+ */
+public class WSDiscoveryClient implements Closeable {
+    DiscoveryProxy client;
+    String address = "soap.udp://:3702";
+    Bus bus;
+    
+    public WSDiscoveryClient() {
+    }
+    
+    private synchronized DiscoveryProxy getClient() {
+        if (client == null) {
+            JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
+            if (bus != null) {
+                factory.setBus(bus);
+            }
+            factory.setBindingId(SOAPBinding.SOAP12HTTP_BINDING);
+            factory.setAddress(address);
+            client = factory.create(DiscoveryProxy.class);
+        }
+        return client;
+    }
+    public synchronized void close() throws IOException {
+        if (client != null) {
+            ((Closeable)client).close();
+            client = null;
+        }
+    }
+    public void finalize() throws Throwable {
+        super.finalize();
+        close();
+    }
+
+    public void register(HelloType hello) {
+        DiscoveryProxy c = getClient();
+        c.helloOp(hello);
+    }
+    public void register(EndpointReference ert) {
+        HelloType hello = new HelloType();
+        hello.setEndpointReference(toW3CEndpointReference(ert));
+        register(hello);
+    }
+
+    
+    
+    public void unregister(ByeType bye) {
+        DiscoveryProxy c = getClient();
+        c.byeOp(bye);
+    }
+    public void unregister(EndpointReference ert) {
+        ByeType bt = new ByeType();
+        bt.setEndpointReference(toW3CEndpointReference(ert));
+        unregister(bt);
+    }
+    
+    private W3CEndpointReference toW3CEndpointReference(EndpointReference ert) 
{
+        if (ert instanceof W3CEndpointReference) {
+            return (W3CEndpointReference)ert;
+        }
+        DOMResult res = new DOMResult();
+        ert.writeTo(res);
+        return new W3CEndpointReference(new DOMSource(res.getNode()));
+    }
+    
+}

Added: 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-schema-os.xsd
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-schema-os.xsd?rev=1373968&view=auto
==============================================================================
--- 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-schema-os.xsd
 (added)
+++ 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-schema-os.xsd
 Thu Aug 16 18:12:02 2012
@@ -0,0 +1,230 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) OASIS(r) 2009. All Rights Reserved.
+
+All capitalized terms in the following text have the meanings assigned to them 
in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The 
full Policy may be found at the OASIS website.
+
+This document and translations of it may be copied and furnished to others, 
and derivative works that comment on or otherwise explain it or assist in its 
implementation may be prepared, copied, published, and distributed, in whole or 
in part, without restriction of any kind, provided that the above copyright 
notice and this section are included on all such copies and derivative works. 
However, this document itself may not be modified in any way, including by 
removing the copyright notice or references to OASIS, except as needed for the 
purpose of developing any document or deliverable produced by an OASIS 
Technical Committee (in which case the rules applicable to copyrights, as set 
forth in the OASIS IPR Policy, must be followed) or as required to translate it 
into languages other than English.
+
+The limited permissions granted above are perpetual and will not be revoked by 
OASIS or its successors or assigns.
+
+This document and the information contained herein is provided on an "AS IS" 
basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT 
LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT 
INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR 
FITNESS FOR A PARTICULAR PURPOSE.
+
+OASIS requests that any OASIS Party or any other party that believes it has 
patent claims that would necessarily be infringed by implementations of this 
OASIS Committee Specification or OASIS Standard, to notify OASIS TC 
Administrator and provide an indication of its willingness to grant patent 
licenses to such patent claims in a manner consistent with the IPR Mode of the 
OASIS Technical Committee that produced this specification.
+
+OASIS invites any party to contact the OASIS TC Administrator if it is aware 
of a claim of ownership of any patent claims that would necessarily be 
infringed by implementations of this specification by a patent holder that is 
not willing to provide a license to such patent claims in a manner consistent 
with the IPR Mode of the OASIS Technical Committee that produced this 
specification. OASIS may include such claims on its website, but disclaims any 
obligation to do so.
+
+OASIS takes no position regarding the validity or scope of any intellectual 
property or other rights that might be claimed to pertain to the implementation 
or use of the technology described in this document or the extent to which any 
license under such rights might or might not be available; neither does it 
represent that it has made any effort to identify any such rights. Information 
on OASIS' procedures with respect to rights in any document or deliverable 
produced by an OASIS Technical Committee can be found on the OASIS website. 
Copies of claims of rights made available for publication and any assurances of 
licenses to be made available, or the result of an attempt made to obtain a 
general license or permission for the use of such proprietary rights by 
implementers or users of this OASIS Committee Specification or OASIS Standard, 
can be obtained from the OASIS TC Administrator. OASIS makes no representation 
that any information or list of intellectual property rights wi
 ll at any time be complete, or that any claims in such list are, in fact, 
Essential Claims.
+
+The name "OASIS" is trademarks of OASIS, the owner and developer of this 
specification, and should be used only to refer to the organization and its 
official outputs. OASIS welcomes reference to, and implementation and use of, 
specifications, while reserving the right to enforce its marks against 
misleading uses. Please see http://www.oasis-open.org/who/trademark.php for 
above guidance.
+-->
+<xs:schema
+    targetNamespace="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01";
+    xmlns:tns="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01";
+    xmlns:wsa="http://www.w3.org/2005/08/addressing";
+    xmlns:xs="http://www.w3.org/2001/XMLSchema";
+    elementFormDefault="qualified"
+    blockDefault="#all" >
+
+  <xs:import
+      namespace="http://www.w3.org/2005/08/addressing";
+      schemaLocation="http://www.w3.org/2006/03/addressing/ws-addr.xsd"; />
+
+  <!-- //////////////////// Discovery Messages //////////////////// -->
+
+  <xs:element name="Hello" type="tns:HelloType" />
+  <xs:complexType name="HelloType" >
+    <xs:sequence>
+      <xs:element ref="wsa:EndpointReference" />
+      <xs:element ref="tns:Types" minOccurs="0" />
+      <xs:element ref="tns:Scopes" minOccurs="0" />
+      <xs:element ref="tns:XAddrs" minOccurs="0" />
+      <xs:element ref="tns:MetadataVersion" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="Bye" type="tns:ByeType" />
+  <xs:complexType name="ByeType" >
+    <xs:sequence>
+      <xs:element ref="wsa:EndpointReference" />
+      <xs:element ref="tns:Types" minOccurs="0" />
+      <xs:element ref="tns:Scopes" minOccurs="0" />
+      <xs:element ref="tns:XAddrs" minOccurs="0" />
+      <xs:element ref="tns:MetadataVersion" minOccurs="0" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="Probe" type="tns:ProbeType" />
+  <xs:complexType name="ProbeType" >
+    <xs:sequence>
+      <xs:element ref="tns:Types" minOccurs="0" />
+      <xs:element ref="tns:Scopes" minOccurs="0" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="ProbeMatches" type="tns:ProbeMatchesType" />
+  <xs:complexType name="ProbeMatchesType" >
+    <xs:sequence>
+      <xs:element name="ProbeMatch"
+                  type="tns:ProbeMatchType"
+                  minOccurs="0"
+                  maxOccurs="unbounded" >
+      </xs:element>
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+  <xs:complexType name="ProbeMatchType" >
+    <xs:sequence>
+      <xs:element ref="wsa:EndpointReference" />
+      <xs:element ref="tns:Types" minOccurs="0" />
+      <xs:element ref="tns:Scopes" minOccurs="0" />
+      <xs:element ref="tns:XAddrs" minOccurs="0" />
+      <xs:element ref="tns:MetadataVersion" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="Resolve" type="tns:ResolveType" />
+  <xs:complexType name="ResolveType" >
+    <xs:sequence>
+      <xs:element ref="wsa:EndpointReference" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="ResolveMatches" type="tns:ResolveMatchesType" />
+  <xs:complexType name="ResolveMatchesType" >
+    <xs:sequence>
+      <xs:element name="ResolveMatch" 
+                  type="tns:ResolveMatchType"
+                  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="ResolveMatchType" >
+    <xs:sequence>
+      <xs:element ref="wsa:EndpointReference" />
+      <xs:element ref="tns:Types" minOccurs="0" />
+      <xs:element ref="tns:Scopes" minOccurs="0" />
+      <xs:element ref="tns:XAddrs" minOccurs="0" />
+      <xs:element ref="tns:MetadataVersion" />
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType>
+
+  <xs:element name="Types" type="tns:QNameListType" />
+  <xs:simpleType name="QNameListType" >
+    <xs:list itemType="xs:QName" />
+  </xs:simpleType>
+
+  <xs:element name="Scopes" type="tns:ScopesType" />
+  <xs:complexType name="ScopesType" >
+    <xs:simpleContent>
+      <xs:extension base="tns:UriListType" >
+        <xs:attribute name="MatchBy" type="xs:anyURI" />
+        <xs:anyAttribute namespace="##other" processContents="lax" />
+      </xs:extension>
+    </xs:simpleContent>
+  </xs:complexType>
+
+  <xs:element name="XAddrs" type="tns:UriListType" />
+  <xs:simpleType name="UriListType" >
+    <xs:list itemType="xs:anyURI" />
+  </xs:simpleType>
+
+  <xs:element name="MetadataVersion" type="xs:unsignedInt" />
+
+  <!-- //////////////////// Faults //////////////////// -->
+
+  <xs:simpleType name="FaultCodeType" >
+       <xs:restriction base="xs:QName" >
+         <xs:enumeration value="tns:MatchingRuleNotSupported" />
+       </xs:restriction>
+  </xs:simpleType>
+  <xs:simpleType name="FaultCodeOpenType" >
+    <xs:union memberTypes="tns:FaultCodeType xs:QName" />
+  </xs:simpleType>
+
+  <xs:element name="SupportedMatchingRules" type="tns:UriListType" />
+
+  <!-- //////////////////// Compact Signature //////////////////// -->
+
+  <xs:attribute name="Id" type="xs:ID"/>
+
+  <xs:element name="Security" type="tns:SecurityType" />
+  <xs:complexType name="SecurityType" >
+    <xs:sequence>
+      <xs:element ref="tns:Sig" minOccurs="0" />
+    </xs:sequence>
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType> 
+
+  <xs:element name="Sig" type="tns:SigType" />
+  <xs:complexType name="SigType" >
+    <xs:sequence>
+      <xs:any namespace="##other"
+              processContents="lax"
+              minOccurs="0"
+              maxOccurs="unbounded" />
+    </xs:sequence>
+    <xs:attribute name="Scheme" type="xs:anyURI" use="required" />
+    <xs:attribute name="KeyId" type="xs:base64Binary" />
+    <xs:attribute name="Refs" type="xs:IDREFS" use="required" />
+    <xs:attribute name="Sig" type="xs:base64Binary" use="required" />
+    <xs:anyAttribute namespace="##other" processContents="lax" />
+  </xs:complexType> 
+
+  <!-- //////////////////// General Headers //////////////////// -->
+
+  <xs:element name="AppSequence" type="tns:AppSequenceType" />
+  <xs:complexType name="AppSequenceType" >
+    <xs:complexContent>
+      <xs:restriction base="xs:anyType" >
+        <xs:attribute name="InstanceId"
+                      type="xs:unsignedInt"
+                      use="required" />
+        <xs:attribute name="SequenceId" type="xs:anyURI" />
+        <xs:attribute name="MessageNumber"
+                      type="xs:unsignedInt"
+                      use="required" />
+        <xs:anyAttribute namespace="##other" processContents="lax" />
+      </xs:restriction>
+    </xs:complexContent>
+  </xs:complexType>
+
+</xs:schema>

Added: 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl
URL: 
http://svn.apache.org/viewvc/cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl?rev=1373968&view=auto
==============================================================================
--- 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl
 (added)
+++ 
cxf/trunk/services/ws-discovery/ws-discovery-api/src/main/resources/org/apache/cxf/ws/discovery/wsdl/wsdd-discovery-1.1-wsdl-os.wsdl
 Thu Aug 16 18:12:02 2012
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Copyright (c) OASIS(r) 2009. All Rights Reserved.
+
+All capitalized terms in the following text have the meanings assigned to them 
in the OASIS Intellectual Property Rights Policy (the "OASIS IPR Policy"). The 
full Policy may be found at the OASIS website.
+
+This document and translations of it may be copied and furnished to others, 
and derivative works that comment on or otherwise explain it or assist in its 
implementation may be prepared, copied, published, and distributed, in whole or 
in part, without restriction of any kind, provided that the above copyright 
notice and this section are included on all such copies and derivative works. 
However, this document itself may not be modified in any way, including by 
removing the copyright notice or references to OASIS, except as needed for the 
purpose of developing any document or deliverable produced by an OASIS 
Technical Committee (in which case the rules applicable to copyrights, as set 
forth in the OASIS IPR Policy, must be followed) or as required to translate it 
into languages other than English.
+
+The limited permissions granted above are perpetual and will not be revoked by 
OASIS or its successors or assigns.
+
+This document and the information contained herein is provided on an "AS IS" 
basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT 
LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT 
INFRINGE ANY OWNERSHIP RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR 
FITNESS FOR A PARTICULAR PURPOSE.
+
+OASIS requests that any OASIS Party or any other party that believes it has 
patent claims that would necessarily be infringed by implementations of this 
OASIS Committee Specification or OASIS Standard, to notify OASIS TC 
Administrator and provide an indication of its willingness to grant patent 
licenses to such patent claims in a manner consistent with the IPR Mode of the 
OASIS Technical Committee that produced this specification.
+
+OASIS invites any party to contact the OASIS TC Administrator if it is aware 
of a claim of ownership of any patent claims that would necessarily be 
infringed by implementations of this specification by a patent holder that is 
not willing to provide a license to such patent claims in a manner consistent 
with the IPR Mode of the OASIS Technical Committee that produced this 
specification. OASIS may include such claims on its website, but disclaims any 
obligation to do so.
+
+OASIS takes no position regarding the validity or scope of any intellectual 
property or other rights that might be claimed to pertain to the implementation 
or use of the technology described in this document or the extent to which any 
license under such rights might or might not be available; neither does it 
represent that it has made any effort to identify any such rights. Information 
on OASIS' procedures with respect to rights in any document or deliverable 
produced by an OASIS Technical Committee can be found on the OASIS website. 
Copies of claims of rights made available for publication and any assurances of 
licenses to be made available, or the result of an attempt made to obtain a 
general license or permission for the use of such proprietary rights by 
implementers or users of this OASIS Committee Specification or OASIS Standard, 
can be obtained from the OASIS TC Administrator. OASIS makes no representation 
that any information or list of intellectual property rights wi
 ll at any time be complete, or that any claims in such list are, in fact, 
Essential Claims.
+
+The name "OASIS" is trademarks of OASIS, the owner and developer of this 
specification, and should be used only to refer to the organization and its 
official outputs. OASIS welcomes reference to, and implementation and use of, 
specifications, while reserving the right to enforce its marks against 
misleading uses. Please see http://www.oasis-open.org/who/trademark.php for 
above guidance.
+-->
+<wsdl:definitions
+    targetNamespace="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01";
+    xmlns:tns="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01";
+    xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"; >
+  <wsdl:types>
+    <xs:schema>
+      <xs:import
+          namespace="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01";
+          schemaLocation="wsdd-discovery-1.1-schema-os.xsd" />
+    </xs:schema>
+  </wsdl:types>
+
+  <wsdl:message name="HelloMessage" >
+    <wsdl:part name="parameters" element="tns:Hello" />
+  </wsdl:message>
+
+  <wsdl:message name="ByeMessage" >
+    <wsdl:part name="parameters" element="tns:Bye" />
+  </wsdl:message>
+
+  <wsdl:message name="ProbeMessage" >
+    <wsdl:part name="parameters" element="tns:Probe" />
+  </wsdl:message>
+
+  <wsdl:message name="ProbeMatchMessage" >
+    <wsdl:part name="parameters" element="tns:ProbeMatches" />
+  </wsdl:message>
+
+  <wsdl:message name="ResolveMessage" >
+    <wsdl:part name="parameters" element="tns:Resolve" />
+  </wsdl:message>
+
+  <wsdl:message name="ResolveMatchMessage" >
+    <wsdl:part name="parameters" element="tns:ResolveMatches" />
+  </wsdl:message>
+
+  <!-- wsdl:portType name="TargetService" >
+    <wsdl:operation name="HelloOp" >
+      <wsdl:output message="tns:HelloMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Hello";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ByeOp" >
+      <wsdl:output message="tns:ByeMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Bye";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ProbeOp" >
+      <wsdl:input message="tns:ProbeMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Probe";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ProbeMatchOp" >
+      <wsdl:output message="tns:ProbeMatchMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ProbeMatches";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ResolveOp" >
+      <wsdl:input message="tns:ResolveMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Resolve";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ResolveMatchOp" >
+      <wsdl:output message="tns:ResolveMatchMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ResolveMatches";
+      />
+    </wsdl:operation>
+  </wsdl:portType-->
+
+  <!-- If this portType is included in Types, it indicates the 
+       Target Service is a Discovery Proxy operating in a managed mode. 
+       Discovery Proxies also implement tns:TargetService in an ad hoc mode.
+  -->
+  <wsdl:portType name="DiscoveryProxy">
+    <wsdl:operation name="HelloOp" >
+      <wsdl:input message="tns:HelloMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Hello";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ByeOp" >
+      <wsdl:input message="tns:ByeMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Bye";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ProbeOp" >
+      <wsdl:input message="tns:ProbeMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Probe";
+      />
+      <wsdl:output message="tns:ProbeMatchMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ProbeMatches";
+      />
+    </wsdl:operation>
+    <wsdl:operation name="ResolveOp" >
+      <wsdl:input message="tns:ResolveMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/Resolve";
+      />
+      <wsdl:output message="tns:ResolveMatchMessage"
+      wsaw:Action
+      ="http://docs.oasis-open.org/ws-dd/ns/discovery/2009/01/ResolveMatches";
+      />
+    </wsdl:operation>
+  </wsdl:portType>
+</wsdl:definitions>


Reply via email to