SalesRankNPrice


Click here for a complete list of operations.

GetBNSalesRankNPrice

This method accepts an ISBN string and returns BarnesAndNoble.com Sales Rank and Price for that book. The returned data is one structure containing two strings (SalesRank and BookPrice).

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
ISBN:

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /WebServices/SalesRankNPrice/BookService.asmx HTTP/1.1
Host: perfectxml.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://perfectxml.com/NETWebSvcs/BookService/GetBNSalesRankNPrice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetBNSalesRankNPrice xmlns="https://perfectxml.com/NETWebSvcs/BookService">
      <ISBN>string</ISBN>
    </GetBNSalesRankNPrice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetBNSalesRankNPriceResponse xmlns="https://perfectxml.com/NETWebSvcs/BookService">
      <SalesRankNPrice>
        <SalesRank>string</SalesRank>
        <Price>string</Price>
      </SalesRankNPrice>
    </GetBNSalesRankNPriceResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /WebServices/SalesRankNPrice/BookService.asmx/GetBNSalesRankNPrice?ISBN=string HTTP/1.1
Host: perfectxml.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<SalesRankNPrice xmlns="https://perfectxml.com/NETWebSvcs/BookService">
  <SalesRank>string</SalesRank>
  <Price>string</Price>
</SalesRankNPrice>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /WebServices/SalesRankNPrice/BookService.asmx/GetBNSalesRankNPrice HTTP/1.1
Host: perfectxml.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

ISBN=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<SalesRankNPrice xmlns="https://perfectxml.com/NETWebSvcs/BookService">
  <SalesRank>string</SalesRank>
  <Price>string</Price>
</SalesRankNPrice>