I am hoping that someone can help me figure out how to solve a problem
that I am having with Spyne.� My sever code is responding with the
right content , but seems to force all array-type results to be titled
"<class name>Array".� Unfortunately the client that I
am trying to server require the arrays to be titled "ArrayOf<class
name>".� I have tried everything I can think of to override
this behavior, but have not found a way to change this.� Does anyone
have an example of creating and Iterable, or Array as part of the response
where the name is changed to something else?
Here is an example of
the response of my Spyne server:
(TicketListResult){
�� success = True
�� Tickets =
����� (TicketListingArray){ <--Note the
automatic suffix "Array" here
�������� TicketListing[] =
�����������
(TicketListing){
��������������
ticketID = 23
��������������
ticketNumber = "20130113104411028"
��������������
register = "1"
��������������
employeeName = "CEO Robert"
��������������
table = 1
����������� },
�����������
(TicketListing){
��������������
ticketID = 24
��������������
ticketNumber = "20130113105111029"
��������������
register = "1"
��������������
employeeName = "CEO Robert"
��������������
table = 1
����������� },
����� }
�}
�
This is how I need it to look to satisfy the client
code:
(TicketListResult){
�� success = True
�� Tickets =
����� (ArrayOfTicketListing){ <--Note the
prefix "ArrayOf" here
�������� TicketListing[] =
�����������
(TicketListing){
��������������
ticketID = 23
��������������
ticketNumber = "20130113104411028"
��������������
register = "1"
��������������
employeeName = "CEO Robert"
��������������
table = 1
����������� },
�����������
(TicketListing){
��������������
ticketID = 24
��������������
ticketNumber = "20130113105111029"
��������������
register = "1"
��������������
employeeName = "CEO Robert"
��������������
table = 1
����������� },
����� }
�}
Thank you for any helpful example in advance.
-Nathan
_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap