I have been reading the docs but it seems like I need more examples. I'm trying
to create a client side JAVA API to an existing XML-RPC based web service. The
examples I have seen in the docs so far are sending/receiving simple scalar
values but the values in the web service I'm working with have complex objects
which can have many fields which can be enums or references to other objects.
Is there some further examples, downloadable code that I could look at to
figure out the best way to do this.
BTW there is an existing c# interface to the web service that uses
CookComputing.XmlRpc so an example of the kind of objects I'm talking about is
shown below:
public enum TaskStatusEnum
{
TASK_STATUS_NEVER_ASSIGNED = 0,
TASK_STATUS_REASSIGNED = 1,
TASK_STATUS_RESTARTED = 2,
TASK_STATUS_ASSIGNING_RESOURCES = 100,
TASK_STATUS_RESOURCES_ALLOCATING = 100,
TASK_STATUS_TESTER_ASSIGNED = 100,
TASK_STATUS_RESOURCES_ASSIGNED = 200,
TASK_STATUS_ERROR = 700,
TASK_STATUS_DISABLED = 900,
}
public struct TaskExecution
{
public Int32 Id;
public Int32 TaskId;
public Int32 ResourcesAssignmentId;
public int LastStatus;
public Int32 ReturnCode;
public Datetime DateStarted;
public Datetime DateFinished;
public OutputType[] RunInformation;
}
[XmlRpcMethod("GetCurrentTaskExecutions")]
TaskExecution[] GetCurrentTaskExecutions(Int32[] TaskId);
I'm unclear as to how I would implement this using Apache XML-RPC any pointers
would be much appreciated
Mark Wood-Patrick
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may
contain
confidential information. Any unauthorized review, use, disclosure or
distribution
is prohibited. If you are not the intended recipient, please contact the
sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------