ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Jiteg <alexander.ji...@tickstar.com>
Subject How to automatically wrap request with struct
Date Fri, 24 Aug 2012 13:36:06 GMT
I'm working towards an XMLRPC API that expects all request variables to be wrapped in a struct.

Example: 

<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>method1</methodName>
<params>
	<param>
		<value>
			<struct>
				<member>
					<name>param1</name>
					<value>value1</value>
				</member>
				<member>
					<name>param2</name>
					<value>value2</value>
				</member>
			</struct>
		</value>
	</param>
</params>
</methodCall>

 This behavior disturbs the convenient usage of dynamic proxies since input variables in method
interfaces will have to be structs (or Maps in the Java interfaces) instead of the real input
variables. 

Example:

method1(String param1, String param2)
has to be
method1(Map params)

Is it possible for the Apache implementation of XMLRPC to automatically wrap the input variables
given in the method interfaces inside a struct before firing the request to the server so
that I can take advantage of the input variables in the interfaces?

/Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


Mime
View raw message