PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Consuming Webservice from Navision 2013R2
Consuming Webservice from Navision 2013R2
Débuté par Sarono Handoyo, 29 aoû. 2014 14:09 - 3 réponses
Posté le 29 août 2014 - 14:09
Hi all,

I try to consume a Navision 2013 R2 webservice to a webdev project.
The consuming process has no problem but when I call the webservice, it returns error.

Here is my webservice:
<a class="ExternalLink" rel="nofollow" target="_blank" href="http://dynamicsdossier.cloudapp.net:7147/DD_NAV2013R2_CD/WS/Dynamics%20Dossier%20Demo/Codeunit/SicknessLeave?WSDL">http://dynamicsdossier.cloudapp.net:7147/DD_NAV2013R2_CD/WS/Dynamics%20Dossier%20Demo/Codeunit/SicknessLeave&hellip;</a> User and password is : LG and LG2014!
Here is my code:
tmpPar is SicknessLeave.AddSicknessLeaveLine tmpPar.textLine = "test webservice from here" SicknessLeave.User = "LG" SicknessLeave.Password = "LG2014!" tmpStr is SicknessLeave.AddSicknessLeaveLine_Result = SicknessLeave.AddSicknessLeaveLine(tmpPar) Info(tmpStr.return_value) CASE ERROR: Info("error happen",ErrorInfo(),SOAPError(SOAPErrDetails)) CASE EXCEPTION: Info("exception happen",ErrorInfo()) When I run this code, here is what I get:
error happen The following error was returned by the server:
How to solve this problem?

I really appreciate for answers.

Regards,

Sarono
Posté le 02 septembre 2014 - 16:48
Hi,

Have you set the following settings before you call the webservice ?

HTTPParameter(httpParameterMode, 1)

I had todo that for NAV2009 Webservices

Danny
Posté le 03 septembre 2014 - 04:52
Quote
Danny Lauwers

Hi,



Have you set the following settings before you call the webservice ?



HTTPParameter(httpParameterMode, 1)



I had todo that for NAV2009 Webservices



Danny

Hi Danny,
Thanks a lot.
My code works well. I got a return from webservice.
Posté le 04 septembre 2014 - 08:06
Hi All,

The function HTTPParameter(httpParameterMode, 1) is not available in windev mobile.
This is a problem for me as the webservice is inaccessible without this function.

Do someone know how to solve this for mobile application?

Thanks before.