Page 1 of 1

web service endpoint changed to localhost

Posted: Mon Mar 05, 2018 7:18 am
by moh.ali
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 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

Posted: Tue Mar 06, 2018 5:44 pm
by jllort
I do not recommend using SOAP. In our documentation you have better option REST ( ... 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 ... /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 ? 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 ... lient.html ( also at the bottom of the page you have an integration into jar ).

Re: web service endpoint changed to localhost

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

Re: web service endpoint changed to localhost

Posted: Sat Jul 13, 2019 8:50 am
by sunil30
Thanks for information...........