CustomerAddressGetOne

Z Net47 2.0
Skocz do: nawigacji, wyszukiwania

Zapytanie:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <SessionID>9859c16379c2f22e2db8dde9f41cc6a8</SessionID>
    <Priority>0</Priority>
    <Request>
        <Type>CustomerAddressGetOne</Type>
        <CustomerAddressGetOne>
            <CustomerID>4</CustomerID>
            <AddressType>0</AddressType> <!-- 0 = Adres klienta, 1 = Adres instalacji, 2 = Adres korespondencyjny, brak sekcji = wszystkie --> <!-- opcjonalne -->
        </CustomerAddressGetOne>
    </Request>
</Net47>
//BEGINEND//

Odpowiedź:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>CustomerAddressGetOne</Type>
        <CustomerAddressGetOne>
            <Address> <!-- sekcja wystepuje w zaleznosci od zadanego AddressType -->
                <ID>1</ID>
                <CustomerID>5</CustomerID>
                <Street>5</Street>
                <Numer>5</Numer>
                <Mieszkanie>1a</Mieszkanie>
                <Zip>11-200</Zip>
                <City>Rybnik</City>
                <Poczta>Rybnik</Poczta>
                <SYM>942469</SYM>
                <SYM_UL>25547</SYM_UL>
                <AddressType>0</AddresType>
                <CreateDate>2012-03-01 12:31:00</CreateDate>
            </Address>
            <Address> <!-- sekcja wystepuje w zaleznosci od zadanego AddressType -->
                <ID>1</ID>
                <CustomerID>5</CustomerID>
                <Street>5</Street>
                <Numer>5</Numer>
                <Mieszkanie>1a</Mieszkanie>
                <Zip>11-200</Zip>
                <City>Rybnik</City>
                <Poczta>Rybnik</Poczta>
                <SYM>942469</SYM>
                <SYM_UL>25547</SYM_UL>
                <AddressType>1</AddresType>
                <CreateDate>2012-03-01 12:31:00</CreateDate>
            </Address>
            <Address> <!-- sekcja wystepuje w zaleznosci od zadanego AddressType -->
                <ID>1</ID>
                <CustomerID>5</CustomerID>
                <Street>5</Street>
                <Numer>5</Numer>
                <Mieszkanie>1a</Mieszkanie>
                <Zip>11-200</Zip>
                <City>Rybnik</City>
                <Poczta>Rybnik</Poczta>
                <SYM>942469</SYM>
                <SYM_UL>25547</SYM_UL>
                <AddressType>2</AddresType>
                <CreateDate>2012-03-01 12:31:00</CreateDate>
            </Address>
        </CustomerAddressGetOne>
    </Request>
</Net47>
//BEGINEND//

Błędy:

1
2
3
4
5
6
7
8
9
//BEGIN//
<?xml version="1.0" encoding="UTF-8"?>
<Net47>
    <Request>
        <Type>Error</Type>
        <Error>Klient o podanym ID nie istnieje</Error>
    </Request>
</Net47>
//BEGINEND//
Osobiste
Przestrzenie nazw
Warianty
Działania
Nawigacja
Konfiguracja Systemu