Skip to main content

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

No replies
hoangtu69
Offline
Joined: 2011-12-18
Points: 0

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);