Table of Contents

GroupsAvailable() metoda

Akcija

Metod vraća kolekciju raspoloživih grupa artikala, ili, kako se u Balans ERP-u zovu, kataloga artikala. Najvažniji elemnti kataloga su njegova jedinstvena šifra (numerička vrednost) i naziv.

Sintaksa

GroupsAvailable (sessToken)

Rezultat

Kolekcija Katalog entiteta (List<Katalog>) ili null ukoliko nije dostupna ni jedna grupa.

Parametri

NazivVrstaOpisRevizija
sessTokenStringJedinstveni niz znakova dobijen metodom GetToken() koji identifikuje korisničku sesiju.19-6-11


SOAP zahtev (primer)

POST https://ws.melany.rs:8191/Assets/Assets HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.bort.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ser:GroupsAvailable>
         <sessToken>20010110584722719004</sessToken>
      </ser:GroupsAvailable>
   </soapenv:Body>
</soapenv:Envelope>

SOAP odgovor

HTTP/1.1 200 OK
Server: GlassFish Server Open Source Edition  4.1.2
X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition  4.1.2  Java/Oracle Corporation/1.8)
Server: grizzly/2.3.23
Content-Type: text/xml; charset=utf-8

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:GroupsAvailableResponse xmlns:ns2="http://services.bort.com/">
         <return>
            <fldArtNaz/>
            <fldBojNaz/>
            <fldModNaz/>
            <fldSklNaz/>
            <fldTehNaz/>
            <fldTipNaz/>
            <ID>9917841</ID>
            <naziv>Ciciban</naziv>
            <sifPrfx/>
            <velicFld>0</velicFld>
         </return>
         <return>
            <fldArtNaz/>
            <fldBojNaz/>
            <fldModNaz/>
            <fldSklNaz/>
            <fldTehNaz/>
            <fldTipNaz/>
            <ID>9917861</ID>
            <naziv>Grubin</naziv>
            <sifPrfx/>
            <velicFld>0</velicFld>
         </return>
         <return>
            <fldArtNaz/>
            <fldBojNaz/>
            <fldModNaz/>
            <fldSklNaz/>
            <fldTehNaz/>
            <fldTipNaz/>
            <ID>9917851</ID>
            <naziv>Todor</naziv>
            <sifPrfx/>
            <velicFld>0</velicFld>
         </return>
      </ns2:GroupsAvailableResponse>
   </S:Body>
</S:Envelope>

SOAP Response (primer)

<?xml version="1.0" encoding="UTF-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <S:Body>
        <ns2:GroupsAvailableResponse xmlns:ns2="http://services.bort.com/">
            <return>
                <ID>107275</ID>
                <naziv>AMORE & BACI</naziv>
                <velicFld>0</velicFld>
            </return>
            <return>
                <ID>109685</ID>
                <naziv>CAFLON</naziv>
                <sifPrfx/>
                <velicFld>0</velicFld>
            </return>
            <return>
                <ID>173181</ID>
                <naziv>Casio satovi</naziv>
                <sifPrfx/>
                <velicFld>0</velicFld>
            </return>
        </ns2:GroupsAvailableResponse>
    </S:Body>