The modification of README in dispatch_provider is not correct,
first, there is no need to specify the wsdl to the Provider,
second, need copy the resource into the build dir, if run the demo with java.

Cheers,
James.
Author: tli
Date: Wed Nov 29 02:08:38 2006
New Revision: 480508

URL: http://svn.apache.org/viewvc?view=rev&rev=480508
Log:
fix the minor issues in README.txt

Modified:
    
incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt
    
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/README.txt
    
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/src/demo/hwDispatch/client/Client.java
    
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
    
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt
    
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
    incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt
    
incubator/cxf/trunk/distribution/src/main/release/samples/soap_header/README.txt

Modified: 
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=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt 
(original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/callback/README.txt 
Wed Nov 29 02:08:38 2006
@@ -71,7 +71,7 @@
   javac -d build/classes src/demo/callback/server/*.java
For Windows:
-  set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar:.\build\classes
+  set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes
   javac -d build\classes src\demo\callback\client\*.java
   javac -d build\classes src\demo\callback\server\*.java
Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/README.txt
 (original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/README.txt
 Wed Nov 29 02:08:38 2006
@@ -76,7 +76,7 @@
   set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes
   javac -d build\classes src\demo\hwDispatch\client\*.java
   javac -d build\classes src\demo\hwDispatch\server\*.java
-
+ Running the demo using java
@@ -87,7 +87,7 @@
For UNIX (must use forward slashes):
     java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
-         demo.hwDispatch.server.Server &
+         demo.hwDispatch.server.Server ./wsdl/hello_world.wsdl &
java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
          demo.hwDispatch.client.Client ./wsdl/hello_world.wsdl
@@ -98,7 +98,7 @@
 For Windows (may use either forward or back slashes):
start java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
-         demo.hwDispatch.server.Server
+         demo.hwDispatch.server.Server .\wsdl\hello_world.wsdl
java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
        demo.hwDispatch.client.Client .\wsdl\hello_world.wsdl

Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/src/demo/hwDispatch/client/Client.java
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/src/demo/hwDispatch/client/Client.java?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/src/demo/hwDispatch/client/Client.java
 (original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/dispatch_provider/src/demo/hwDispatch/client/Client.java
 Wed Nov 29 02:08:38 2006
@@ -62,6 +62,10 @@
SOAPService1 service1 = new SOAPService1(wsdlURL, serviceName1); InputStream is1 = Client.class.getResourceAsStream("GreetMeDocLiteralReq1.xml");
+        if (is1 == null) {
+            System.err.println("Failed to create input stream from file 
GreetMeDocLiteralReq1.xml, please check");
+            System.exit(-1);
+        }
         SOAPMessage soapReq1 = factory.createMessage(null, is1);
Dispatch<SOAPMessage> dispSOAPMsg = service1.createDispatch(portName1, @@ -76,6 +80,10 @@ SOAPService2 service2 = new SOAPService2(wsdlURL, serviceName2);
         InputStream is2 =  
Client.class.getResourceAsStream("GreetMeDocLiteralReq2.xml");
+        if (is2 == null) {
+            System.err.println("Failed to create input stream from file 
GreetMeDocLiteralReq2.xml, please check");
+            System.exit(-1);
+        }
         SOAPMessage soapReq2 = factory.createMessage(null, is2);
         DOMSource domReqMessage = new DOMSource(soapReq2.getSOAPPart());
@@ -91,7 +99,12 @@ QName portName3 = new QName("http://apache.org/hello_world_soap_http";, "SoapPort3"); SOAPService3 service3 = new SOAPService3(wsdlURL, serviceName3); - InputStream is3 = Client.class.getResourceAsStream("GreetMeDocLiteralReq3.xml"); + InputStream is3 = Client.class.getResourceAsStream("GreetMeDocLiteralReq3.xml");
+        if (is3 == null) {
+            System.err.println("Failed to create input stream from file 
GreetMeDocLiteralReq3.xml, please check");
+            System.exit(-1);
+        }
+
         SOAPMessage soapReq3 = 
MessageFactory.newInstance().createMessage(null, is3);
         DOMSource domReqPayload = new 
DOMSource(soapReq3.getSOAPBody().extractContentAsDocument());
Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt 
(original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_pubsub/README.txt 
Wed Nov 29 02:08:38 2006
@@ -92,7 +92,7 @@
   javac -d build/classes src/demo/jms_greeter/server/*.java
For Windows: - set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes; + set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes;
 %ACTIVEMQ_HOME%\incubator-activemq-%ACTIVEMQ_VERSION%.jar
   javac -d build\classes src\demo\jms_greeter\client\*.java
   javac -d build\classes src\demo\jms_greeter\server\*.java

Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt 
(original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/jms_queue/README.txt 
Wed Nov 29 02:08:38 2006
@@ -91,7 +91,7 @@
   javac -d build/classes src/demo/jms_greeter/server/*.java
For Windows:
-  set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes
+  set classpath=%classpath%;%CXF_HOME%\lib\cxf-incubator.jar;.\build\classes;
 %ACTIVEMQ_HOME%\incubator-activemq-%ACTIVEMQ_VERSION%.jar
   javac -d build\classes src\demo\jms_greeter\client\*.java
   javac -d build\classes src\demo\jms_greeter\server\*.java

Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
 (original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/js_provider/README.txt
 Wed Nov 29 02:08:38 2006
@@ -75,14 +75,12 @@
 application with the commands:
For UNIX:
-  cp src/demo/hwDispatch/client/*.xml build/classes/demo/hwDispatch/client/
   export CLASSPATH=$CLASSPATH:$CXF_HOME/lib/cxf-incubator.jar:
        $CXF_HOME/lib/js-1.6R2.jar:$CXF_HOME/lib/xbean-2.1.0.jar:
        build/classes
   javac -d build/classes src/demo/hwDispatch/client/*.java
For Windows:
-  copy src\demo\hwDispatch\client\*.xml build\classes\demo\hwDispatch\client\
   set CLASSPATH=%CLASSPATH%;%CXF_HOME%\lib\cxf-incubator.jar;
        %CXF_HOME%\lib\js-1.6R2.jar;%CXF_HOME%\lib\xbean-2.1.0.jar;
        build\classes

Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt 
(original)
+++ incubator/cxf/trunk/distribution/src/main/release/samples/mtom/README.txt 
Wed Nov 29 02:08:38 2006
@@ -144,12 +144,12 @@
   For UNIX:
java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
-         demo.mtom.client.Client http://localhost:#/mtom
+         demo.mtom.client.Client http://localhost:#/mtom/services/mtom?wsdl
For Windows: java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
-       demo.mtom.client.Client http://localhost:#/mtom
+       demo.mtom.client.Client http://localhost:#/mtom/services/mtom?wsdl
Where # is the TCP/IP port used by the servlet container,
 e.g., 8080.

Modified: 
incubator/cxf/trunk/distribution/src/main/release/samples/soap_header/README.txt
URL: 
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/soap_header/README.txt?view=diff&rev=480508&r1=480507&r2=480508
==============================================================================
--- 
incubator/cxf/trunk/distribution/src/main/release/samples/soap_header/README.txt
 (original)
+++ 
incubator/cxf/trunk/distribution/src/main/release/samples/soap_header/README.txt
 Wed Nov 29 02:08:38 2006
@@ -151,12 +151,12 @@
   For UNIX:
java -Djava.util.logging.config.file=$CXF_HOME/etc/logging.properties
-         demo.hw.client.Client 
http://localhost:#/soapheader/services/soap_header?wsdl
+         demo.soap_header.client.Client 
http://localhost:#/soapheader/services/soap_header?wsdl
For Windows: java -Djava.util.logging.config.file=%CXF_HOME%\etc\logging.properties
-       demo.hw.client.Client 
http://localhost:#/soapheader/services/soap_header?wsdl
+       demo.soap_header.client.Client 
http://localhost:#/soapheader/services/soap_header?wsdl
Where # is the TCP/IP port used by the servlet container,
 e.g., 8080.




Reply via email to