• web service endpoint changed to localhost

  • Do you want to create a native client or integrate with third party applications: webservices are the solution.
Do you want to create a native client or integrate with third party applications: webservices are the solution.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #45390  by moh.ali
 
Hello
we integrate extension with OpenKM and we used OpenKM web services to use OpenKM for saving documents.
in the code (I used Eclipse Mars under win 10) we import com.openkm.ws.client.folderas example and used it.
but in some cases the server in http://[server ip]:8080/OpenKM/services I fount the endpoint changed
from : Endpoint address: http://[server ip]:8080/OpenKM/services/OKMFolder
to : Endpoint address: http://localhost:8080/OpenKM/services/OKMFolder
and it is not working again, but if I restart the catalina it is works well until it change again.
this happens in all the web services that i used CXF to generate their java classes

what is the problem ?
 #45395  by jllort
 
I do not recommend using SOAP. In our documentation you have better option REST ( https://docs.openkm.com/kcenter/view/ok ... vices.html ). We consider SOAP a totally deprecated technology and we encorage you to move to REST.

Anwyay if you want continue with SOPA, you have some information about how to create SOAP classes https://docs.openkm.com/kcenter/view/ok ... /soap.html if you execute from localhost the webservice will be created using this url, you should create using the API.

Finally, why are not using our SDK ? https://docs.openkm.com/kcenter/view/sdk4j-1.1/ you can quickly integrate in your project and simply changing the SDK when needed between version you will get your connection updated ( almost work is done to you at SDK core level to make changes between version as much transparent as possible ).

Here you have a sample about how integrate with existing maven project https://docs.openkm.com/kcenter/view/sd ... lient.html ( also at the bottom of the page you have an integration into jar ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.