Professional Documents
Culture Documents
Ebus 9 - Guide 1 - Spine Calculation v1 - 21
Ebus 9 - Guide 1 - Spine Calculation v1 - 21
http service
May 2008
Release v1.21
Business with Lightning Source: Part 9 – Guide 1
e
Lightning Source, Inc. – Business Confidential
Table of Contents
1 Introduction .....................................................................................................4
1 Introduction
Lightning Source Inc. (LSI) provides digital content distribution, wholesale and
print services to the publishing and commercial industries. This document is part
of a series of documents, eBusiness with Lightning Source, which describe how
to integrate appropriate information systems with LSI. Its purpose is to introduce
the various interfaces which are available to LSI partners.
This Integration Manual describes the policies and procedures for integrating a
website with the Spine Calculator service provided by LSI. This Integration
Manual is intended to be a “living document” that will be periodically updated and
distributed by LSI as required.
2 Integration Overview
LSI customers submitting digitally certified1 content to LSI need to use templates
and spine calculations which match the standards used by LSI for automated
content import. For customers whose content creation steps are automated, LSI
provides a web-based Spine Calculator Service. A typical application is
illustrated below.
Author
Online
Content
Creation
Spine Calculation Integration
Publisher
Publisher
Publisher
1
Digitally certified content is content which has been specially formatted to minimize or eliminate
manual processing during the setup process. Please refer to the LSI Operating Manual and/or
your LSI Customer Service representative for additional information on digital certification for
content submission.
3 Integration Detail
To obtain a Spine Calculation Value, an http or https “transaction” is sent to the
LSI Spine Calculator Service. LSI’s Spine Calculator Service then replies with an
http page containing either the value requested or an error.
NOTE:
In addition to the integration described in detail below, a fully SOAP-complaint
URL is available at:
http://www.lightningsource.com/LSISecure/PubResources/SOAP/SpineCalc.asmx
The methods available via the SOAP URL will return double precision numbers
for the results, and throw SOAP exceptions in error cases.
NOTE:
New book types are added from time to time by LSI. Please check with your
customer service representative if you need to calculate a spine width for a
book type not listed above.
• <nnn> is the total number of pages, including front and back matter, of your
book; do not include the cover in your count
• <units> indicates whether inches or millimeters will be returned
o set <units> = “mm” to receive millimeters
o set <units> = “in” to receive inches
3.3 Examples
3.3.2.2 Example 2
Request:
http://www.lightningsource.com/LSISecure/PubResources/SpineCalc.asmx/
CalculateSpineWidthForBookTypeId?BookTypeId=badbooktype&PageCou
nt=100&Units=in
Response:
<?xml version="1.0" encoding="utf-8"?>
<CalculationResult xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://webservices.lightningsource.com/BookSpineCalculator">
<Error>Invalid book type id: badbooktype</Error>
<Value>0</Value>
</CalculationResult>
3.3.2.3 Example 3
Request:
http://www.lightningsource.com/LSISecure/PubResources/SpineCalc.asmx/
CalculateSpineWidthForBookTypeId?BookTypeId=1&PageCount=100&U
nits=badunits
Response:
<?xml version="1.0" encoding="utf-8"?>
<CalculationResult xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://webservices.lightningsource.com/BookSpineCalculator">
<Error>Invalid units requested - please specify in for inches or mm
for millimeters</Error>
<Value>0</Value>
</CalculationResult>