Tuesday, April 5, 2011

JAX-WS with JBoss 6 Day 8 : SOAP Fault

In the SOAP Web services world, a fault flows from the server to the client in the form of SOAP fault.

The SOAP Fault element has four separate pieces:

faultcode: Contains a value of VersionMismatch, MustUnderstand, Sender, Receiver or DataEncodingUnknown.
faultstring: Provides a human-readable explanation of why the Fault occurred.
faultactor: Indicates the URI associated with the actor that caused the Fault on the message path. In RPC-style messaging, the actor should be the URI of the invoked Web service.
detail: Carries information about why the error happened. This element may contain more XML elements or it might just be plain text.

1. Java Exception


2. Web Service


3. WSDL


4. generate client
wsconsume -k -p jboss.ws.hello.client http://localhost:8080/iJBossWS/ws/testService?wsdl

5. test case


6. outbound xml

No comments: