URL connection for Geo code service

Tuesday, 9 March 2010 · 3 messages
CG
Christian Grün9 Mar 2010 19:48 #
Thanks Erol, an important hint; the bug should now be fixed. Christian ps: as this might be interesting for others as well, I have forwarded this answer to the basex-talk mailing list.
Quoted text · Erol Akarsu · 21 lines
On Tue, Mar 9, 2010 at 7:30 PM, Erol Akarsu <eakarsu at gmail.com> wrote: > Christian, > > I would like to execute Google geocode service like this in xquery but > receiving error: > > let $url1 := > "http://maps.google.com/maps/geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&amp;output=xml&amp;sensor=false&amp;client-gme-ferguson" > > return fn:doc($url1) > > > Error: [FODC0002] > C:\Users\ErolAkarsu\BaseXData\geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&output=xml&sensor=false&client-gme-ferguson\tbl.basex > (The filename, directory name, or volume label syntax is incorrect) > > Can you give a hint on how I can achieve this? > > Thanks > > Erol Akarsu
___________________________ Christian Gruen Universitaet Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 http://www.inf.uni-konstanz.de/~gruen
CG
Christian Grünin reply to Erol Akarsu, 9 Mar 2010, 20:549 Mar 2010 19:57 #
Right - the problem was due to the special characters within the URL (? and &). It should be fixed in the repository version.
Quoted text · Erol Akarsu · 58 lines
On Tue, Mar 9, 2010 at 7:55 PM, Erol Akarsu <eakarsu at gmail.com> wrote: > Christian, > > This works fine and fetches wsdl properly. > > let $d := "https://test.epacdxnode.net/schema/v1.1/cdx.wsdl" > return fn:doc ($d) > > I think we problem during parsing of URL string > "http://maps.google.com/maps/geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&amp;output=xml&amp;sensor=false&amp;client-gme-ferguson" > > Erol Akarsu > > On Tue, Mar 9, 2010 at 1:48 PM, Christian Grün <christian.gruen at gmail.com> > wrote: >> >> Thanks Erol, >> an important hint; the bug should now be fixed. >> Christian >> >> ps: as this might be interesting for others as well, I have forwarded >> this answer to the basex-talk mailing list. >> >> >> On Tue, Mar 9, 2010 at 7:30 PM, Erol Akarsu <eakarsu at gmail.com> wrote: >> > Christian, >> > >> > I would like to execute Google geocode service like this in xquery but >> > receiving error: >> > >> > let $url1 := >> > >> > "http://maps.google.com/maps/geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&amp;output=xml&amp;sensor=false&amp;client-gme-ferguson" >> > >> > return fn:doc($url1) >> > >> > >> > Error: [FODC0002] >> > >> > C:\Users\ErolAkarsu\BaseXData\geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&output=xml&sensor=false&client-gme-ferguson\tbl.basex >> > (The filename, directory name, or volume label syntax is incorrect) >> > >> > Can you give a hint on how I can achieve this? >> > >> > Thanks >> > >> > Erol Akarsu >> >> ___________________________ >> >> Christian Gruen >> Universitaet Konstanz >> Department of Computer & Information Science >> D-78457 Konstanz, Germany >> Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 >> http://www.inf.uni-konstanz.de/~gruen > >
EA
Erol Akarsuin reply to Christian Grün, 9 Mar 2010, 19:489 Mar 2010 20:54 #
Christian, This works fine and fetches wsdl properly.
let $d := "https://test.epacdxnode.net/schema/v1.1/cdx.wsdl"
return fn:doc ($d)
I think we problem during parsing of URL string " http://maps.google.com/maps/geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&amp;output=xml&amp;sensor=false&amp;client-gme-ferguson " Erol Akarsu On Tue, Mar 9, 2010 at 1:48 PM, Christian Grün <christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 42 lines
> Thanks Erol, > an important hint; the bug should now be fixed. > Christian > > ps: as this might be interesting for others as well, I have forwarded > this answer to the basex-talk mailing list. > > > On Tue, Mar 9, 2010 at 7:30 PM, Erol Akarsu <eakarsu at gmail.com> wrote: > > Christian, > > > > I would like to execute Google geocode service like this in xquery but > > receiving error: > > > > let $url1 := > > " > http://maps.google.com/maps/geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&amp;output=xml&amp;sensor=false&amp;client-gme-ferguson > " > > > > return fn:doc($url1) > > > > > > Error: [FODC0002] > > > C:\Users\ErolAkarsu\BaseXData\geo?q=618+Bland+Blvd,+Newport+News,+VA+23602&output=xml&sensor=false&client-gme-ferguson\tbl.basex > > (The filename, directory name, or volume label syntax is incorrect) > > > > Can you give a hint on how I can achieve this? > > > > Thanks > > > > Erol Akarsu > > ___________________________ > > Christian Gruen > Universitaet Konstanz > Department of Computer & Information Science > D-78457 Konstanz, Germany > Tel: +49 (0)7531/88-4449, Fax: +49 (0)7531/88-3577 > http://www.inf.uni-konstanz.de/~gruen<http://www.inf.uni-konstanz.de/%7Egruen> >

⚡Generated with XQuery