This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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


JavaRanch » Java Forums » Java » Web Services
Bookmark "How come there Watch "How come there New topic
Author

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

Ong Vua
Ranch Hand

Joined: Jan 24, 2008
Posts: 59
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?

JAX-RPC

public crmondemand.ws.ecbs.customobject10.CustomObject10Execute_Output customObject10Execute(crmondemand.ws.ecbs.customobject10.CustomObject10Execute_Input CustomObject10Execute_Input) throws java.rmi.RemoteException;

JAX-WS

/**
*
* @param customObject10ExecuteInput
* @return
* returns crmondemand.ws.ecbs.customobject10._10._2004.CustomObject10ExecuteOutput
*/
@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
    
    1
Hi!
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: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How come there's no exceptions when use JAX-WS?