Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Format Message Response XML with type Array

54 views
Skip to first unread message

Pascal Gosset

unread,
Feb 16, 2012, 6:09:12 AM2/16/12
to
Hello my name is Pascal,

I make a Server Web, and i have a problem with some parameters of Type
"Array"

I receive someone like this :

TContent = class(TRemotable)
{
parameter .....
}

Array_Of_Content = array of TContent;

TData = class(TRemotable)
published
property Content: Array_Of_Content Index (IS_OPTN or
IS_UNBD) read GetContent write SetContent stored Content_Specified;
end;

I receive the following :

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:not="......................"
xmlns:nht=".............................."
xmlns:ns="...............................">
<soapenv:Header/>
<soapenv:Body>
<not:Notify>
<nht:Message>
<nht:Data>
<nht:Content>
<Parameter />
</nht:Content>
</nht:Data>
</nht:Message>
</nht:Notify>
</soapenv:Body>
</soapenv:Envelope>

I have no node who describe the name of the array and i want the
exactly the same for my response ...

my response is :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:not="......................"
xmlns:nht=".............................."
xmlns:ns="...............................">
<soapenv:Header/>
<soapenv:Body>
<not:Notify>
<nht:Message>
<nht:Data>
<nht:Content> THE NAME OF ARRAY is write but i don't
want ....
<nht:Content>
<Parameter />
<nht:Content>
</nht:Content>
</nht:Data>
</nht:Message>
</nht:Notify>
</soapenv:Body>
</soapenv:Envelope>

Someone can help me ?

i have add this line in my unit but it doesn't work :
RemClassRegistry.RegisterSerializeOptions(TypeInfo(Array_Of_Content),
[xoInlineArrays]);

sorry for my english, i'm french and i'm bad for write in english ;)

Pascal

0 new messages