Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Passing Filters to NAV WebService Page

(0) ShareShare
ReportReport
Posted on by 55

Hi,

we would like to connect NAV to an special android app for our salespersons.

We got the connection to NAV by the help of Ksoap2. Now we can load Page-Data to our local Database in NAV, but unfortunately we can't pass a filter to the Page. How is it possible to connect to the NAV "ReadMultiple" Function of the WebService?

Look at my solution right know:

MyAsyncTask-Method -->

public void connectToNAV() {
      
        String namespace = "urn:microsoft-dynamics-schemas/page/orderheader";
        String url = "http://172.16.1.15:7047/DynamicsNAV71/WS/BILLY%20Deutschland/Page/OrderHeader";
        String soap_action = "urn:microsoft-dynamics-schemas/page/orderheader:ReadMultiple";
        String method_name = "ReadMultiple";

        String great;
        try {
            SoapObject request = new SoapObject(namespace, method_name);
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
            envelope.dotNet = true;
            envelope.setOutputSoapObject(request);
            
            NtlmTransport ntlm = new NtlmTransport();
            ntlm.debug = true;
            ntlm.setCredentials(url, "myuser", "mypasswort", "billy", "");
            ntlm.call(soap_action, envelope); // Receive Error here!
            SoapObject result = (SoapObject) envelope.getResponse();

            great = result.toString();
            System.out.println(great);

        } catch (Exception e) {
            e.printStackTrace();
            great = e.toString();
            System.out.println(great);
        }
    }

With this code I can call all the OrderLines, but I need only the ones of one salesperson. How to realize the filter?

*This post is locked for comments

  • Ari Profile Picture
    Ari 259 on at
    RE: Passing Filters to NAV WebService Page

    Hello Metziiii,

    Our staff has extensive experience in utilizing web services and we are in the final stages of our enhanced transportation management (TMS) solution that leverages web services exclusively in NAV 2013 R2 and NAV 2015. Call our office +1-847-963-0007 and ask for Paul Molenda or Rob Ramsey in our IT Department. I'm certain they will share their thoughts with you.

    Regards,

    Ari Smith

    Next Generation Logistics

  • mmv Profile Picture
    mmv 11,467 on at
    RE: Passing Filters to NAV WebService Page

    Hi,

    Please check the below link:-

    https://msdn.microsoft.com/en-us/library/ff477110.aspx

    Best Regards,

    MMV

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans