Closed GoogleCodeExporter closed 9 years ago
public string GetItemInfoList()
Sample return JSON:
[{"Item Number":"A00001","Description":"IBM Infoprint 1312","Unit
Price":"400","In
Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"IBM","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pic
Url3"
:"","PicUrl4":""},{"Item Number":"A00002","Description":"IBM Infoprint
1222","Unit
Price":"200","In Stock Qty":"105","Shipping Type":"Fedex
EM","Manufacturer":"IBM","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pic
Url3"
:"","PicUrl4":""},{"Item Number":"A00003","Description":"IBM Infoprint
1226","Unit
Price":"300","In Stock Qty":"40","Shipping Type":"Fedex
EM","Manufacturer":"IBM","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pic
Url3"
:"","PicUrl4":""},{"Item Number":"A00004","Description":"HP Color Laser Jet
5","Unit
Price":"500","In Stock Qty":"30","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"A00005","Description":"HP Color Laser Jet
4","Unit
Price":"400","In Stock Qty":"30","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"A00006","Description":"HP 600 Series
Inc","Unit
Price":"400","In Stock Qty":"70","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"B10000","Description":"Printer Label","Unit
Price":"1","In Stock Qty":"500","Shipping Type":"Fedex
EM","Manufacturer":"Lexmark","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"",
"PicU
rl3":"","PicUrl4":""},{"Item Number":"C00001","Description":"Motherboard P4
Turbo","Unit Price":"400","In Stock Qty":"60","Shipping Type":"Fedex
EM","Manufacturer":"Logitech","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":""
,"Pic
Url3":"","PicUrl4":""},{"Item Number":"C00002","Description":"Motherboard P4
Turbo -
Asus Chipset","Unit Price":"300","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"Logitech","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":""
,"Pic
Url3":"","PicUrl4":""},{"Item Number":"C00003","Description":"Intel P4 2.4
GhZ","Unit
Price":"130","In Stock Qty":"60","Shipping Type":"Fedex
EM","Manufacturer":"Intel","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","P
icUrl
3":"","PicUrl4":""},{"Item Number":"C00004","Description":"Tower Case with
Power
supply","Unit Price":"35","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"C00005","Description":"WLAN Card","Unit
Price":"60","In Stock Qty":"50","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"C00006","Description":"Network
Card10/100","Unit
Price":"15","In Stock Qty":"50","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"C00007","Description":"Hard Disk Seagate 400
GB","Unit Price":"500","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"C00008","Description":"Monitor 19'
TFT","Unit
Price":"200","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"C00009","Description":"Keyboard Comfort
USB","Unit
Price":"20","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"C00010","Description":"Mouse USB","Unit
Price":"20","In Stock Qty":"80","Shipping Type":"Fedex
EM","Manufacturer":"HP","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","PicU
rl3":
"","PicUrl4":""},{"Item Number":"C00011","Description":"Memory DDR RAM 512
MB","Unit
Price":"40","In Stock Qty":"60","Shipping Type":"Fedex
EM","Manufacturer":"Logitech","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":""
,"Pic
Url3":"","PicUrl4":""},{"Item Number":"I888","Description":"iPhone 3GS","Unit
Price":"499","In Stock Qty":"5","Shipping Type":"UPS
Ground","Manufacturer":"Apple","PicUrl":"http://10.59.38.227/Bocket/Images/iphon
e
main.jpg","PicCount":4,"PicUrl1":"http://10.59.38.227/Bocket/Images/udf1.PNG","P
icUrl
2":"http://10.59.38.227/Bocket/Images/udf2.PNG","PicUrl3":"http://10.59.38.227/B
ocket
/Images/udf3.PNG","PicUrl4":"http://10.59.38.227/Bocket/Images/udf4.jpg"},{"Item
Number":"L10001","Description":"Labor Hours Production","Unit Price":"5","In
Stock
Qty":"0","Shipping Type":"Fedex
EM","Manufacturer":"OEC","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pic
Url3"
:"","PicUrl4":""},{"Item Number":"LM4029MC","Description":"Memory Chip","Unit
Price":"50","In Stock Qty":"100","Shipping Type":"Fedex
EM","Manufacturer":"Logitech","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":""
,"Pic
Url3":"","PicUrl4":""},{"Item Number":"P10001","Description":"PC - P4 2.4G, DDR
512M,
400G HD","Unit Price":"1440","In Stock Qty":"10","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"P10002","Description":"PC - P4 2.4G, DDR
1024M,
400G HD","Unit Price":"1380","In Stock Qty":"0","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"P10003","Description":"PC Set 1","Unit
Price":"1740","In Stock Qty":"15","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"P10004","Description":"PC Set 2","Unit
Price":"1880","In Stock Qty":"10","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""},{"Item Number":"S10000","Description":"Server Point
10000","Unit
Price":"1840","In Stock Qty":"40","Shipping Type":"Fedex
EM","Manufacturer":"Dell","PicUrl":"","PicCount":0,"PicUrl1":"","PicUrl2":"","Pi
cUrl3
":"","PicUrl4":""}]
SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown
need
to be replaced with actual values.
POST /Bocket/Service1.asmx HTTP/1.1
Host: 10.59.38.227
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetItemInfoList"
<?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>
<GetItemInfoList xmlns="http://tempuri.org/" />
</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>
<GetItemInfoListResponse xmlns="http://tempuri.org/">
<GetItemInfoListResult>string</GetItemInfoListResult>
</GetItemInfoListResponse>
</soap:Body>
</soap:Envelope>
HTTP POST
The following is a sample HTTP POST request and response. The placeholders
shown need
to be replaced with actual values.
POST /Bocket/Service1.asmx/GetItemInfoList HTTP/1.1
Host: 10.59.38.227
Content-Type: application/x-www-form-urlencoded
Content-Length: length
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>
Original comment by jayjich...@gmail.com
on 3 Jul 2009 at 5:30
[{\"Item Number\":\"A00001\",\"Description\":\"IBM Infoprint 1312\",\"Unit
Price\":\"400\",\"In
Stock Qty\":\"80\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"IBM\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\"
:\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"A00002\",\"Description\":\"IBM
Infoprint
1222\",\"Unit
Price\":\"200\",\"In Stock Qty\":\"105\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"IBM\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\"
:\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"A00003\",\"Description\":\"IBM
Infoprint
1226\",\"Unit
Price\":\"300\",\"In Stock Qty\":\"40\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"IBM\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\"
:\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"A00004\",\"Description\":\"HP Color
Laser
Jet 5\",\"Unit
Price\":\"500\",\"In Stock Qty\":\"30\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"A00005\",\"Description\":\"HP Color
Laser
Jet 4\",\"Unit
Price\":\"400\",\"In Stock Qty\":\"30\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"A00006\",\"Description\":\"HP 600
Series
Inc\",\"Unit
Price\":\"400\",\"In Stock Qty\":\"70\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"B10000\",\"Description\":\"Printer
Label\",\"Unit
Price\":\"1\",\"In Stock Qty\":\"500\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Lexmark\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicU
rl3\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00001
\",\"Description\":\"Motherboard P4
Turbo\",\"Unit Price\":\"400\",\"In Stock Qty\":\"60\",\"Shipping
Type\":\"Fedex
EM\",\"Manufacturer\":\"Logitech\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"Pic
Url3\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00002
\",\"Description\":\"Motherboard P4 Turbo -
Asus Chipset\",\"Unit Price\":\"300\",\"In Stock Qty\":\"80\",\"Shipping
Type\":\"Fedex
EM\",\"Manufacturer\":\"Logitech\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"Pic
Url3\":\"\",\"PicUrl4\":\"\"},{\"Item
Number\":\"C00003\",\"Description\":\"Intel P4
2.4 GhZ\",\"Unit
Price\":\"130\",\"In Stock Qty\":\"60\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Intel\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl
3\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00004\",\"Description\":\"Tower
Case
with Power
supply\",\"Unit Price\":\"35\",\"In Stock Qty\":\"80\",\"Shipping
Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00005\",\"Description\":\"WLAN
Card\",\"Unit
Price\":\"60\",\"In Stock Qty\":\"50\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00006\",\"Description\":\"Network
Card10/100\",\"Unit
Price\":\"15\",\"In Stock Qty\":\"50\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00007\",\"Description\":\"Hard
Disk
Seagate 400
GB\",\"Unit Price\":\"500\",\"In Stock Qty\":\"80\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00008\",\"Description\":\"Monitor
19'
TFT\",\"Unit
Price\":\"200\",\"In Stock Qty\":\"80\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00009\",\"Description\":\"Keyboard
Comfort USB\",\"Unit
Price\":\"20\",\"In Stock Qty\":\"80\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00010\",\"Description\":\"Mouse
USB\",\"Unit
Price\":\"20\",\"In Stock Qty\":\"80\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"HP\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\":
\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"C00011\",\"Description\":\"Memory DDR
RAM
512 MB\",\"Unit
Price\":\"40\",\"In Stock Qty\":\"60\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Logitech\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"Pic
Url3\":\"\",\"PicUrl4\":\"\"},{\"Item
Number\":\"I888\",\"Description\":\"iPhone
3GS\",\"Unit
Price\":\"499\",\"In Stock Qty\":\"5\",\"Shipping Type\":\"UPS
Ground\",\"Manufacturer\":\"Apple\",\"PicUrl\":\"http://10.59.38.227/Bocket/Imag
es/ip
hone
main.jpg\",\"PicCount\":4,\"PicUrl1
\":\"http://10.59.38.227/Bocket/Images/udf1.PNG\",\"PicUrl
2\":\"http://10.59.38.227/Bocket/Images/udf2.PNG\",\"PicUrl3
\":\"http://10.59.38.227/Bocket
/Images/udf3.PNG\",\"PicUrl4\":\"http://10.59.38.227/Bocket/Images/udf4.jpg\"},
{\"Item
Number\":\"L10001\",\"Description\":\"Labor Hours Production\",\"Unit
Price\":\"5
\",\"In Stock
Qty\":\"0\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"OEC\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3\"
:\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"LM4029MC\",\"Description\":\"Memory
Chip\",\"Unit
Price\":\"50\",\"In Stock Qty\":\"100\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Logitech\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"Pic
Url3\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"P10001\",\"Description\":\"PC
- P4
2.4G, DDR 512M,
400G HD\",\"Unit Price\":\"1440\",\"In Stock Qty\":\"10\",\"Shipping
Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"P10002\",\"Description\":\"PC - P4
2.4G, DDR 1024M,
400G HD\",\"Unit Price\":\"1380\",\"In Stock Qty\":\"0\",\"Shipping
Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"P10003\",\"Description\":\"PC Set 1
\",\"Unit
Price\":\"1740\",\"In Stock Qty\":\"15\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"P10004\",\"Description\":\"PC Set 2
\",\"Unit
Price\":\"1880\",\"In Stock Qty\":\"10\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"},{\"Item Number\":\"S10000\",\"Description\":\"Server
Point
10000\",\"Unit
Price\":\"1840\",\"In Stock Qty\":\"40\",\"Shipping Type\":\"Fedex
EM\",\"Manufacturer\":\"Dell\",\"PicUrl\":\"\",\"PicCount\":0,\"PicUrl1
\":\"\",\"PicUrl2\":\"\",\"PicUrl3
\":\"\",\"PicUrl4\":\"\"}]
Original comment by leon...@gmail.com
on 6 Jul 2009 at 2:43
Original comment by leon...@gmail.com
on 6 Jul 2009 at 12:54
Original issue reported on code.google.com by
leon...@gmail.com
on 30 Jun 2009 at 6:53