This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const string token = "SEU_TOKEN"; | |
var city = new City { name = "São Paulo", state = "SP" | |
}; | |
var addressOptions = new AddressOptions | |
{ | |
usePhonetic = true, | |
searchType = 2, | |
resultRange = new ResultRange {pageIndex = 1, recordsPerPage = 5} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://webservices.maplink2.com.br"> | |
<soap:Header/> | |
<soap:Body> | |
<web:findCity> | |
<web:cidade> | |
<web:name>São Paulo</web:name> | |
<web:state>SP</web:state> | |
</web:cidade> | |
<web:ao> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<soap:Body> | |
<findCityResponse xmlns="http://webservices.maplink2.com.br"> | |
<findCityResult> | |
<recordCount>4</recordCount> | |
<pageCount>1</pageCount> | |
<cityLocation> | |
<CityLocation> | |
<city> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const string token = "SEU_TOKEN"; | |
var city = new City { name = "São Paulo", state = "SP" }; | |
var addressOptions = new AddressOptions | |
{ | |
usePhonetic = true, | |
searchType = 2, | |
resultRange = new ResultRange {pageIndex = 1, recordsPerPage = 5} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void findCity() throws RemoteException, ServiceException { | |
final String TOKEN = "SEU_TOKEN"; | |
City city = new City(); | |
city.setName("São Paulo"); | |
city.setState("SP"); | |
ResultRange resultRange = new ResultRange(); | |
resultRange.setPageIndex(1); | |
resultRange.setRecordsPerPage(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void findAddress() throws RemoteException, ServiceException { | |
final String TOKEN = "SEU_TOKEN"; | |
City city = new City(); | |
city.setName("São Paulo"); | |
city.setState("SP"); | |
Address address = new Address(); | |
address.setStreet("Avenida Paulista"); | |
address.setHouseNumber("1000"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final String TOKEN = "SEU_TOKEN"; | |
City city = new City(); | |
city.setName("São Paulo"); | |
city.setState("SP"); | |
Address address = new Address(); | |
address.setStreet("Avenida Paulista"); | |
address.setHouseNumber("1000"); | |
address.setCity(city); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final String TOKEN = "SEU_TOKEN"; | |
City city = new City(); | |
city.setName("São Paulo"); | |
city.setState("SP"); | |
ResultRange resultRange = new ResultRange(); | |
resultRange.setPageIndex(1); | |
resultRange.setRecordsPerPage(10); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:web="http://webservices.maplink2.com.br"> | |
<soap:Header/> | |
<soap:Body> | |
<web:findAddress> | |
<web:address> | |
<web:street>Avenida Paulista</web:street> | |
<web:houseNumber>1000</web:houseNumber> | |
<web:city> | |
<web:name>São Paulo</web:name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final String TOKEN = "SEU_TOKEN"; | |
City city = new City(); | |
city.setName("São Paulo"); | |
city.setState("SP"); | |
Address address = new Address(); | |
address.setStreet("Avenida Paulista"); | |
address.setHouseNumber("1000"); | |
address.setCity(city); |