Wrong namespace for the EXPath HTTP Client function?
Hi, The following query: import module namespace http = "http://expath.org/ns/http-client"; http:send-request( <http:request href="http://google.com/" method="get"/>) returns the following error: Error: [XQST0059] Unknown module for namespace "http://expath.org/ns/http-client". The following one though is successful (even though it is not correct according to the HTTP Client spec) (note the element namespace and the function namespace are different): import module namespace http = "http://expath.org/ns/http"; declare namespace h = "http://expath.org/ns/http-client"; http:send-request( <h:request href="http://google.com/" method="get"/>) Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
The following query:
import module namespace http = "http://expath.org/ns/http-client";
http:send-request( <http:request href="http://google.com/" method="get"/>)
returns the following error:
Error: [XQST0059] Unknown module for namespace "http://expath.org/ns/http-client".
Thanks, this is now fixed.. http://files.basex.org/releases/latest/ We had used an obsolete namespace ("http://expath.org/ns/http-client"). More feedback is welcome ;) Christian
Christian Grün wrote Hi,
Thanks, this is now fixed.. http://files.basex.org/releases/latest/
Great! I've tested it and it works fine.
We had used an obsolete namespace ("http://expath.org/ns/http-client").
Just to make it clear: this one is not obsolete, this is the right one, as you fixed it in the preview build above :-)
More feedback is welcome ;)
Good to know :-D Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/
participants (2)
-
Christian Grün -
Florent Georges