Hi to all,
I’ve got this problem: I need to make these 3 operations in sequence with a standalone application written in C#
- Physical document upload (e.g. PDF file) in collection A
- Upload of a xml document in collection B
- Query to Tamino to update informations in collection A
If I try to execute these operations one by one they functions very well, but if I try to do them in sequence, the third one falls in time out.
I’ve tried to create 3 connections or 1 only connection for all, but it doesn’t function.
I’ve tried to disable the firewall and antivirus but nothing happened
I post part of the code to better explain:
- 1 global variable for connection:
TaminoConnection connection = new TaminoConnection(DBuri,userInfo);
-1st operation:
TaminoCommand command = connection.CreateCommand(“collectionA/nonXML”);
TaminoDocument doc = new TaminoDocument(fileS, sMimeType);
connection.Open(TaminoConnectionMode.AutoCommit);
TaminoResponse response = command.Insert(doc);
connection.Close();
-2nd operation:
XmlDocument data = new XmlDocument();
data.LoadXml(sw.ToString());
TaminoDocument tamdoc = new TaminoDocument(data);
TaminoCommand command = connection.CreateCommand(“collectionB”);
connection.Open(TaminoConnectionMode.AutoCommit);
TaminoResponse response = command.Insert(tamdoc);
connection.Close();
-3rd operation:
TaminoCommand command = connection.CreateCommand(“collectionA”);
TaminoQuery query = new TaminoQuery(queryString);
connection.Open(TaminoConnectionMode.AutoCommit);
TaminoQueryResponse response = command.Query(query);
connection.Close();
Can anyone help me?
Thank you anyway.
Sandro