[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    Re: How to create fault response
From:       TomazM <tomaz.majerhold () arnes ! si>
Date:       2008-09-03 10:06:40
Message-ID: 48BE61B0.4030303 () arnes ! si
[Download RAW message or body]


TomazM wrote:
> How can set faultCode in fault Response, I'm using library 1.2
> 
> Best regards; Tomaz

If throw XmlRpcException then I generate fault Response, but is there any easy way of \
striping org.apache.xmlrpc.XmlRpcException: in a faultString?.

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<fault>
<value>
<struct>
	<member>
		<name>faultString</name>
		<value>org.apache.xmlrpc.XmlRpcException: Kerberos service ticket not \
valid!</value>  </member>
	<member>
		<name>faultCode</name>
		<value><int>100</int></value>
</member>
</struct>
</value>
</fault>
</methodResponse>

I use constructor XmlRpcException(100, "Kerberos service ticket not valid!")


Best Regards, Tomaz



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic