web service endpoint changed to localhost

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.
Post Reply
moh.ali
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Thu Mar 23, 2017 8:41 am
Location: Sudan

web service endpoint changed to localhost

Post by moh.ali » Mon Mar 05, 2018 7:18 am

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 ?

jllort
Moderator
Moderator
Posts: 10347
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: web service endpoint changed to localhost

Post by jllort » Tue Mar 06, 2018 5:44 pm

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 ).

moh.ali
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Thu Mar 23, 2017 8:41 am
Location: Sudan

Re: web service endpoint changed to localhost

Post by moh.ali » Tue Mar 13, 2018 8:09 am

Many thanks it helped me a lot.
I appreciate your response.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest