codenameone - Codename One - how to add function to existing web service -


with cn1 web service wizard, created working server project run on local tomcat installation. in addition, cn1 project has webserviceproxy.java class use call web services. far good.

during development, there need create new function within webservice did not think of. instead of recreating whole server using wizard, thought add code files created.

on client side:

webserviceproxy.java - add webserviceproxycall.wsdefinition , add function call in sync , async fashion. arguments , return type matches definition.

on server side:

webserviceproxyserver.java - add function definition required functionality (this works have debugged locally on server side).

cn1webserviceservlet.java - add definition , add if statement matching service name.

when debugging server , calling service client, not reach breakpoint of dopost method, terribly off.

what else need change when manually adding new webservice function? or complicated should better use web service wizard, create new server scratch , copy other functionality old server new one?

thanks , best regards

there no way seamlessly since generated protocol binary fastest protocol performance.

the solution generate new class use notion v2, v3 onward. way first webservice still 100% compatible devices in production , can create new "more correct" protocol newer devices. implementation classes can derive 1 increase code reuse.


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -