Skip to content

Overview

AMZS Mobilna Blagajna communicates with Microsoft Dynamics NAV 9.0 via SOAP web services. This documentation catalogs every SOAP method the mobile app calls, including parameters, return types, and data structures.

Service Architecture

┌─────────────────────┐        SOAP/HTTP (NTLM)        ┌──────────────────────────┐
│  Android App        │ ──────────────────────────────► │  Dynamics NAV 9.0        │
│  (kSOAP2 + easyWSP) │                                 │                          │
│                     │                                 │  Codeunit Services (2)   │
│  NtlmTransport      │                                 │  Page Services (21)      │
└─────────────────────┘                                 └──────────────────────────┘

Base URLs

EnvironmentBase URL
Productionhttp://nav.amzs.si:7047/DynamicsNAV90-WSC/WS
Staginghttp://navdev.amzs.si:7047/dev9amzs/WS

All service URLs are constructed as:

{BASE_URL}/{COMPANY_NAME}/{SERVICE_TYPE}/{SERVICE_NAME}

Where:

  • COMPANY_NAME is URL-encoded (e.g., AMZS%20d.d. or ČLANSKA%20BAZA)
  • SERVICE_TYPE is either Codeunit or Page
  • SERVICE_NAME is the NAV service name

Companies

CompanyURL-encodedUsed For
AMZS d.d.AMZS%20d.d.All services except membership
ČLANSKA BAZA%C4%8CLANSKA%20BAZAMobileContactMembership only

Service Types

Codeunit Services (RPC-style)

Custom business logic methods exposed as SOAP operations. Each method has its own SOAP action and parameter set.

ServiceEndpointMethods
AMZSMobileManagement/Codeunit/AMZSMobileManagement47
AMZSDD_WebSharedCodeUnits/Codeunit/AMZSDD_WebSharedCodeUnits60

Page Services (CRUD)

Standard NAV page services exposing entity data with uniform CRUD operations.

Each page service provides up to 10 standard methods:

MethodDescription
ReadRead a single record by primary key
ReadMultipleRead multiple records with filters
ReadByRecIdRead by internal record ID
CreateCreate a new record
CreateMultipleCreate multiple records
UpdateUpdate an existing record
UpdateMultipleUpdate multiple records
DeleteDelete a record
GetRecIdFromKeyGet internal record ID from key
IsUpdatedCheck if record has been updated

See Page Services for the complete list.

SOAP Envelope Format

All requests use SOAP 1.1 with .NET style envelopes:

xml
<?xml version="1.0" encoding="UTF-8"?>
<v:Envelope xmlns:v="http://schemas.xmlsoap.org/soap/envelope/"
            xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
            xmlns:d="http://www.w3.org/2001/XMLSchema">
  <v:Body>
    <MethodName xmlns="urn:microsoft-dynamics-schemas/codeunit/ServiceName">
      <paramName>value</paramName>
    </MethodName>
  </v:Body>
</v:Envelope>

Transport Configuration

SettingValue
SOAP Version1.1
Timeout20,000 ms
AuthenticationNTLM
dotNet modetrue
implicitTypestrue

Type Mapping

NAV TypeJava TypeSOAP Serialization
Text / CodeStringDirect
IntegerIntegerDirect
DecimalBigDecimalSerialized as String
BooleanBooleanDirect
DateTimejava.util.DateISO 8601
Option (Enum)Custom Enum classInteger value
Base64 (Binary)StringBase64-encoded