Hi all,
I have downloaded Xindice.NET from sourceForge and tried to play with
it.
However when I try the following code:
[WebMethod]
public void testXindice() { // display the number of documents int numberOfDocuments = client.GetDocumentCount( "/db/rated" ); Console.WriteLine( "Number of documents: " + numberOfDocuments.ToString() ); } }
} It fails and give me the following error: CookComputing.XmlRpc.XmlRpcIllFormedXmlException: Unable to load response XML from stream. ---> System.Xml.XmlException: The '1' character, hexadecimal value 0x31, cannot begin with a name. Line 7, position 14. at System.Xml.XmlScanner.ScanName() at System.Xml.XmlScanner.ScanMarkup() at System.Xml.XmlScanner.ScanToken(Int32 expected) at System.Xml.XmlTextReader.SetLiteralValues(XmlAttributeTokenInfo fld) at System.Xml.XmlTextReader.SetAttributeValues() at System.Xml.XmlTextReader.ParseElement() at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadNoCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadChildren(XmlNode parent) at System.Xml.XmlLoader.LoadElementNode() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadChildren(XmlNode parent) at System.Xml.XmlLoader.LoadElementNode() at System.Xml.XmlLoader.LoadCurrentNode() at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(TextReader txtReader) at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(TextReader trdr, Type returnType) --- End of inner exception stack trace --- at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(TextReader trdr, Type returnType) at CookComputing.XmlRpc.XmlRpcSerializer.DeserializeResponse(Stream stm, Type returnType) at CookComputing.XmlRpc.XmlRpcClientProtocol.ReadResponse(XmlRpcRequest req, WebResponse webResp, Stream respStm) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, String methodName, Object[] parameters) at CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(String MethodName, Object[] Parameters) at Xindice.Xmlrpc.XindiceXmlRpcClient.GetDocumentCount(String collectionPath) at BillingRetrievalService.RetrievalService.HelloWorld() in c:\inetpub\wwwroot\billingretrievalservice\retrievalservice.asmx.cs:line 63 Unfortunately there is no documentation on it.
Do anyone has any clue?
Regards,
Boris
|
- Xindice.NET Boris Rousseau
- Xindice.NET Boris Rousseau
- Xindice.NET Ian Leslie