ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Goyer" <mgo...@uwaterloo.ca>
Subject Generating my own faults?
Date Fri, 16 May 2003 15:38:23 GMT
I'm writing an xml-rpc server and I see that throwing an
Exception(String str) will generate a fault but I want to generate a
fault like those outlined in the xmlrpc spec
(http://www.xmlrpc.com/spec) where I can set both the faultCode and
faultString.

Fault example:

HTTP/1.1 200 OK
Connection: close
Content-Length: 426
Content-Type: text/xml
Date: Fri, 17 Jul 1998 19:55:02 GMT
Server: UserLand Frontier/5.1.2-WinNT

<?xml version="1.0"?>
	<methodResponse>
		<fault>
			<value>
				<struct>
					<member>
						<name>faultCode</name> 
	
<value><int>4</int></value> 
					</member> 
					<member> 
						<name>faultString</name>

					<value><string>Too many
parameters.</string></value>
</member> 
				</struct> 
			</value> 
		</fault> 
	</methodResponse> 


Thanks,
Matt


Mime
View raw message