Versions Compared
Key
- This line was added.
- This line was removed.
- Formatting was changed.
The SDK's interface is a web service offering a SOAP as well as a RESTful interface. All requests are available in both ways. This makes the service actually acting as a kind of "Hybrid" web service.
SOAP is typically recommended to be used with high level programming languages like C# or within in a J2EE application. An integrated development environment (IDE) will usually automatically build wrapper classes from the SDK's WSDL. For more information see Use Nexus Card SDK with different programming languages.
REST may be used as a lean and easy interface with languages like JavaScript (with its XML-HttpRequest object) or even with C (with Window'sWinINet functions like HttpSendRequest).
The choice, SOAP or REST, may also depend on your knowledge or on your personal preference. However, independent of using SOAP or REST, the web service offers a basically identical communication style: Each SDK function request receives its data as XML and returns its response as XML.
These basic rules regarding the request XMLs applies for all web service functions:
- Response XML = Sent XML + Enriched data: The returned XML corresponds to the sent request XML and is extended or modified by some return data. However, a few exceptions for this rule exist but they are explicitly named in the sections below.
- Language identifier: A request that shows a user interface may contain a language attribute to control the language of its interface. This language attribute is always part of the XMLs root element. Supported values correspond to the 2-letter code as defined in ISO 639-1. Currently supported language identifiers are EN, DE, SV, FR, IT, ES, PT, PL, RU, AR, ZH.
Expand | ||||
---|---|---|---|---|
| ||||
In RESTful style, the XML data is sent in the body of the HTTP POST request. Only single calls, those which do not need data in the request, are using GET. Whether POST or GET is needed is specified for every function call in the following sections.
Refer to the specific function description for further error codes. However, it is always advisable to check
|
Expand | ||||
---|---|---|---|---|
| ||||
In SOAP style, the XML data is sent as the request's only parameter. The WSDL defines the following input message for each function:
The response, as output message is defined as:
Again, this response is identical for each SOAP function (in SOAP terms: operation).
The WSDL for the SOAP interface may be retrieved by the URL http://localhost:54880/?wsdl (supposed the SDK is installed and running on the local machine and uses its default port 54880). Use this URL1 to build a wrapper with your IDE. 1 In most cases it is actually recommended to use the URL and not the downloaded WSDL (and its local file path) to generate the wrapper classes. The reason is that an object, instantiated from such a wrapper class may access the WSDL at runtime. But the file will not be present at the target system unless you ensure this. Java wrapper classes generated with wsimport.exe to be used with JAX-WS are an example for such WSDL accessing objects. For more information, see Use Nexus Card SDK with different programming languages. |
Expand | ||
---|---|---|
| ||
The SDK's web service, the IDProductionService, is immediately running after installing the SDK. Entering the URL http://localhost:54880 in a web browser starts the service's web service interface2. The service does not only act as SOAP and RESTful web service but it also offers a lean Web server that provides status information and development support. The web interface offers basic Status information and a Components page which demonstrates the usage and test of the components. Especially for development purposes, the Development page offers the possibility to evaluate all SDK functions easily:
However, the most convenient way is working with the Sample Request Templates which are directly provided by the service. The templates can be retrieved by the corresponding links in the Development page. You may modify the template XMLs to learn how the SDK behaves for different requests. Using a HTTP logging tool like Fiddler (see Trace HTTP traffic)may even give you further support to evaluate the SDK. It allows you to inspect all sent and received data. The HTML page uses the RESTful interface. However, if you use SOAP with your application, this way to evaluate the SDK is helpful in the same way as the exchanged XML definitions are identical. 2 For quick and frequent need to check the service's status and to access this interface, you can activate a Windows taskbar notification icon. You activate this icon in the SDK's Configuration Manager. When activated, the running service is shown as a blue gearwheel. For terminating the service you may use the context menu which opens on a right mouse click. Displaying the service's web interface is achieved by double-clicking the icon and following the Details link in the appearing dialog. |
Expand | ||
---|---|---|
| ||
The web service methods are described in articles of their own.
Card definition Define cards (Non Managed Mode only)
Card definition Define cards (Managed Mode only)
|