Hi Joydeep , In java we use xcc in this way., May be you can try it for .net also.
protected final static String connectionURI =
"xcc://<userId>:<password>@<xdbcserverIP>:<xdbcserverPort>/<database>";
URI uri = new URI (connectionURI);
ContentSource contentSource = ContentSourceFactory.
newContentSource(uri);
Session session = contentSource.newSession();
Request request =
(Request)session.newModuleInvoke("xqyFileName in the root folder of xdbc
server");
request.setNewVariable ("searchString", ValueType.
XS_STRING, "Accounting");
ResultSequence rs = session.submitRequest(request);
Note:
You must have an external variable in the *.xqy file with name
searchString.
Santhosh Rajasekaran,
Joydeep_Sinha <[email protected]>
Sent by: [email protected]
04/06/2009 12:22 PM
Please respond to
General Mark Logic Developer Discussion <[email protected]>
To
"[email protected]" <[email protected]>,
"[email protected]"
<[email protected]>
cc
"[email protected]"
<[email protected]>, Sunil_Chengalva
<[email protected]>
Subject
[MarkLogic Dev General] (no subject)
Hi All,
I have a requirement of calling a Search module named ?SearchDBs.xqy? from
a dot net application using XCC.
This Search module has a function named fnSearch (takes one parameter
?Keyword?) which will talk to MLSQL ( An interface provided by marklogic
to communicate with multiple databases).
>From CQ, I am able to execute fnSearch function using the following xqy
snippet.
import module namespace sch = "SearchDBs" at "SearchDBs.xqy"
sch:fnSearch("Accounting")
But, I am facing an issue of executing the above snippet using XCC from
.net application. It is throwing an exception, ?Module not found?.
Please let me know how to call the above fnSearch function from
application using XCC by passing a parameter to it.
Note : Please view the attachment for the exact module definition.
Joydeep Sinha
Media and Entertainment - Solution Offerings
Satyam Computer Services Limited.
c: +91-9986876190
t: +91-80-66575520
f: +91-80-28520304
[email protected]
www.satyam.com
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
or distribution or forwarding of any or all of the contents in this
message is STRICTLY PROHIBITED. If you are not the intended recipient,
please contact the sender by email and delete all copies; your cooperation
in this regard is appreciated.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
ForwardSourceID:NT0000A53E
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
<<image/jpeg>>
SearchDBs.xqy
Description: Binary data
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
