I'm experimenting with the http commands (my goal is to be able to run
some sub-service which ML doesnt provide and return the results).

 

I got http-get to work great

Now I'm working on http:post

 

I have the following code

 

                xdmp:http-post( 'http://localhost:10000/test', 

<options xmlns="xdmp:http"><data>some data</data></options>)

 

 

I have a very simple Java app using the class
com.sun.net.httpserver.HttpExchange

This works great with other apps that I use, but for MarkLogic I'm
getting a hang.

The data is making it to the app,  I'm reading the input stream (body of
post), and just echoing it back out.

Then closing all the streams and closing the app.

But the ML side just hangs.   If I "stop" the http server then ML picks
up and displays the results just fine.

Its acting like it was either hanging on reading the results, or hanging
on posting the results, not sure which and no idea where to look.

This may be a Java problem not a ML problem, but I have other code doing
Post to this same exact server and they dont have this problem,

so maybe there's something on the ML side I can tweek.

 

Any ideas on things to try ?

 

Thanks for any suggestions.

 

 

 

 

 

----------------------------------------

David A. Lee

Senior Principal Software Engineer

Epocrates, Inc.

[email protected] <mailto:[email protected]> 

812-482-5224

 

 

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

Reply via email to