Author: ffang
Date: Tue Mar 27 19:27:51 2007
New Revision: 523144
URL: http://svn.apache.org/viewvc?view=rev&rev=523144
Log:
[CXF-491] in hello_world sample, cann't throw the expected exception
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/hello_world/src/demo/hw/client/Client.java
Modified:
incubator/cxf/trunk/distribution/src/main/release/samples/hello_world/src/demo/hw/client/Client.java
URL:
http://svn.apache.org/viewvc/incubator/cxf/trunk/distribution/src/main/release/samples/hello_world/src/demo/hw/client/Client.java?view=diff&rev=523144&r1=523143&r2=523144
==============================================================================
---
incubator/cxf/trunk/distribution/src/main/release/samples/hello_world/src/demo/hw/client/Client.java
(original)
+++
incubator/cxf/trunk/distribution/src/main/release/samples/hello_world/src/demo/hw/client/Client.java
Tue Mar 27 19:27:51 2007
@@ -22,7 +22,6 @@
import java.io.File;
import java.net.URL;
import javax.xml.namespace.QName;
-import javax.xml.ws.ProtocolException;
import org.apache.hello_world_soap_http.Greeter;
import org.apache.hello_world_soap_http.PingMeFault;
import org.apache.hello_world_soap_http.SOAPService;
@@ -70,8 +69,8 @@
System.out.println("Invoking greetMe with invalid length string,
expecting exception...");
try {
resp = port.greetMe("Invoking greetMe with invalid length string,
expecting exception...");
- } catch (ProtocolException e) {
- System.out.println("Expected exception has occurred: " +
e.getClass().getName());
+ } catch (Exception e) {
+ System.out.println("Expected exception has occurred: " +
e.getMessage());
}
System.out.println();