NNAPIWebService
Click here for a complete list of operations.
QueryCounty
Web-metod för att hitta ett eller flera län eller att se om det länsvärde man har är giltigt. Om man söker på namn så kan man söka med 'Börjar med' *. tex. Stock* Namnet är inte heller skiftlägeskänsligt. Om man inte anger något namn(CountyName) eller kod(CountyCode) så returnerar tjänsten alla län i bokstavsordning. I resultatet skall fältet 'ErrorCode' i 'CountyResult' objektet har värdet 0 om allt är OK.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /nnapiwebservice.asmx HTTP/1.1 Host: api.teleadress.se Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://api.teleadress.se/QueryCounty" <?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:Header> <APISoapHeader xmlns="http://api.teleadress.se/"> <Command>string</Command> <Ticket>string</Ticket> </APISoapHeader> </soap:Header> <soap:Body> <QueryCounty xmlns="http://api.teleadress.se/"> <county User="string" Password="string" CountyName="string" CountyCode="string" /> </QueryCounty> </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:Header> <APISoapHeader xmlns="http://api.teleadress.se/"> <Command>string</Command> <Ticket>string</Ticket> </APISoapHeader> </soap:Header> <soap:Body> <QueryCountyResponse xmlns="http://api.teleadress.se/"> <CountyResult ErrorText="string" ErrorCode="int" xmlns="http://api.teleadress.se/CountyResult"> <County User="string" Password="string" CountyName="string" CountyCode="string" /> <County User="string" Password="string" CountyName="string" CountyCode="string" /> </CountyResult> </QueryCountyResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /nnapiwebservice.asmx HTTP/1.1 Host: api.teleadress.se 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:Header> <APISoapHeader xmlns="http://api.teleadress.se/"> <Command>string</Command> <Ticket>string</Ticket> </APISoapHeader> </soap12:Header> <soap12:Body> <QueryCounty xmlns="http://api.teleadress.se/"> <county User="string" Password="string" CountyName="string" CountyCode="string" /> </QueryCounty> </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:Header> <APISoapHeader xmlns="http://api.teleadress.se/"> <Command>string</Command> <Ticket>string</Ticket> </APISoapHeader> </soap12:Header> <soap12:Body> <QueryCountyResponse xmlns="http://api.teleadress.se/"> <CountyResult ErrorText="string" ErrorCode="int" xmlns="http://api.teleadress.se/CountyResult"> <County User="string" Password="string" CountyName="string" CountyCode="string" /> <County User="string" Password="string" CountyName="string" CountyCode="string" /> </CountyResult> </QueryCountyResponse> </soap12:Body> </soap12:Envelope>