If you’re really trying to create a search API accessible to a Java client, I’d 
advise you to start with the Java API 
<http://developer.marklogic.com/learn/java> that we’ve built. Under the covers 
it uses a REST service that ships with the Server, but the API itself is pure 
Java. It allows you to do searches, facets, aggregates, and much more. We’ve 
also put in a lot of effort to make sure it performs well and it is fully 
supported as part of the product.

In your particular case, a 404 indicates that the URL you’ve provided doesn’t 
map to a module path, not an authentication failure. Check your root setting in 
the app server config.

Justin


Justin Makeig
Director, Product Management
MarkLogic Corporation
www.marklogic.com<http://www.marklogic.com/>



On Jul 16, 2013, at 11:49 PM, sini narayanan 
<[email protected]<mailto:[email protected]>>
 wrote:

Hi All,

I have a searchAPI created in MarkLogic with the following URL
http://localhost:8008/searchAPI.xqy?name=abc&format=xml

I need to access this page from an external source (JAVA code).
But whenever I invoke the API, I get 404 Page not Found Error.
This is because of the authentication on the searchAPI. I need to provide 
username and password to access the API from JAVA.
How do I achieve this?
Or How do I remove the authentication on the searchAPI page.

Thanks,
Sini
_______________________________________________
General mailing list
[email protected]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to