Hi
As I am new to Web services and Genero too, I am struggling with a concept. Can one write a web service that can receive an entire XML document. I have a need to receive a lab result in an xml document into my service and parse it out and extract the relevant data.
I have written a few web services that use simpler data types and return records and arrays, but nothing that can take a whole document. When I make a server that starts like this:
IMPORT com
#
# USER GLOBALS VARIABLES
#
GLOBALS
DEFINE
record_in record
doc om.DomDocument
end record,
record_out record
responded record
reply_i integer,
reply_c char(3)
end record
end record,
ch base.Channel
END GLOBALS
the fglwsdl tool generates code for a client, but the .inc file then defines
TYPE tread_docRequest_read_docRequest RECORD ATTRIBUTE(XMLSequence,XSTypeName="read_docReq
uest_read_docRequest",XSTypeNamespace="
http://tempuri.org/")
doc xml.DomDocument ATTRIBUTE(XMLName="doc")
| The symbol 'xml' does not represent a valid variable type.
| See error number -6622.
END RECORD
with "doc xml.DomDocument", which the compiler throws an error on, at which point I am stuck ....
I unfortunately find the genero documentation very terse, and there is not much by way of example, and I have been unable to find much on the internet that looks like what I am trying to do.
Can someone out there point me in the right direction.