Can I get some more information about what you are trying to do?   
Example: where in the processing pipeline are you trying to accomplish 
this?   JAX-WS or other?   Etc....

For the most part, the easiest thing to do is just do:
import org.apache.cxf.binding.soap.SoapFault;
.....
throw new SoapFault("ErroreProcessamento", SoapFault.FAULT_CODE_SERVER);

That will pretty much work anywhere in the chains (except for in the 
outgoing chains after stuff has already been written, but now much 
anyone can do there if stuff has already been sent) or from your service 
or handlers or anything.



Dan



On Tuesday 12 February 2008, Cencio wrote:
> Hi all,
>
> i have this question: there is a way to generate a SOAPMessage from en
> exception or a fault?
>
> What i have to do when a creation of a fault message fails?
>
> In Axis i do it in this way, that don't raise any exception:
>
> return new org.apache.axis.Message(new
> AxisFault("ErroreProcessamento"));
>
> How can i generate a SOAPMessage with a fault and be sure that it
> don't fail?
>
>
> thx,
> Lorenzo



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to