cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject svn commit: r446546 - in /incubator/cxf/trunk: distribution/src/main/release/samples/callback/ distribution/src/main/release/samples/callback/build/ distribution/src/main/release/samples/callback/src/ distribution/src/main/release/samples/callback/src/...
Date Fri, 15 Sep 2006 08:28:02 GMT
Author: ffang
Date: Fri Sep 15 01:28:01 2006
New Revision: 446546

URL: http://svn.apache.org/viewvc?view=rev&rev=446546
Log:
[JIRA CXF-85] add callback demo

Added:
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt   (with
props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/build/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml   (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
  (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
  (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
  (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
  (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
  (with props)
    incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd  
(with props)
Modified:
    incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/Messages.properties

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt Fri Sep
15 01:28:01 2006
@@ -0,0 +1,112 @@
+Callback demo
+=============================================
+
+This demo demonstrates a client creating a callback object, 
+passing an EndpointReferenceType over to the server.
+The EndpointRefrenceType is then used to allow the server 
+to call back on the callback object 
+
+Please review the README in the samples directory before
+continuing.
+
+
+
+Prerequisite
+------------
+
+If your environment already includes celtix.jar on the
+CLASSPATH, and the JDK and ant bin directories on the PATH
+it is not necessary to run the environment script described in
+the samples directory README.  If your environment is not
+properly configured, or if you are planning on using wsdl2java,
+javac, and java to build and run the demos, you must set the
+environment by running the script.
+
+
+
+Building and running the demo using ant
+---------------------------------------
+
+From the samples/basic_callback directory, the ant build script
+can be used to build and run the demo.
+
+Using either UNIX or Windows:
+
+  ant build
+  ant server
+  ant client
+    
+
+To remove the code generated from the WSDL file and the .class
+files, run:
+
+  ant clean
+
+
+
+Building the demo using wsdl2java and javac
+------------------------------------------
+
+From the samples/basic_callback directory, first create the target
+directory build/classes and then generate code from the WSDL file.
+
+For UNIX:
+  mkdir -p build/classes
+
+  wsdl2java -d build/classes -compile ./wsdl/basic_callback.wsdl
+
+For Windows:
+  mkdir build\classes
+    Must use back slashes.
+
+  wsdl2java -d build\classes -compile .\wsdl\basic_callback.wsdl
+    May use either forward or back slashes.
+
+Now compile the provided client and server applications with the commands:
+
+For UNIX:  
+  
+  export CLASSPATH=$CLASSPATH:$CELTIX_HOME/lib/celtix.jar:./build/classes
+  javac -d build/classes src/demo/callback/client/*.java
+  javac -d build/classes src/demo/callback/server/*.java
+
+For Windows:
+  set classpath=%classpath%;%CELTIX_HOME%\lib\celtix.jar:.\build\classes
+  javac -d build\classes src\demo\callback\client\*.java
+  javac -d build\classes src\demo\callback\server\*.java
+
+
+
+Running the demo using java
+---------------------------
+
+From the samples/basic_callback directory run the commands, entered on a
+single command line:
+
+For UNIX (must use forward slashes):
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         demo.callback.server.Server &
+
+    java -Djava.util.logging.config.file=$CELTIX_HOME/etc/logging.properties
+         demo.callback.client.Client ./wsdl/basic_callback.wsdl
+
+The server process starts in the background.  After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+  start 
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+         demo.callback.server.Server
+
+    java -Djava.util.logging.config.file=%CELTIX_HOME%\etc\logging.properties
+       demo.callback.client.Client .\wsdl\basic_callback.wsdl
+
+A new command windows opens for the server process.  After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+To remove the code generated from the WSDL file and the .class
+files, either delete the build directory and its contents or run:
+
+  ant clean
+
+

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml Fri Sep 15
01:28:01 2006
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!--
+  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 name="callback demo" default="build" basedir=".">
+
+    <import file="../common_build.xml"/>        
+        
+    <target name="client" description="run demo client" depends="build">
+        <property name="param" value=""/>
+        <cxfrun classname="demo.callback.client.Client"
+            param1="${basedir}/wsdl/basic_callback.wsdl" 
+            param2="${op}" 
+            param3="${param}"/>
+    </target> 
+        
+    <target name="server" description="run demo server" depends="build">
+        <cxfrun classname="demo.callback.server.Server" 
+            param1="${basedir}/wsdl/basic_callback.wsdl"/>
+    </target>
+        
+    <target name="generate.code">
+        <echo level="info" message="Generating code using wsdl2java..."/>
+        <wsdl2java file="basic_callback.wsdl"/>
+    </target>
+    
+</project>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/build.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
Fri Sep 15 01:28:01 2006
@@ -0,0 +1,45 @@
+/**
+ * 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 demo.callback.client;
+
+import org.apache.callback.CallbackPortType;
+
+
+@javax.jws.WebService(serviceName = "CallbackService", 
+                      portName = "CallbackPort",
+                      endpointInterface = "org.apache.callback.CallbackPortType",
+                      targetNamespace = "http://apache.org/callback")
+                  
+public class CallbackImpl implements CallbackPortType  {
+
+    
+    /**
+     * serverSayHi
+     * @param: return_message (String)
+     * @return: String
+     */
+    public String serverSayHi(String message) {
+        System.out.println("Callback object invoked");
+        System.out.println("Message recieved: " + message);
+        return new String("Hi " + message);
+    }
+    
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/CallbackImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
Fri Sep 15 01:28:01 2006
@@ -0,0 +1,91 @@
+/**
+ * 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 demo.callback.client;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Endpoint;
+
+import org.apache.callback.SOAPService;
+import org.apache.callback.ServerPortType;
+import org.apache.cxf.ws.addressing.EndpointReferenceType;
+import org.apache.cxf.wsdl.EndpointReferenceUtils;
+
+
+
+
+
+public final class Client {
+
+    private static final QName SERVICE_NAME 
+        = new QName("http://apache.org/callback", "SOAPService");
+
+    private static final QName SERVICE_NAME_CALLBACK 
+        = new QName("http://apache.org/callback", "CallbackService");
+    
+    private static final QName PORT_NAME_CALLBACK 
+        = new QName("http://apache.org/callback", "CallbackPort");
+    
+    private static final QName PORT_TYPE_CALLBACK
+        = new QName("http://apache.org/callback", "CallbackPortType");
+
+    private Client() {
+    } 
+
+    public static void main(String args[]) throws Exception {
+        
+        
+        Object implementor = new CallbackImpl();
+        String address = "http://localhost:9005/CallbackContext/CallbackPort";
+        Endpoint.publish(address, implementor);
+        
+        if (args.length == 0) { 
+            System.out.println("please specify wsdl");
+            System.exit(1); 
+        }
+
+        URL wsdlURL;
+        File wsdlFile = new File(args[0]);
+        if (wsdlFile.exists()) {
+            wsdlURL = wsdlFile.toURL();
+        } else {
+            wsdlURL = new URL(args[0]);
+        }
+        
+        SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
+        ServerPortType port = ss.getSOAPPort();
+        
+        EndpointReferenceType ref =
+            EndpointReferenceUtils.getEndpointReference(wsdlURL,
+                                                        SERVICE_NAME_CALLBACK, 
+                                                        PORT_NAME_CALLBACK.getLocalPart());
+        EndpointReferenceUtils.setInterfaceName(ref, PORT_TYPE_CALLBACK);
+        
+
+        String resp = port.registerCallback(ref);
+        System.out.println("Response from server: " + resp);
+        
+        System.exit(0); 
+    }
+
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/client/Client.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
Fri Sep 15 01:28:01 2006
@@ -0,0 +1,41 @@
+/**
+ * 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 demo.callback.server;
+
+import javax.xml.ws.Endpoint;
+
+public class Server {
+
+    protected Server() throws Exception {
+        System.out.println("Starting Server");
+        Object implementor = new ServerImpl();
+        String address = "http://localhost:9000/SoapContext/SoapPort";
+        Endpoint.publish(address, implementor);
+    }
+
+    public static void main(String args[]) throws Exception {
+        new Server();
+        System.out.println("Server ready...");
+        Thread.sleep(5 * 60 * 1000);
+        System.out.println("Server exiting");
+        System.exit(0);
+    }
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/Server.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
Fri Sep 15 01:28:01 2006
@@ -0,0 +1,91 @@
+/**
+ * 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 demo.callback.server;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.apache.callback.CallbackPortType;
+import org.apache.callback.ServerPortType;
+import org.apache.cxf.jaxb.JAXBUtils;
+import org.apache.cxf.ws.addressing.EndpointReferenceType;
+import org.apache.cxf.wsdl.EndpointReferenceUtils;
+import org.apache.cxf.wsdl.WSDLManager;
+import org.apache.cxf.wsdl11.WSDLManagerImpl;
+
+
+@javax.jws.WebService(serviceName = "SOAPService", 
+                      portName = "SOAPPort",
+                      targetNamespace = "http://apache.org/callback",
+                      endpointInterface = "org.apache.callback.ServerPortType") 
+                  
+public class ServerImpl implements ServerPortType  {
+    
+    public String registerCallback(EndpointReferenceType callback) {
+        
+        try {
+
+            WSDLManager manager = new WSDLManagerImpl();
+        
+            QName interfaceName = EndpointReferenceUtils.getInterfaceName(callback);
+            String wsdlLocation = EndpointReferenceUtils.getWSDLLocation(callback);
+            QName serviceName = EndpointReferenceUtils.getServiceName(callback);
+            String portString = EndpointReferenceUtils.getPortName(callback);
+            
+            QName portName = new QName(serviceName.getNamespaceURI(), portString);
+            
+            StringBuffer seiName = new StringBuffer();
+            seiName.append(JAXBUtils.namespaceURIToPackage(interfaceName.getNamespaceURI()));
+            seiName.append(".");
+            seiName.append(JAXBUtils.nameToIdentifier(interfaceName.getLocalPart(),
+                                                      JAXBUtils.IdentifierType.INTERFACE));
+
+            System.out.println("the seiname is " + seiName.toString()); 
+            Class<?> sei = null;    
+            try {
+                sei = Class.forName(seiName.toString(), 
+                                    true, manager.getClass().getClassLoader());
+            } catch (ClassNotFoundException ex) {
+                ex.printStackTrace();
+            }
+            
+            URL wsdlURL = new URL(wsdlLocation);            
+            
+            Service service = Service.create(wsdlURL, serviceName);
+            CallbackPortType port =  (CallbackPortType)service.getPort(portName, sei);
+
+            System.out.println("Invoking on callback object");
+            String resp = port.serverSayHi(System.getProperty("user.name"));
+            System.out.println("Response from callback object: " + resp);
+  
+
+            
+        } catch (Exception ex) {
+            ex.printStackTrace();
+            return null;
+        }
+        
+        return "registerCallback called";     
+    }
+    
+    
+}

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/src/demo/callback/server/ServerImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
(added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
Fri Sep 15 01:28:01 2006
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements. See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership. The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License. You may obtain a copy of the License at
+                                                                                        
                                                                    
+  http://www.apache.org/licenses/LICENSE-2.0
+                                                                                        
                                                                    
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied. See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+
+<wsdl:definitions name="basic_callback" targetNamespace="http://apache.org/callback"
+		  xmlns="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:references="http://www.w3.org/2005/08/addressing" 
+		  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
+		  xmlns:tns="http://apache.org/callback" 
+		  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
+		  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+		  xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">
+    
+
+
+    <wsdl:types> 
+
+	<schema targetNamespace="http://apache.org/callback" 
+		xmlns="http://www.w3.org/2001/XMLSchema" 
+		xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+		xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" 
+		jaxb:version="2.0">
+
+	    <xsd:import namespace="http://www.w3.org/2005/08/addressing" schemaLocation="ws-addr.xsd"/>
+	    <element name="callback_message" type="xsd:string"/>
+	    <element name="RegisterCallback" type="references:EndpointReferenceType"/>
+	    <element name="returnType" type="xsd:string"/>
+	</schema>
+    </wsdl:types>
+    <wsdl:message name="server_sayHi">
+	<wsdl:part element="tns:callback_message" name="return_message"/>
+    </wsdl:message>
+    <wsdl:message name="register_callback">
+	<wsdl:part element="tns:RegisterCallback" name="callback_object"/>
+    </wsdl:message>
+    <wsdl:message name="returnMessage">
+	<wsdl:part element="tns:returnType" name="the_return"/>
+    </wsdl:message>
+    <wsdl:portType name="CallbackPortType">
+	<wsdl:operation name="ServerSayHi">
+	    <wsdl:input message="tns:server_sayHi" name="ServerSayHiRequest"/>
+	    <wsdl:output message="tns:returnMessage" name="ServerSayHiResponse"/>
+	</wsdl:operation>
+    </wsdl:portType>
+    <wsdl:portType name="ServerPortType">
+	<wsdl:operation name="RegisterCallback">
+	    <wsdl:input message="tns:register_callback" name="RegisterCallbackRequest"/>
+	    <wsdl:output message="tns:returnMessage" name="RegisterCallbackResponse"/>
+	</wsdl:operation>
+    </wsdl:portType>
+    <wsdl:binding name="CallbackPortType_SOAPBinding" type="tns:CallbackPortType">
+	<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+	<wsdl:operation name="ServerSayHi">
+	    <soap:operation soapAction="" style="document"/>
+	    <wsdl:input name="ServerSayHiRequest">
+		<soap:body use="literal"/>
+	    </wsdl:input>
+	    <wsdl:output name="ServerSayHiResponse">
+		<soap:body use="literal"/>
+	    </wsdl:output>
+	</wsdl:operation>
+    </wsdl:binding>
+    <wsdl:binding name="ServerPortType_SOAPBinding" type="tns:ServerPortType">
+	<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+	<wsdl:operation name="RegisterCallback">
+	    <soap:operation soapAction="" style="document"/>
+	    <wsdl:input name="RegisterCallbackRequest">
+		<soap:body use="literal"/>
+	    </wsdl:input>
+	    <wsdl:output name="RegisterCallbackResponse">
+		<soap:body use="literal"/>
+	    </wsdl:output>
+	</wsdl:operation>
+    </wsdl:binding>
+    <wsdl:service name="CallbackService">
+	<wsdl:port binding="tns:CallbackPortType_SOAPBinding" name="CallbackPort">
+	    <soap:address location="http://localhost:9005/CallbackContext/CallbackPort"/>
+	</wsdl:port>
+    </wsdl:service>
+    <wsdl:service name="SOAPService">
+	<wsdl:port binding="tns:ServerPortType_SOAPBinding" name="SOAPPort">
+	    <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
+	</wsdl:port>
+    </wsdl:service>
+</wsdl:definitions>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/basic_callback.wsdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd?view=auto&rev=446546
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd (added)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd Fri
Sep 15 01:28:01 2006
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
+<!--
+W3C XML Schema defined in the Web Services Addressing 1.0 specification
+http://www.w3.org/TR/ws-addr-core
+
+Copyright ?? 2005 World Wide Web Consortium,
+
+(Massachusetts Institute of Technology, European Research Consortium for
+Informatics and Mathematics, Keio University). All Rights Reserved. This
+work is distributed under the W3C?? Software License [1] in the hope that
+it will be useful, but WITHOUT ANY WARRANTY; without even the implied
+warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+
+$Id: ws-addr.xsd,v 1.3 2005/08/09 13:17:35 hugo Exp $
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.w3.org/2005/08/addressing"
targetNamespace="http://www.w3.org/2005/08/addressing" blockDefault="#all" elementFormDefault="qualified"
finalDefault="" attributeFormDefault="unqualified"
+xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" jaxb:version="2.0">
+    
+    <!-- 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>

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/cxf/trunk/distribution/src/main/release/samples/callback/wsdl/ws-addr.xsd
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/Messages.properties
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/Messages.properties?view=diff&rev=446546&r1=446545&r2=446546
==============================================================================
--- incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/Messages.properties
(original)
+++ incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/support/Messages.properties
Fri Sep 15 01:28:01 2006
@@ -1,4 +1,5 @@
 SEI_LOAD_FAILURE_EXC = Failed to load service endpoint interface.
+SEI_LOAD_FAILURE_MSG = Could not load Webservice SEI
 SEI_WITHOUT_WEBSERVICE_ANNOTATION_EXC = Service endpoint interface does not have a @WebService
annotation.
 ILLEGAL_ATTRIBUTE_IN_SEI_ANNOTATION_EXC = Attributes portName, serviceName and endpointInterface
are not allowed in the @WebService annotation of an SEI.
 MALFORMED_URL_IN_WEBSERVICE_ANNOTATION_EXC = Malformed url in @WwebService annotation attribute
wsdlLocation.



Mime
View raw message