Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ong Vua
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic