Hi,
I have a few questions about XQuery Services. 1/ How can I send
a file? The doc says in 4.2.1: "Binary file fields (e.g images)
are not supported currently." So I expect other kind of files (in
particular text and XML) to be supported. But if I use a form
like the following:
<form action="http://localhost:8080/qizx/xqs/test/hello"
method="post" enctype="multipart/form-data">
<input type="file" name="who"/>
<input type="submit" value="Send"/>
</form>
and select an XML file (says my-file.xml), with the service hello
containing the following query:
declare variable $param:who as xs:string external;
<hello>{ $param:who }</hello>
it returns the following document:
<hello>my-file.xml</hello>
So the parameter is bound to the file name, not to the content.
Is it possible to get the content instead?
2/ Is it possible to access HTTP information about the request?
In particular the HTTP headers.
3/ Is it possible to bind different queries to different HTTP
methods? So if the HTTP request method is GET, have the query X
evaluated, if the request is a POST, have the query Y evaluated
instead.
Best regards,
--
Florent Georges
http://fgeorges.org/
--
Qizx Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/qizx-support