Inheritance: Restful.ParallelProcessorCallbacks
Exemple #1
0
 searchRetrieveResponse CallJStor(string searchUrl)
 {
     var callbacks = new SearchResponseCallbacks();
     var processor = new Restful.ParallelProcessor(callbacks);
     processor.ProcessWithCredentials(searchUrl, Creds);
     return callbacks.Response;
 }
 public void CanGetProperlyFormattedXmlFromJstor()
 {
     var callbacks = new SearchResponseCallbacks();
     var processor = new Restful.ParallelProcessor(callbacks);
     processor.ProcessWithCredentials(@"http://dfr.jstor.org/sru/?operation=searchRetrieve&query=dc.subject+%3D+mandeville&version=1.1", Search.Creds);
     Assert.NotNull(callbacks.Response.numberOfRecords, "Serialization error");
 }
 private static SearchResponseCallbacks GetCannedData()
 {
     var callbacks = new SearchResponseCallbacks();
     var processor = new Restful.ParallelProcessor(callbacks);
     var file = new FileStream(@"Mandeville.xml", FileMode.Open);
     var reader = XmlReader.Create(file);
     processor.ParallelProcessXml(reader);
     var response = callbacks;
     //processor.Process(@"http://dfr.jstor.org/sru/?operation=searchRetrieve&query=dc.subject+%3D+mandeville&version=1.1");
     //processor.Process(@"http://dfr.jstor.org/sru/?operation=searchRetrieve&recordPacking=xml&version=1.1&startRecord=1&maximumRecords=784&resultSetTTL=&recordSchema=info:srw/schema/1/dc-v1.1&query=dc.subject%20=%20mandeville");
     return callbacks;
 }