CustomerAddressGetOne
Z Net47 2.0
(Różnice między wersjami)
Linia 36: | Linia 36: | ||
<SYM>942469</SYM> | <SYM>942469</SYM> | ||
<SYM_UL>25547</SYM_UL> | <SYM_UL>25547</SYM_UL> | ||
− | < | + | <AddressType>0</AddresType> |
<CreateDate>2012-03-01 12:31:00</CreateDate> | <CreateDate>2012-03-01 12:31:00</CreateDate> | ||
</Address> | </Address> | ||
Linia 50: | Linia 50: | ||
<SYM>942469</SYM> | <SYM>942469</SYM> | ||
<SYM_UL>25547</SYM_UL> | <SYM_UL>25547</SYM_UL> | ||
− | < | + | <AddressType>1</AddresType> |
<CreateDate>2012-03-01 12:31:00</CreateDate> | <CreateDate>2012-03-01 12:31:00</CreateDate> | ||
</Address> | </Address> | ||
Linia 64: | Linia 64: | ||
<SYM>942469</SYM> | <SYM>942469</SYM> | ||
<SYM_UL>25547</SYM_UL> | <SYM_UL>25547</SYM_UL> | ||
− | < | + | <AddressType>2</AddresType> |
<CreateDate>2012-03-01 12:31:00</CreateDate> | <CreateDate>2012-03-01 12:31:00</CreateDate> | ||
</Address> | </Address> |
Aktualna wersja na dzień 12:24, 9 lip 2012
Zapytanie:
//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ź:
//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:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Error</Type> <Error>Klient o podanym ID nie istnieje</Error> </Request> </Net47> //BEGINEND//