Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How Swift (iOS 8) consume NAV Web Service

Posted on by Microsoft Employee

Hi,

I have been looking for the above for quite a while without any success.

1.  I have used Win8 (tablet app) to consume NAV Webservice with success. In VS2012, there is Service reference folder which I can add to consume NAV Web service.

2. in XCode (for iOS 8) using Swift language, there is no Service Reference folder to add for NAV Web Service

I have searched in internet, iOS 8 (Swift) Does not have Web service reference just like VS2012 does. So, in this respect, how iOS 8 can consume NAV webservice ? What are the methods available?

3. Does NAV Provide  JSON webService?

Thanks

*This post is locked for comments

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: How Swift (iOS 8) consume NAV Web Service

    hi,

    there are many results for search "ios 8 consuming web service":

    best results: highoncoding.com/.../809_Consuming__NET_Web_Services_in_an_iOS_Application.aspx

    mycodetips.com/.../tips-consume-net-webservice-ios-applications-751.html

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How Swift (iOS 8) consume NAV Web Service

    say, this is the NAV Web Service, for example, use in our Tablet App:

    (1) http://serverIPAddr/DynamicsNAV/WS/Page/Sales_Header


    and this is the C# Webservice with extension .asmx,

    (2) Say, it looks l  http://www.company.com/webservices/tempconvert.asmx", 

    I would like to know :

    a) is (1) Nav Web Service extension is the same as .asmx as in (2) or different?

    b) Can I use Http to pass the Soap Envelope to NAV  like below:

    string strSOAP = "

    <?xml version="1.0" encoding="utf-8"?>

    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

    <soap:Body>

    <GetCountries xmlns="http://www.webserviceX.NET" />

    </soap:Body>

    </soap:Envelope> ";

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans