motoFirma Web Service


Kliknij tutaj, aby uzyskać pełną listę operacji.

Faktura

Zwraca zawartość faktury określonej parametrem 'Dokument'

Test

Formularz testowy jest dostępny tylko dla żądań z komputera lokalnego.

SOAP 1.1

Poniżej zamieszczono przykładowe żądanie i odpowiedź SOAP 1.1. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

POST /ws/ServiceMF.asmx HTTP/1.1
Host: autoprimaplus.hopto.org
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://moto-firma.pl/Faktura"

<?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>
    <Faktura xmlns="http://moto-firma.pl/">
      <Login>string</Login>
      <Haslo>string</Haslo>
      <Filia>string</Filia>
      <Dokument>string</Dokument>
    </Faktura>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <FakturaResponse xmlns="http://moto-firma.pl/">
      <FakturaResult>
        <Sukces>boolean</Sukces>
        <OpisBledu>string</OpisBledu>
        <Wiersze>
          <WierszFaktura>
            <Pozycja>int</Pozycja>
            <KodTowaru>string</KodTowaru>
            <Producent>string</Producent>
            <Nazwa>string</Nazwa>
            <Jm>string</Jm>
            <Ilosc>decimal</Ilosc>
            <Cena>decimal</Cena>
            <VAT>int</VAT>
            <PKW>string</PKW>
            <KodProducenta>string</KodProducenta>
            <EAN>string</EAN>
            <Detal>decimal</Detal>
          </WierszFaktura>
          <WierszFaktura>
            <Pozycja>int</Pozycja>
            <KodTowaru>string</KodTowaru>
            <Producent>string</Producent>
            <Nazwa>string</Nazwa>
            <Jm>string</Jm>
            <Ilosc>decimal</Ilosc>
            <Cena>decimal</Cena>
            <VAT>int</VAT>
            <PKW>string</PKW>
            <KodProducenta>string</KodProducenta>
            <EAN>string</EAN>
            <Detal>decimal</Detal>
          </WierszFaktura>
        </Wiersze>
      </FakturaResult>
    </FakturaResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

Poniżej zamieszczono przykładowe żądanie i odpowiedź SOAP 1.2. Zamiast symboli zastępczych należy podać rzeczywiste wartości.

POST /ws/ServiceMF.asmx HTTP/1.1
Host: autoprimaplus.hopto.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <Faktura xmlns="http://moto-firma.pl/">
      <Login>string</Login>
      <Haslo>string</Haslo>
      <Filia>string</Filia>
      <Dokument>string</Dokument>
    </Faktura>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <FakturaResponse xmlns="http://moto-firma.pl/">
      <FakturaResult>
        <Sukces>boolean</Sukces>
        <OpisBledu>string</OpisBledu>
        <Wiersze>
          <WierszFaktura>
            <Pozycja>int</Pozycja>
            <KodTowaru>string</KodTowaru>
            <Producent>string</Producent>
            <Nazwa>string</Nazwa>
            <Jm>string</Jm>
            <Ilosc>decimal</Ilosc>
            <Cena>decimal</Cena>
            <VAT>int</VAT>
            <PKW>string</PKW>
            <KodProducenta>string</KodProducenta>
            <EAN>string</EAN>
            <Detal>decimal</Detal>
          </WierszFaktura>
          <WierszFaktura>
            <Pozycja>int</Pozycja>
            <KodTowaru>string</KodTowaru>
            <Producent>string</Producent>
            <Nazwa>string</Nazwa>
            <Jm>string</Jm>
            <Ilosc>decimal</Ilosc>
            <Cena>decimal</Cena>
            <VAT>int</VAT>
            <PKW>string</PKW>
            <KodProducenta>string</KodProducenta>
            <EAN>string</EAN>
            <Detal>decimal</Detal>
          </WierszFaktura>
        </Wiersze>
      </FakturaResult>
    </FakturaResponse>
  </soap12:Body>
</soap12:Envelope>