File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes How come there's no exceptions when use JAX-WS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How come there Watch "How come there New topic

How come there's no exceptions when use JAX-WS?

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 62
When I generated using JAX-RPC, it throws RemoteException. But when I generated using JAX-WS, I do not see it throw the RemoteException. So how do I catch exceptions using JAX-WS approach?


public customObject10Execute( CustomObject10Execute_Input) throws java.rmi.RemoteException;


* @param customObject10ExecuteInput
* @return
* returns
@WebMethod(operationName = "CustomObject10Execute", action = "document/urn:crmondemand/ws/ecbs/customobject10/10/2004:CustomObject10Execute")
@WebResult(name = "CustomObject10Execute_Output", targetNamespace = "urn:crmondemand/ws/ecbs/customobject10/10/2004", partName = "CustomObject10Execute_Output")
public CustomObject10ExecuteOutput customObject10Execute(
@WebParam(name = "CustomObject10Execute_Input", targetNamespace = "urn:crmondemand/ws/ecbs/customobject10/10/2004", partName = "CustomObject10Execute_Input")
CustomObject10ExecuteInput customObject10ExecuteInput);
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
WebServiceException is the base exception class for runtime exceptions thrown when using JAX-WS.
For details, please refer to the JAX-WS specification document.
Best wishes!

My free books and tutorials:
I agree. Here's the link:
subject: How come there's no exceptions when use JAX-WS?