Hi Jörg,
i guess you are using the BaseX61.jar from the website. The vb.net binding is optimized for the latext minor release of BaseX. So you should use the newest version to run the BaseXServer.
http://www.inf.uni-konstanz.de/dbis/basex/maven/org/basex/basex/6.2.6/basex-...
I hope this works, otherwise let me know...
Kind regards, Andreas
Jörg Beisiegel schrieb:
Hi, I have recently discovered baseX. First of all: This is an amazing project. Thank you very much. I have tested the UI and it works great with an incredible performance. Now I want to automize xqueries against a lager list in vb.net. I have downloaded (the most recent files) from "basex - Revision 2441: /trunk/api/etc/vb" The execute function works fine but the query function throws an error during New Query creation.
There appears to be a session object parameter missing:
in code:
Dim query As Query = session.Query(input)
'...calling the Query function.... no problem
Public Function Query(ByVal q As String) As Query
Return New Query(Me, q)
End Function
' ...then the Query function calls the Query class
' ... and here "s As Session" is required but missing.
Class Query
Private session As Session
Private id As String
Private nextItem As String
' see readme.txt
Public Sub New(s As Session, query As String)
session = s
session.stream.WriteByte(0)
session.Send(query)
id = session.Receive()
If Not session.Ok() Then
Throw New IOException(session.Receive())
End If
End Sub
The query results in the following error message in the console window:
" instead of 1 commands received.
8814 ms."
and in the VB.net direct window I get the message "Eine Ausnahme (erste Chance) des Typs "System.IO.IOException" ist in BaseX.exe aufgetreten."
Could you please help?
http://www.translatissimo.de/ Jörg Beisiegel Geschäftsführer / Managing Director Localization Consulting Desk phone: +49 7275 98933-22 mailto:joerg.beisiegel@translatissimo.de translatissimo Übersetzung und Lokalisierung GbR Bismarckstr. 19 * D-76870 Kandel * Germany http://www.translatissimo.de http://www.translatissimo.de/ *** HINWEIS *** NOTE *** Falls die Mail Anhänge enthält, bitte Empfang bestätigen. If this mail contains attachments please confirm receipt.
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk