[fpc-pascal] Web Service Toolkit - Questions
Michael Van Canneyt
michael at freepascal.org
Thu Jun 7 15:02:30 CEST 2007
On Thu, 7 Jun 2007, Johann Glaser wrote:
> Hi!
>
> > > Studying the WST Wiki page
> > > http://wiki.freepascal.org/Web_Service_Toolkit I found that it seems not
> > > to be possible to serialize records. What is the difficulty implementing
> > > that?
> >
> > None, I suppose, except that you must parse it :-)
>
> I see. Are there any problems in the transport, i.e. does e.g. SOAP
> support structured data?
AFAIK, SOAP supports it.
>
> > > How can I transport a record between two programs? I'd like to have the
> > > same memory footprint (because it is forwarded to an USB device), so it
> > > would be possible to pseudo-serialize the record into some byte stream
> > > before transport.
> >
> > You could convert your record to a class and transport that. The class
> > is only needed in the transportation step, the rest of the code does not
> > need to see it.
>
> Do I have to put every record field as a member variable of the class or
> is it enough to have one member variable of my record type?
No, you need a property per field.
>
> > I think WST would greatly benefit from switching to pparser in the FCL.
> > It would put all types available.
>
> Do you think of the ws_helper program to parse a Pascal interface?
Yes. It now uses a separate unit to parse the pascal interface.
I think it would be better to use the pparser unit: that unit
supports the complete pascal interface.
Michael.
More information about the fpc-pascal
mailing list