PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → Import a SOAP webservice in a WM project
Import a SOAP webservice in a WM project
Started by HIS 21, Jul., 06 2016 11:09 AM - 4 replies
Posted on July, 06 2016 - 11:09 AM
Good morning everybody,

I have a big problem when I import a web service in my WM project (every time, not for a specific web service only):

When I use the web service inside the simulator everything works fine, but if I use it on a real device (in debug mode) the application crashes (when I press on the icon android tells me something like "the application was terminated").

I had tried with a web service made with WebDev and with a web service made by third people but the behavior was the same each time: the application crashes before start.

May be I'm doing something wrong.

Have somebody the same problem? Any suggestion?

Best regards.
Posted on July, 06 2016 - 1:09 PM
Hi

one of the recurring problem with webservices is tha ANSI vs UNICODE...

There is a good chance that your webservice is in ANSI, your emulator in
ansi, but under android, you are working in UNICODE by default (ie all
strings functions expect unicode, all string variables are unicode, and
so on)

So, either specify that every is ansi (myString is ANSI stirng), or make
the appropriate conversions


Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

More information on http://www.fabriceharari.com
Registered member
3,661 messages
Popularité : +175 (223 votes)
Posted on July, 06 2016 - 1:24 PM
Hi His21

View link:

http://www.wxinformatica.com.br/p/indice.html

;)

--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Posted on July, 06 2016 - 2:07 PM
Thanks for your response,

I've found the problem:

In my application I had imported the Ksoap java library (as external JAR file) because, in older versions of WM, there wasn't the native support for SOAP web services. May be WM uses this library too and, because of this, the application won't to work. Sometime WM also gave me problems when I tried to compile this application.

After removing the JAR the application works fine again.