Home
Name Modified Size InfoDownloads / Week
README.txt 2014-06-30 2.7 kB
jsip2-1.1.0.zip 2014-06-30 1.3 MB
LICENSE.txt 2014-06-27 1.1 kB
jsip2-1.0.1.zip 2014-06-27 1.3 MB
jsip2-1.0.zip 2012-08-17 1.3 MB
Totals: 5 Items   4.0 MB 0
JSIP2 
v1.1.0 - 30.6.2014
Copyright (c) 2014 Petteri Kivimäki
http://sourceforge.net/projects/jsip2/
-----------

3M Standard Interchange Protocol (SIP) is an industry standard protocol by 3M to allow automate check out terminals communicate with library systems (ILS).

JSIP2 is an Open Source (MIT) library that implements the 3M SIP version 2 protocol including the 3M SIP2 Extensions for SIP2 clients. 
The library contains the necessary functionality for SIP2 client socket based implementation supporting all the SIP2 messages and fields, 
including also the fields defined in the the 3M SIP2 Extensions.

The SIP2 messages are listed below.

    Login (93) - Login response (94)
    SCStatus Request(99) - ACS Status Response (98)
    Patron Status Request (23) - Patron Status Response (24)
    Patron Information Request (63) - Patron Information Response (64)
    Checkout Request (11) - Checout Response (12)
    Checkin Request (09) - Checkin Response (10)
    Block Patron Request (01) - Patron Status Response (24)
    End Patron Session (35) - End Session Response (36)
    Fee Paid Request (37) - Fee Paid Response (38)
    Item Information Request (17) - Item Information Response (18)
    Item Status Update Request (19) - Item Status Update Response (20)
    Patron Enable Request (25) - Patron Enable Response (26)
    Hold Request (15) - Hold Response (16)
    Renew Request (29) - Renew Response (30)
    Renew All Request (65) - Renew All Response (66)
    Request resend (97)

Example:
---------

import com.pkrete.jsip2.connection.SIP2SocketConnection;
import com.pkrete.jsip2.messages.requests.SIP2LoginRequest;
import com.pkrete.jsip2.messages.requests.SIP2SCStatusRequest;
import com.pkrete.jsip2.messages.responses.SIP2ACSStatusResponse;
import com.pkrete.jsip2.messages.responses.SIP2LoginResponse;

/* Connect to the ILS SIP server */
SIP2SocketConnection connection = new SIP2SocketConnection("mydomain.com", 12345);

/* If connection fails, exit program */
if (!connection.connect()) {
  System.exit(0);
}

/* Login to the ILS */
/* Create a login request */
SIP2LoginRequest login = new SIP2LoginRequest("userName", "password", "circulationLocation");

/* Send the request */
SIP2LoginResponse loginResponse = (SIP2LoginResponse) connection.send(login);

/* Check the response and exit, if it failed */
if (!loginResponse.isOk()) {
  System.exit(0);
}

/* Get the status of the library system's SIP server */
SIP2ACSStatusResponse statusResponse = (SIP2ACSStatusResponse) connection.send(new SIP2SCStatusRequest());

/* Check the status and start processing... */
.
.
.
/* ...processing done... */

/* Close connection */
connection.close();
Source: README.txt, updated 2014-06-30