String myUrl = "http://10.10.1.108:9047/bin";
URI myURI = new URI(myUrl);
IDataService data = new DataService_Proxy(myURI);
AppUsuario ap = data.IniciarSesion("USER","PASSWORD");
I get the error in AppUsuario class.lang.ClassNotFoundException.
My classes in com.example.myapplication:
-AppBase.Java
-AppUsuario.Java(Extends AppBase)
-MainActivity.java
-DataService_AsyncProxy
-DataService_Proxy
-Defines_RPServicioApp
-IDataService
-IDataService_Async
-com.remobjects.sdk.jar (added like library).
In Xcode is Working correctly with the same server.
Ok, I assume AppUsuario is declared in your project, presumably in your Intf file? I dont see it in the above list you posted. If you look inside your .jar or .apk file, is it there? Can you send me the .apk and the source (via PM)?
then change the PackageName string to your package name and check all other similar code lines in your project. It seems you forgot to chenge the package name to a correct one while you generated the proxy code files:
Also please note that you are trying to perform a synchronous service call. Android won’t allow you to perform a synchronous network operation from a main thread so you’ll have to either run iti na separat thread or to use the async service proxy instead.
String is a primitive type so serializer is able to instantiate and read it without any additional info.
At the same time complex types required to be registered properly. That’s why setPackage calls should provide correct package name (I guess in your case this is com.example.myapplication, not the string on your code screenshot )