[MarkLogic Dev General] Re: 405 error on POSTs

2009-10-26 Thread Michael Blakeley
Keith, The test case from my previous message works for me, using method="POST" with 4.1-3 on linux and firefox 3.5.3. I'd suggest verifying that it also works for you. Then you can begin to bisect the differences between your code and this test case. -- Mike On 2009-10-26 11:10, Keith L. B

Re: [MarkLogic Dev General] Error while creating alert - triggers

2009-10-26 Thread Wayne Feick
Judie, The error indicates that the trigger is not associated with any alerting configuration. Here is some example code showing creation of create and modify triggers. The last three lines are key to associate the triggers with your alerting configuration. xquery version "1.0-ml";

Re: [MarkLogic Dev General] Alert- trigger problem

2009-10-26 Thread Wayne Feick
Dhivya, There is a sample application included with the distribution, mentioned at the end of the section on alerting in the search developers guide: http://developer.marklogic.com/pubs/4.1/books/search-dev-guide.pdf Did you verify that your triggers are really being created in your trig

Re: [MarkLogic Dev General] Generate CSV Output

2009-10-26 Thread Andrew Welch
> return fn:concat($fi/id/text(), "|", $fi/addr/text(), "|", $fi/city/text(), > "|", $fi/state/text(), "|", $de/test/text(), "|", $de/test1/text()) With a common delimiter like that, string-join() can be used: string-join(($fi/id, $fi/addr, $fi/city, $fi/state, $de/test, $de/test1), '|') --

RE: [MarkLogic Dev General] Problem to unzip file more than 16MB within MarkLogic

2009-10-26 Thread Danny Sokolsky
This is likely due to the text format max document size in MarkLogic Server. For 32-bit systems, it is 16MB. For 64-bit systems, it is 64MB. The info for this and the other document formats (XML and Binary) are in the “Loading Documents...” Chapter of the Application Developer’s Guide. -Dann

[MarkLogic Dev General] Re: 405 error on POSTs

2009-10-26 Thread Keith L. Breinholt
I apologize for the errant PUT. I have in fact tried with the method="post" and that is in fact the only method that gives the 405 error. The method="put" was an attempt on my part to find a way around this problem. Again, it is only on method='post' that I get the 405 error. Keith L. Breinhol

Re: [MarkLogic Dev General] Generate CSV Output

2009-10-26 Thread Bindu Wavell
After fixing some more items in the XML I was able to produce the following: let $doc := Test1 10 Main St Baltimore MD TestA Test1A TestB Test1B TestC Test1C Test2 20 York St Pasadena CA Test2A Test2A a

RE: [MarkLogic Dev General] cts:reverse-query() in Alerting

2009-10-26 Thread Danny Sokolsky
Sorry for pointing you to the wrong book.Thanks for the correction Mano. -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of anuj.kum...@cognizant.com Sent: Monday, October 26, 2009 5:42 AM To: general@developer.marklogic.com Su

RE: [MarkLogic Dev General] Generate CSV Output

2009-10-26 Thread Tony Mariella
They're just text nodes Test1 and Test2. Typo, my mistake From: bindu.wav...@flatironssolutions.com Subject: Re: [MarkLogic Dev General] Generate CSV Output Date: Mon, 26 Oct 2009 11:36:30 -0600 To: general@developer.marklogic.com Tony, Should Test1 and Test2 be elements , or are they sup

Re: [MarkLogic Dev General] Generate CSV Output

2009-10-26 Thread Bindu Wavell
Tony, Should Test1 and Test2 be elements , or are they supposed to be text nodes for the id Test1 and Test2? Bindu Wavell Consultant: Tech Lead +1 (720) 436-8146 | Office - Cell bindu.wav...@flatironssolutions.com Flatirons Solutions http://www.flatironssolutions.com On Oct 26, 2009, at

RE: [MarkLogic Dev General] Generate CSV Output

2009-10-26 Thread Tony Mariella
If I have data returned from my query that looks like this: 10 Main St Baltimore TestA Test1A TestB Test1B TestC Test1C 20 York St Pasadena CA Test2A Test2A I would like

Re: [MarkLogic Dev General] 405 error on POSTs

2009-10-26 Thread Michael Blakeley
Keith, You've written POST, but your form has method="PUT". I believe that's where the 405 is coming from. When I tested with Firefox, it appeared to silently rewrite that as a "GET". If you are using IE, the results might be different: perhaps it's sending the PUT, and your form-handling code

Re: [MarkLogic Dev General] Unwanted characters generating when converting from ISO-8859-1 to UTF-8

2009-10-26 Thread Jason Hunter
IIRC, that funky A character is what you see when you look at UTF-8 data with a Latin-1 viewer. My guess is the document is loaded correctly, Mark Logic is returning it in UTF-8 encoding to your viewer, and it's just that your viewer is mistakenly using Latin-1 to display it to you. -jh-

[MarkLogic Dev General] 405 error on POSTs

2009-10-26 Thread Keith L. Breinholt
I'm trying to POST a file to an web service interface that I've written. The webservice uses a URL rewriter that translates the web service URLs to the actual code that will do the work and hides the actual .xqy extensions from the end users. So we have some application code that does a post l

[MarkLogic Dev General] Unwanted characters generating when converting from ISO-8859-1 to UTF-8

2009-10-26 Thread Chowdhury, Soumadri
Hi, I have some files in ISO-8859-1 format. I loaded those documents in MarkLogic using the following code, xdmp:document-load("d:\myFile.xml", /docs/myFile.xml xml ISO-8859-1 ) But when I look at the generated XML file, I saw "Â" character in many places, which was not there in the input X

Re: [MarkLogic Dev General] Problems setting up simple WebDAV app server

2009-10-26 Thread Mattio Valentino
Thanks again George. Installing the update worked! On Wed, Oct 21, 2009 at 2:44 PM, Mattio Valentino wrote: > Thanks George!  That certainly sounds like it might be the culprit. > I'll update this thread when I find out for sure. > > On Wed, Oct 21, 2009 at 2:37 PM, Florentine, George > wrote: >

RE: [MarkLogic Dev General] cts:reverse-query() in Alerting

2009-10-26 Thread Anuj.Kumar2
Thanks mano Regards, Anuj Kumar From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of mano m Sent: Monday, October 26, 2009 5:36 PM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] cts:reverse-query

[MarkLogic Dev General] Error while creating alert - triggers

2009-10-26 Thread judie pearline
Hi all,   I have created an alert trigger for a document delete. when i tried to delete a document its throwing some error in the log.   Since the trigger was set to call at post commit, the document is getting deleted but the action was not occured.   Error Log: ALERT-TRIGGER (e

Re: [MarkLogic Dev General] cts:reverse-query() in Alerting

2009-10-26 Thread mano m
Hi,   Please refer the "search-dev-guide.pdf" - chapter 10   Regards, Mano From: "anuj.kum...@cognizant.com" To: general@developer.marklogic.com Sent: Mon, 26 October, 2009 1:28:11 PM Subject: RE: [MarkLogic Dev General] cts:reverse-query() in Alerting Hi , I

RE: [MarkLogic Dev General] cts:reverse-query() in Alerting

2009-10-26 Thread Anuj.Kumar2
Hi , I have gone through dev_guide document but I could not find the chapter “Creating Alerting Applications”. Where is it? Please help. Regards, Anuj Kumar From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Danny Sokolsky Sent: S

[MarkLogic Dev General] Problem to unzip file more than 16MB within MarkLogic

2009-10-26 Thread Chowdhury, Soumadri
Hi, I need to extract a zip file within MarkLogic, which contains text file with size more than 16MB. After unzipping the text file, I create XML file with the help of it. But it seems we cannot unzip any text file within MarkLogic with size more than 16MB. In this case, how should I proceed?