<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>25 Aug 2018 20:06:00 Z</lastBuildDate><pubDate>22 Aug 2018 23:16:00 Z</pubDate><description>Greetings,&#13;
&#13;
History: I made a simple web service for use with a client's data and android mobile phones. All was working in simulation but when I tried to run it on the phone, it would crash and send and error message. Of course, PC Solt was no help in deciphering the error message but the error occurred when assigning the result structure from the webservice. So I decided to try Serialize and Deserialize and transfer a buffer. After much more grief than expected, I got a format that should work but I get the following error:&#13;
"The element is not compatible. We expected {}stResults while we received {}stResults."&#13;
&#13;
The stResults is a structure containing a string and an array of a structure.&#13;
&#13;
The code is:&#13;
//aSearchResults is SearchContactsResponse arrResults is array of Answers_WS.stContactNameAddress stCurResults is Answers_WS.stResults bufRes is Buffer bufRes = Answers_WS.SearchContacts(EDT_Max_results, EDT_ID,EDT_Answers_Name,EDT_Last_Name,EDT_First_Name) Deserialize(stCurResults,bufRes,psdXML) iCount is int //stCurResults = Answers_WS.SearchContacts(EDT_Max_results, EDT_ID,EDT_Answers_Name,EDT_Last_Name,EDT_First_Name) arrResults = stCurResults.aContactNameAddress ////Deserialize(arrResults,stCurResults.aContactNameAddress,psdXML) STC_ResultsMsg..Caption = stCurResults.sMsg&#13;
The data is:&#13;
&lt;?xml version="1.0"?&gt;2 of 2 contacts foundCACCascade ConsultingACTIVEGrahamConniePO Box 758Port HadlockWA98339Cell Phone 350-7600CACCascade ConsultingACTIVEGrahamJeffPO Box 758Port HadlockWA98339jeff@accmeals.com350-6542&#13;
&#13;
Any suggestions would be appreciated.&#13;
&#13;
BTW The original error message from the android device (not using Serialize):&#13;
===== Error =====&#13;
Date and time=31/07/2018 09:38:20&#13;
Message=An error occurred while running the SOAP query.&#13;
System Message=unexpected type (position:END_DOCUMENT null@1:1 in java.io.InputStreamReader@397525c)&#13;
Process=Left-clicking WIN_Search.BTN_Search&#13;
WLanguage stack=Left-clicking WIN_Search.BTN_Search&#13;
Java stack=fr.pcsoft.wdjava.core.erreur.WDErreurManager.a(Unknown Source)&#13;
fr.pcsoft.wdjava.ws.a.d.a(Unknown Source)&#13;
fr.pcsoft.wdjava.ws.WDWSClient.invoquerMethode(Unknown Source)&#13;
com.mycompany.answers_mobile.wdgen.GWDFWIN_Search$GWDBTN_Search.clicSurBoutonGauche(GWDFWIN_Search.java:657)&#13;
fr.pcsoft.wdjava.ui.q.executerPCode(Unknown Source)&#13;
fr.pcsoft.wdjava.ui.champs.qb.executerPCode(Unknown Source)&#13;
fr.pcsoft.wdjava.ui.q.appelPCode(Unknown Source)&#13;
fr.pcsoft.wdjava.ui.champs.pb.appelPCode(Unknown Source)&#13;
fr.pcsoft.wdjava.ui.q.appelPCode_TLM(Unknown Source)&#13;
fr.pcsoft.wdjava.ui.champs.bouton.a.onClick(Unknown Source)&#13;
android.view.View.performClick(View.java:5207)&#13;
android.view.View$PerformClick.run(View.java:21168)&#13;
android.os.Handler.handleCallback(Handler.java:746)&#13;
android.os.Handler.dispatchMessage(Handler.java:95)&#13;
android.os.Looper.loop(Looper.java:148)&#13;
android.app.ActivityThread.main(ActivityThread.java:5491)&#13;
java.lang.reflect.Method.invoke(Native Method)&#13;
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)&#13;
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)&#13;
Thread=id=1&#13;
name=main&#13;
priority=5&#13;
groupName=main&#13;
&#13;
===== Screen shot =====&#13;
Path=file:///storage/emulated/0/Android/data/com.mycompany.answers_mobile/cache/err1533055100700.png&#13;
&#13;
===== Application =====&#13;
Application name=Answers_Mobile&#13;
Application version=0.0.8.0&#13;
Name of the package=com.mycompany.answers_mobile&#13;
Date and time of startup=31/07/2018 09:38:00&#13;
Version of Android framework=23.0.253.0 (en)&#13;
&#13;
===== Device =====&#13;
Model=XT1254&#13;
Constructor=motorola&#13;
Make=motorola&#13;
&#13;
===== System =====&#13;
Version number of Android=6.0.1 (M)&#13;
Android Level Api=23&#13;
Total internal storage memory=24.13 GB&#13;
Internal storage memory available=18.92 GB&#13;
Screen density=640&#13;
Screen resolution=1440x2560</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-strange-error-message/read.awp</link><title>Strange Error Message</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66741/read.awp</comments><pubDate>25 Aug 2018 20:06:00 Z</pubDate><description>Thanks again Fabrice but I have changed both sides to use only "is ANSI strings" and the configuration is set to ANSI. Still I g…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66741/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66741/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-strange-error-message/read.awp">Strange Error Message</source><title>Re: Webservice Strange Error Message</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66719/read.awp</comments><pubDate>23 Aug 2018 22:42:00 Z</pubDate><description>Hi Jeff,&#13;
&#13;
As you data is originally ansi, you need to declare all strings as ansi on BOTH sides if you want to have a change t…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66719/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66719/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-strange-error-message/read.awp">Strange Error Message</source><title>Re: Webservice Strange Error Message</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66718/read.awp</comments><pubDate>23 Aug 2018 20:03:00 Z</pubDate><description>Thanks, Fabrice.&#13;
&#13;
Question for you. If your data is all in ANSI on the HF server, then is is sufficient to just declare all st…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66718/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66718/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-strange-error-message/read.awp">Strange Error Message</source><title>Re: Webservice Strange Error Message</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66714/read.awp</comments><pubDate>23 Aug 2018 02:52:00 Z</pubDate><description>Hi Jeff,&#13;
&#13;
when it works in the simulator and not on the device, 95% of the time it's an ansi/unicode problem...&#13;
&#13;
IN the simu…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66714/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-webservice-strange-error-message-66714/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66710-strange-error-message/read.awp">Strange Error Message</source><title>Re: Webservice Strange Error Message</title></item></channel></rss>
