Page 1 of 1

web service endpoint changed to localhost

PostPosted:Mon Mar 05, 2018 7:18 am
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 ?

Re: web service endpoint changed to localhost

PostPosted:Tue Mar 06, 2018 5:44 pm
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 ).

Re: web service endpoint changed to localhost

PostPosted:Tue Mar 13, 2018 8:09 am
by moh.ali
Many thanks it helped me a lot.
I appreciate your response.