Sorting support Interface documentation. Version 1.0



Similar documents
Tracking Sweden API. Version 3.1

Search invoice API. Version 5.1

Price Online Sweden API. Version 2.8

Price Online Sweden API. Version 3.0

Price Online Sweden API. Version 4.00

Unionen s income protection insurance. Security even when you are out of work

Performance indicators, quality benchmarking and cost/ efficiency of emergency services. Gunnar Bergström SOS Alarm, Sweden

Katrineholm Logistics Centre An accommodating solution for transport, warehousing and logistics

Swedish Clusters. Sweden: Clusters in Focus

How dedicated HS-lines will affect. network

The first Swedish media operator. Anna Rolén - Project Director digital tv switch-over

Court statistics 2013 Official statistics of Sweden

BIOGAS PRODUCTION AND USAGES IN SWEDEN

&UniversityColleges. Swedish Universities. Swedish Universities & University Colleges 1998 SHORT VERSION OF ANNUAL REPORT

Airport Charges. Airport Charges for Swedavia AB.

LIST OF ATTORNEYS AND RELATED FIRMS - SWEDEN

Borås First Hotel Grand Agreement with sport life (reduced price for members)

Gröna Tåget Developing an attractive and efficient high-speed train concept for the Scandinavian market

Reliable transport of groupage cargo

Eligible master s level programs for the Visby Program Swedish Institute Baltic Sea Region Exchange Program

Scope of accreditation

Land surveyor or urban/land developer?

Annual Report 2009 The LFV Group. Swedish Airports and Air Navigation Services

Eligible Master Programmes for the Swedish Institute Visby Programme - the Academic Year 2014/2015 University Name of Master Programme Application

Response to questionnaire for: Assessment of strategic plans and policy measures on Investment and Maintenance in Transport Infrastructure.

Film for joy and learning. film education in sweden

Ange om en aktivitet har medfört att en tjänsteresa har utförts med flyg under 2013, och i sådana fall antal gånger.

Facts and figures Stockhom Arlanda Airport 2010

Railway traffic planning - Activities at dep of Transport & Logistics

Eligible Master Programmes for the Swedish Institute (SI) Visby Programme - the Academic Year 2015/2016

GetLibraryUserOrderList

GuldAdam Holding AB Denmark / Sweden / Norway - Estonia

HireDesk API V1.0 Developer s Guide

Cohousing in Sweden for the second half of life

Wood Construction program in Sweden

BS1000 command and backlog protocol

The presentation explains how to create and access the web services using the user interface. WebServices.ppt. Page 1 of 14

Tracking API. Version 1.72

IP Phone Services Configuration


Wood Construction program in Sweden

GetFormatList. Webservice name: GetFormatList. Adress:

SAS Data Integration SAS Business Intelligence

Pre-authentication XXE vulnerability in the Services Drupal module

Presentation in Riga and Tallinn, May 2006

months free! save up to 3sek 675 Unionen s income protection insurance Security even when you are out of work

Riverbed Cascade Shark Common REST API v1.0

Getting started with OWASP WebGoat 4.0 and SOAPUI.

Eligible Master Programmes for the Swedish Institute (SI) Study Scholarships - the Academic Year 2016/2017

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP System v10 with Microsoft IIS 7.0 and 7.5

QIWI Wallet Pull Payments API

Installation Procedure SSL Certificates in IIS 7

DEVELOPING CONTRACT - DRIVEN WEB SERVICES USING JDEVELOPER. The purpose of this tutorial is to develop a java web service using a top-down approach.

Karlskrona in figures

SAS Education Providing knowledge through global training and certification. SAS Foundation. Kursöversikt 2010

Projektplanering Arkitekter AB Leading leisurebath architects.

Using Form Scripts in WEBPLUS

DEPLOYMENT GUIDE Version 1.1. Deploying the BIG-IP LTM v10 with Citrix Presentation Server 4.5

<Insert Picture Here> Oracle Web Cache 11g Overview

13. Single Bets General Rules Placing or Annulment of Bets Joint Betting Objects Refund

DEPLOYMENT GUIDE Version 2.1. Deploying F5 with Microsoft SharePoint 2010

Module 9 Ad Hoc Queries

The success of biomethane in Sweden

Eligible master programmes for the Swedish Institute Study Scholarships for the academic year 2014/2015 University Programme Application code Credits

AdventNet ManageEngine SupportCenter Plus :: User Guide. Table Of Contents INTRODUCTION... 3 REQUEST Creating a New Request...

What is Distributed Annotation System?

Release Notes For Versant/ODBC On Windows. Release

Service for checking whether an is operative or not. Validate ids in your databases.

Chart of Accounts (COA) Validation Service. 6/11/2012 University at California, Berkeley IS&T, Application Services

Public Administration Programmes in Sweden

Twinfield Single Sign On

Passcreator API Documentation

Example for Using the PrestaShop Web Service : CRUD

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM System with VMware View

Documentation to use the Elia Infeed web services

Embedding a Data View dynamic report into an existing web-page

How to consume a Domino Web Services from Visual Studio under Security

Welcome to our presentation of Swedish cohousing experiences!

Knocker main application User manual

Deploying the BIG-IP System v10 with VMware Virtual Desktop Infrastructure (VDI)

Web Services API Developer Guide

Swedavia s Consultation Process Airport Charges 2014 Price Lists. Charges & Regulations Manager January 2 nd 2014

Intro to evis: the event visualization tool

Call Detail Record Access Service Part No R01

Transcription:

Sorting support Interface documentation Version 1.0

: Date: 2008-06-02 Page 2 av 14 Revision history Version Date Comments 1.0 2008-06-02 created

: Date: 2008-06-02 Page 3 av 14 TABLE OF CONTENTS REVISION HISTORY... 2 1 SORTING SUPPORT... 4 2 REQUEST WITH HQF... FEL! BOKMÄRKET ÄR INTE DEFINIERAT. 2.1 General variables... Fel! Bokmärket är inte definierat. 2.2 E-mail address by zip number... 7 2.3 Office number by zip number... 10 3 REQUEST WITH XML... FEL! BOKMÄRKET ÄR INTE DEFINIERAT. 3.1 General variables... Fel! Bokmärket är inte definierat. 3.2 E-mail address via zip number... Fel! Bokmärket är inte definierat. 3.3 Office number via zip number... Fel! Bokmärket är inte definierat. 4 ERROR CODES... 14 5 TABLE OF OFFICE NUMBERS... 14

: Date: 2008-06-02 Page 4 av 14 1 Sorting support The service gives external customers the possibility to connect to Schenker s system and with a zip code get e-mail address or office number to the district office who is responsible for the specified zip code. The interface supports two methods: Searching for e-mail address by zip code and searching for office number by zip code. The service can be invoked by httprequest using XML or HQF (http Query Format) and can also be returned in these two formats. Examples of requests and responses for both ways can be found in this document. Figure 1 Flow chart of the service For further information of how Schenker s online services are built and should be invoked we recommend reading our separate introduction. URL to use: http://was.webtrp.com/mailformmanager/mailformmanager_1?

: Date: 2008-06-02 Page 5 av 14 2 General variables/nodes The general variables exist to administrate the communication and are joint for all communication. The general variables are: request, response and system. The variable data_list is a vector of information with the message itself and is specific per method. For XML it will be <request>, <response>, <system> and <data_list> which consists of <data index=? > nodes with the message information. An XML document can only contain one top node and se we enclose the above mentioned nodes with <xml>. A request will thus have the following structure: <?xml version= 1.0?> <xml> <request>...</request> <response>...</response> <system>...</system> <data_list> <data index= 0 >...</data> </data_list> </xml> The title M symbolizes mandatory field. 2.1 Request Contains information sent to the service. The request can be done in two ways. Either searching for e-mail address by zip code (email) or searching for office number by zip code (office). Add prefix request. to the variables if using HQF or place the nodes under <xml><request> if using XML. Name hqf Name - xml O Type Standard Explanation service.action <action> O String WDR Value select service.method <method> O String WDR Value email or office Specifies request format.mime <format><mime> O String WDR Value text/xml or text/plain desired response format 2.2 Response Contains information received from the service. Is found after prefix response. If using HQF or under <xml><response> if using XML. Name - hqf Name - xml O Type Standard Explanation service.name <name> O String WDR Value MailFormManager Name of the service. service.version <version> O String WDR Version nummer (2.0) data_list_count <data_list_count> O Int WDR Number of items in the data_list

: Date: 2008-06-02 Page 6 av 14 2.3 System Contains error code generated from the system. For HQF system.error.id=0 means OK. For XML <system><error><id>0</id></error></system> means OK. Also contains statistic variables to the system. Add prefix system. if using HQF or place the nodes under <xml><system> if using XML. Name hqf Name - xml O Type Standard Explanation error.id <error><id> O Int WDR Error code error.id = 0 means OK error.message <error><message> String WDR Error message statistics.remote.country _code statistics.remote.send_d ata_format statistics.remote.access _type statistics.remote.admin_ e_mail statistics.remote.applicat ion_name statistics.user.organizati on_id statistics.user.language_ code <statistics><remote><count ry_code> <statistics><remote><send _data_format> <statistics><remote><acce ss_type> <statistics><remote><admi n_e_mail> <statistics><remote><appli cation_name> <statistics><user><organiz ation_id> <statistics><user><languag e_code> String WDR Country code for client, ex. se or us String WDR Clients way of sending the request, xml or hqf (Http Query Format) String WDR Clients request type, A (browser) String WDR E-mail address to the clients administrator String WDR Clients page or module which sends the request String WDR Clients VAT-number or Organisation number String WDR Languagecode for client, ex. sv_se

: Date: 2008-06-02 Page 7 av 14 3 E-mail address by zip number This service returns e-mail address to customer services from office connected to specified zip number. 3.1 Request Contains information sent to the service. HQF Request on email: request.service.method=email Add prefix data_list.0. to variable. XML Request on email:... <request> <method>email</method> </request>... Place the node under <xml><data_list><data index= 0 >. Name hqf Name - xml O Type Standard Explanation consignee_zip_number <consignee_zip_number> O String NAD CN DE 3251 Zip number search refer to. Example URL for search of e-mail address by zip number with HQF, response in XML: http://was.webtrp.com/mailformmanager/mailformmanager_1?request.service.action=select&req uest.service.method=email&system.statistics.remote.country_code=se&system.statistics.remote.s end_data_format=text/xml&system.statistics.remote.access_type=a&system.statistics.remote.ad min_e_mail=admin@test.se&system.statistics.remote.application_name=web2&system.statistics. user.organization_id=123456789&system.statistics.user.language_code=sv_se&data_list.0.consi gnee_zip_number=43430&request.format.mime=text/xml Example URL for search of e-mail address by zip number with HQF, response in text: http://was.webtrp.com/mailformmanager/mailformmanager_1?request.service.action=select&req uest.service.method=email&system.statistics.remote.country_code=se&system.statistics.remote.s end_data_format=text/xml&system.statistics.remote.access_type=a&system.statistics.remote.ad min_e_mail=admin@test.se&system.statistics.remote.application_name=web2&system.statistics. user.organization_id=123456789&system.statistics.user.language_code=sv_se&data_list.0.consi gnee_zip_number=43430&request.format.mime=text/plain Example URL search of e-mail address by zip number with XML, response in XML format:

: Date: 2008-06-02 Page 8 av 14 http://was.webtrp.com/mailformmanager/mailformmanager_1?xml= <?xml version="1.0" encoding="iso-8859-1"?> <xml> <request> <format> <mime>text%2fxml</mime> </format> <action>select</action> <method>email</method> </request> <system> <statistics> <remote> <country_code>se</country_code> <send_data_format>text%2fxml</send_data_format> <admin_e_mail>admin@test.se</admin_e_mail> <access_type>a</access_type> <application_name>web2</application_name> </remote> <user> <organization_id>123456789</organization_id> <language_code>se</language_code> </user> </statistics> </system> <data_list> <data index="0"> <consignee_zip_number>40010</consignee_zip_number> </data> </data_list> </xml> Example URL search of e-mail address by zip number with XML, response in text format: http://was.webtrp.com/mailformmanager/mailformmanager_1?xml= <?xml version="1.0" encoding="iso-8859-1"?> <xml> <request> <format> <mime>text%2fplain</mime> </format> <action>select</action> <method>email</method> </request> <system> <statistics> <remote> <country_code>se</country_code> <send_data_format>text%2fxml</send_data_format> <admin_e_mail>admin@test.se</admin_e_mail> <access_type>a</access_type> <application_name>web2</application_name>

: Date: 2008-06-02 Page 9 av 14 </remote> <user> <organization_id>123456789</organization_id> <language_code>se</language_code> </user> </statistics> </system> <data_list> <data index="0"> <consignee_zip_number>40010</consignee_zip_number> </data> </data_list> </xml> 3.2 Response Contains information received from the service. HQF Add prefix data_list.0. to variables. XML Place nodes under <xml><data_list><data index= 0 >. Name hqf Name -xml O Type Standard Explanation email <email> String E-mail address to customer services Exemple response in XML format: <?xml version="1.0" encoding="iso-8859-1"?> <xml> <data_list> <data index="0"> <email> test@test.test</email> </data> </data_list> <response> <name>mailformmanager</name> <version>2.0</version> <api_version>1.0</api_version> <data_list_count>1</data_list_count> </response> <system> <error> <id>0</id> </error> </system> <page_name /> </xml> Example response in text format: system.error.id=0& response.service.version=2.0&

: Date: 2008-06-02 Page 10 av 14 response.service.name=mailformmanager& response.data_list_count=1& response.service.api_version=1.0& data_list.0.email= test%40test.test 4 Office number by zip number This service returns office number from specified zip number. 4.1 Request Contains information sent to the service. HQF Request on office: request.service.method=office. Add prefix data_list.0. to variables. XML Request on office:... <request> <method>office</method> </request>... Place nodes under <xml><data_list><data index= 0 > Name - hqf Name xml O Type Standard Explanation consignee_zip_number <consignee_zip_number> O String NAD CN DE 3251 Zip number search refer to. Example URL search of office number by zip number with HQF, response in XML format: http://was.webtrp.com/mailformmanager/mailformmanager_1?request.service.action=select&req uest.service.method=office&statistics.remote.country_code=se&statistics.remote.send_data_form at=text/xml&statistics.remote.access_type=a&statistics.remote.admin_e_mail=admin@test.se&st atistics.remote.application_name=web2&statistics.user.organization_id=123456789&statistics.use r.language_code=sv_se&data_list.0.consignee_zip_number=43430&request.format.mime=text/x ml Example URL search of office number by zip number with HQF, response in text format: http://was.webtrp.com/mailformmanager/mailformmanager_1?request.service.action=select&req uest.service.method=office&statistics.remote.country_code=se&statistics.remote.send_data_form at=text/plain&statistics.remote.access_type=a&statistics.remote.admin_e_mail=admin@test.se&s tatistics.remote.application_name=web2&statistics.user.organization_id=123456789&statistics.us

: Date: 2008-06-02 Page 11 av 14 er.language_code=sv_se&data_list.0.consignee_zip_number=43430&request.format.mime=text/p lain Example URL search of office number by zip number with XML, response in XML format: http://was.webtrp.com/mailformmanager/mailformmanager_1?xml= <?xml version="1.0" encoding="iso-8859-1"?> <xml> <request> <format> <mime>text%2fxml</mime> </format> <action>select</action> <method>office</method> </request> <system> <statistics> <remote> <country_code>se</country_code> <send_data_format>text%2fxml</send_data_format> <admin_e_mail>admin@test.se</admin_e_mail> <access_type>a</access_type> <application_name>web2</application_name> </remote> <user> <organization_id>123456789</organization_id> <language_code>se</language_code> </user> </statistics> </system> <data_list> <data index="0"> <consignee_zip_number>43430</consignee_zip_number> </data> </data_list> </xml> Example URL search of office number by zip number with XML, response in text format: http://was.webtrp.com/mailformmanager/mailformmanager_1?xml= <?xml version="1.0" encoding="iso-8859-1"?> <xml> <request> <format> <mime>text%2fxml</mime> </format> <action>select</action> <method>office</method> </request> <system> <statistics> <remote> <country_code>se</country_code>

: Date: 2008-06-02 Page 12 av 14 <send_data_format>text%2fplain</send_data_format> <admin_e_mail>admin@test.se</admin_e_mail> <access_type>a</access_type> <application_name>web2</application_name> </remote> <user> <organization_id>123456789</organization_id> <language_code>se</language_code> </user> </statistics> </system> <data_list> <data index="0"> <consignee_zip_number>43430</consignee_zip_number> </data> </data_list> </xml> 4.2 Response Information returned from the service. HQF Addera prefixet data_list.n. till variablerna, där n är ett index mellan 0-49. XML <data> noderna ligger under <xml><data_list>. För varje sänding finns en <data index=? > nod med index 0-49 Name - hqf Name - xml O Type Standard Explanation office <office> String Office number Example of response in XML format: <?xml version="1.0" encoding="iso-8859-1"?> <xml> <data_list> <data index="0"> <office>158</office> </data> </data_list> <response> <name>mailformmanager</name> <version>2.0</version> <api_version>1.0</api_version> <data_list_count>1</data_list_count> </response> <system> <error>

: Date: 2008-06-02 Page 13 av 14 <id>0</id> </error> </system> <page_name /> </xml> Example of response in text format: system.error.id=0& response.service.version=2.0& response.service.name=mailformmanager& response.data_list_count=1& response.service.api_version=1.0& data_list.0.office= 158

: Date: 2008-06-02 Page 14 av 14 5 Error codes The following error codes exist in the service: Error code Description Explanation 210 Invalid data Value not supported entered. 302 Illegal value Invalid value entered. 304 Mandatory information is missing Mandatory in data missing. 507 Internal server error Miscellaneous errors. E.g. database connection could not been established. 6 Table of office numbers 430 Borlänge 356 Linköping 448 Vänersborg 190 Borås 513 Luleå 604 Värnamo 455 Gävle 174 Malmö 638 Västerås 158 Göteborg 281 Nybro 653 Växjö 3848 Halmstad 679 Skara 422 Örebro 224 Helsingborg 372 Skellefteå 745 Örnsköldsvik 463 Hultsfred 125 Stockholm 661 Östersund 3426 Jönköping 943 Stockholm Coldsped 4770 Karlshamn 380 Sundsvall 315 Karlstad 414 Umeå 4721 Kristianstad 596 Visby