cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From priya j <jagapriy...@gmail.com>
Subject Queries in handling the exeception for Http binding for RESTful Service
Date Tue, 18 Dec 2007 03:23:41 GMT

Hi all,
I am using the cxf - HTTP Binding for RESTful service to build a web Service
application.
i have two question in handling the exception :

1) I get the error xml as

<ns1:XMLFault xmlns:ns1="http://cxf.apache.org/bindings/xformat">
	<ns1:faultstring xmlns:ns1="http://cxf.apache.org/bindings/xformat">
		sg.sphsearch.sfe.webService.server.ErrorFault: dtgdtgd
	</ns1:faultstring>
	<ns1:detail xmlns:ns1="http://cxf.apache.org/bindings/xformat">
		<ErrorDetails xmlns="http://sfe.sphsearch.sg">
			<message>Invalid request parameter query.</message>			
		</ErrorDetails>
	</ns1:detail>
</ns1:XMLFault>

is that any way i can remove the ns1 and faultstring from my output. So that
the following output is

<ErrorDetails xmlns="http://sfe.sphsearch.sg">
		<message>Invalid request parameter query.</message>			
</ErrorDetails>	

2) Is that any way to handle all the HTTP status code exception, if so can
anyone send me a sample of it.

Please do help me in doing this.
Thanks inadvance.

Priya
-- 
View this message in context: http://www.nabble.com/Queries-in-handling-the-exeception-for-Http-binding-for-RESTful-Service-tp14375877p14375877.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message