Beruflich Dokumente
Kultur Dokumente
Connectivity Guide
VedaXML V2
www.veda.co.nz
Email:
assistonline.nz@veda.co.nz
Phone:
Address:
Copyright Notice
3 August 2011 Veda Advantage (NZ) Limited
This document is the intellectual property of Veda Advantage (NZ) Limited. The information contained in this document is
confidential and may not be stored, copied, given, lent or in any way transmitted to any other company or person without
the express written consent of Veda Advantage (NZ) Limited.
Revision Control
Product
Version
Document
Version
Date
Description
Author
V2
1.07
22/08/2011
Esm Jack
______
Page 2
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Contents
Introduction ..................................................................................................................................................................4
Assumptions .............................................................................................................................................................4
Conventions ..............................................................................................................................................................4
Getting Started .........................................................................................................................................................4
Future Enhancements ..............................................................................................................................................5
Connecting to VedaXML ...............................................................................................................................................6
Route ........................................................................................................................................................................6
Security .....................................................................................................................................................................6
Testing the Connection.............................................................................................................................................7
Messaging with VedaXML.............................................................................................................................................8
Building Requests .......................................................................................................................................................10
The Prologue...........................................................................................................................................................10
The Request Envelope ............................................................................................................................................10
The Request Element..............................................................................................................................................12
Identification Details...........................................................................................................................................14
Product ...............................................................................................................................................................14
The Data Elements..................................................................................................................................................14
Testing Requests .....................................................................................................................................................14
Processing Responses .................................................................................................................................................15
The Response Envelope ..........................................................................................................................................15
Normal Product Response ......................................................................................................................................16
Product Error ..........................................................................................................................................................16
VedaXML Error........................................................................................................................................................16
______
Page 3
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Introduction
This manual discusses the procedures for implementing the Veda business-to-business (B2B) system VedaXML. It covers the
following topics:
Writing requests.
Handling responses.
VedaXML schemas.
Assumptions
This document assumes the following:
Appropriate programming techniques for extracting data from and importing responses into your own system.
Conventions
The following conventions are used in this document:
XML attributes are identified by placing the attribute name in braces (e.g. {code}). Where necessary, the attribute is
further identified by including its element (e.g. street-type{code}).
Getting Started
The following steps broadly describe the procedures for working with the VedaXML System:
Validate the request by parsing it through the schema for that product.
______
Page 4
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Future Enhancements
The VedaXML system is progressively evolving; your programming strategy should be prepared for changes to your
implementation. Proposed enhancements to the VedaXML System are:
Use of XML namespaces as the number of VedaXML products increases, and other XML-based documents become
more numerous, XML namespaces will prevent clashes between identical element names in different documents.
This will result in changes to the schemas.
______
Page 5
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Connecting to VedaXML
This chapter discusses the procedures for setting up your connection to the VedaXML system.
Route
VedaXML access is most commonly conducted over the Internet, shown simply in Figure 1. VedaXML utilises SSL 3.0 over
HTTP 1.1.
Figure 1
VedaXML Routing
Your
Server
B2Bay
Server
SSL Layer
Authentication Layer
HTTP Layer
IDC
Security
All transactions are handled in a secure environment, using standard Internet authentication and encryption methods. These
include HTTP credentials checks (as per HTTP 1.1) and registration of certificates in the application key store.
When programming the method to establish an SSL connection for the transport of VedaXML messages, note that the digital
certificates held by Veda will update from time to time. Ideally the connection method retrieves the public key automatically
thereby obtaining new public keys whenever they occur. However if the manual retrieval of the public certificate is part of
the system design (as is sometimes the case with Java development) then note that this process will be required whenever
certificates get updated.
Veda identification codes and passwords ensure that operators can access only those products for which they are authorised.
Under the terms of privacy legislation, access to consumer credit files is strictly
regulated, and severe penalties exist for breach of privacy. If you have any concerns
about using these files, please contact your Veda representative.
Important!
______
Page 6
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
A Ping Request
<BCAmessage type="REQUEST">
<BCAaccess>
<BCAaccess-code>********</BCAaccess-code>
<BCAaccess-pwd>********</BCAaccess-pwd>
</BCAaccess>
<BCAservice>
<BCAservice-code>PING</BCAservice-code>
<BCAservice-code-version>V00</BCAservice-code-version>
<BCAservice-client-ref>123456789</BCAservice-client-ref>
<BCAservice-data>
</BCAservice-data>
</BCAservice>
</BCAmessage>
If your system is correctly connected to the VedaXML system, you should receive the response shown in Figure 3.
Figure 3
A Ping Response
<BCAmessage type="RESPONSE" service-request-id="00000000056">
<BCAservices>
<BCAservice>
<BCAservice-code>PING</BCAservice-code>
<BCAservice-code-version>V00</BCAservice-code-version>
<BCAservice-client-ref>123456789</BCAservice-client-ref>
<BCAservice-data>
</BCAservice-data>
</BCAservice>
</BCAservices>
</BCAmessage>
______
Page 7
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Client
System
B2Bay
Server
HTTPS
POST
Receive
Wait
Process
Respond
Read
Response
To ensure Veda maintains a high level of service to all subscribers, please limit your concurrent sessions to three.
If you wish to use VedaXML for batch-style, high-volume use, please contact your Veda representative.
Figure 5 shows sample Java code for transmitting your envelope to Veda. The HTTPS posting protocol is used. Note that the
code assumes that the public key has already been retrieved from the VedaXML URL.
Each product has a specific time out, ranging from 1 minute to 10 minutes; contact your Veda representative for details. The
web server time out is set to 12 minutes.
______
Page 8
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Figure 5
______
Page 9
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Building Requests
This chapter describes the procedures for building a request. Each request is written as a standard XML tagged document.
XML elements are logically grouped into parent elements. Parent elements may contain other parent elements.
For a request to be successfully processed, it must pass the validation process:
First, the schema for the request parses the tagged text. This process ensures that the request contains all the
required elements, and carries out some preliminary content validation. However, be aware that the schema cannot
completely validate your request.
After receiving a request, Veda validates the input before processing. If any information is found to be invalid, then
the request is rejected.
Therefore, to prevent the system rejecting your requests, you must be aware of Vedas validation requirements. These
requirements are given in each element description in the VedaXML Product Guides.
The Prologue
Requests begin with a two-line prologue. The first line is mandatory and identifies that the request is an XML document.
Requests are set to XML version 1 and the encoding method of choice, for example:
<?xml version="1.0" encoding="UTF-8"?>
Encoding options are:
Windows-1252 or ISO-8859-1 that allow the XML to be viewed using Internet Explorer 5.
UTF-8 or UTF-16 that do not allow the XML to be viewed using Internet Explorer 5.
The second prologue line, the DOCTYPE declaration, is optional. You may want to include this line for internal reference to
schema files.
______
Page 10
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Figure 6
BCAaccess
BCAaccess-code
BCAaccess-pwd
BCAservice
BCAservice-code
BCAservice-code-version
BCAservice-client-ref
BCAservice-data
BCAmessage{type} describes the type of message being transmitted, in this case a request.
BCAaccess contains VedaXML access code and password information.
BCAservice contains further access and client identification data, and the request itself.
BCAservice-client-ref is an optional element that you can use to identify the request. In the example below, a simple
number has been included.
Error! Reference source not found. lists the BCAservice-codes and versions currently available.
Service Code
Version
Description
BCA001
V00
BCA003
V00
BCA011
V00
PING
V00
Ping Service.
VSS001
V00
DUMMY
V00
Dummy Service.
The following example shows a standard request envelope (note that the asterisks represent codes supplied by Veda):
______
Page 11
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Subscriber details.
The structure of a request differs slightly between New Zealand and Australian products. Figure 7 shows an example of a
New Zealand request and Figure 8 shows an example of an Australian request.
______
Page 12
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Figure 7
Figure 8
Australian Request
<request version=1.0 mode=test transaction-reference=2002-06-02:1355>
<subscriber-details>
<subscriber-identifier>********</subscriber-identifier>
<security>**</security>
</subscriber-details>
<product name=consumer-enquiry/>
<individual>
.
.
</individual>
<enquiry>
.
.
</enquiry>
</request>
{version} is a fixed attribute that specifies the version of the schema in use.
{mode} is a required attribute that specifies whether you wish to access the Test or Production database.
{transaction-reference} is an optional attribute that you can use to identify the request. In the example above, a
simple date-time stamp has been included.
______
Page 13
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Identification Details
client-details (NZ) and subscriber-details (AUS) identify your organisations access, and groups or individuals within your
organisation, to Veda. It contains the following elements:
Product
Some schemas supplied by Veda are designed to accommodate a range of related products; that is, products that rely on
similar or identical information in the request.
Set product{name} to specify the product you want. The available products are always listed in the schema.
Testing Requests
Your request should be thoroughly tested before being used in a production environment. Veda has a database set up
exclusively for testing. Use of this database is free of charge.
To use the test database:
Should you require any test data or further information about testing requests, contact your Veda representative.
______
Page 14
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Processing Responses
This chapter describes the types of response. Each response is written as a standard XML tagged file.
BCAservices
BCAservice
BCAservice-code
BCAservice-code-version
BCAservice-client-ref
BCAservice-data
______
Page 15
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Product Error
The response contains information about an exception found in that part of the Veda system that processes your request.
Typically, this is either an error within the input data or non-availability of the system. Product errors are further discussed in
the VedaXML Product Programming Guides.
VedaXML Error
A VedaXML error indicates that a problem has been detected at server level within the Veda system. Figure 10 shows the
elements in a VedaXML error message; note that the figures after each item indicate its length.
Figure 10
BCAerror-code ........................................................
8
BCAerror-description ................................
200
______
Page 16
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited
Description
Action
Authentication
Validation
Availability
The following XML code shows examples of VedaXML error messages> The following message indicates that the request has
been submitted with inaccurate access code and/or password information.
<BCAerror type="AUTHENTICATION">
<BCAerror-code>ERR1005</BCAerror-code>
<BCAerror-description>The Request Manager was unable to authenticate the VedaXML access code and
password supplied</BCAerror-description>
</BCAerror>
This message suggests that the content of the request envelope is incorrect.
<BCAerror type="VALIDATION">
<BCAerror-code>ERR4002</BCAerror-code>
<BCAerror-description>The Service Provider detected an error in the Message Envelope</BCAerrordescription>
</BCAerror>
______
Page 17
Copyright @ 3 August 2011 Veda Advantage (NZ) Limited