Using RMI, you must put to export="true" in the service definition.
A bit old but some may prove useful :
http://ofbizwiki.go-integral.com/Wiki.jsp?page=RMIDispatcherJacques
De : <
[hidden email]>
> Hi
> I am trying to call the services exposed with ofbiz from a simple java
> program (Trying with the HR module createTerminationReason).I am getting
> the following error
> faultString: org.xml.sax.SAXParseException: The markup in the document
> preceding the root element must be well-formed.
>
> Can anybody suggest me where am I going wrong so that i can check further .
> I have changed the services.xml file also for setting auth="true" and
> engine="java" but no change in the behaviour.
>
>
> Regards
> Sreevani
>
>