channeladvisor 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. data/.gitignore +7 -0
  2. data/.rspec +2 -0
  3. data/.travis.yml +6 -0
  4. data/.yardopts +8 -0
  5. data/Gemfile +31 -0
  6. data/Guardfile +28 -0
  7. data/LICENSE +19 -0
  8. data/README.md +40 -0
  9. data/Rakefile +69 -0
  10. data/channeladvisor.gemspec +29 -0
  11. data/lib/channeladvisor.rb +27 -0
  12. data/lib/channeladvisor/account_authorization.rb +14 -0
  13. data/lib/channeladvisor/address.rb +39 -0
  14. data/lib/channeladvisor/admin.rb +75 -0
  15. data/lib/channeladvisor/base.rb +34 -0
  16. data/lib/channeladvisor/client.rb +3 -0
  17. data/lib/channeladvisor/configuration.rb +11 -0
  18. data/lib/channeladvisor/error.rb +30 -0
  19. data/lib/channeladvisor/line_item.rb +38 -0
  20. data/lib/channeladvisor/order.rb +179 -0
  21. data/lib/channeladvisor/order_status.rb +14 -0
  22. data/lib/channeladvisor/payment.rb +15 -0
  23. data/lib/channeladvisor/services.rb +11 -0
  24. data/lib/channeladvisor/services/admin_service.rb +47 -0
  25. data/lib/channeladvisor/services/base_service.rb +26 -0
  26. data/lib/channeladvisor/services/inventory_service.rb +90 -0
  27. data/lib/channeladvisor/services/order_service.rb +117 -0
  28. data/lib/channeladvisor/services/shipping_service.rb +164 -0
  29. data/lib/channeladvisor/shipment.rb +71 -0
  30. data/lib/channeladvisor/shopping_cart.rb +26 -0
  31. data/lib/channeladvisor/version.rb +3 -0
  32. data/spec/fixtures/requests/admin_service/get_authorization_list.xml +1 -0
  33. data/spec/fixtures/requests/admin_service/get_authorization_list_with_local_id.xml +1 -0
  34. data/spec/fixtures/requests/admin_service/ping.xml +1 -0
  35. data/spec/fixtures/requests/admin_service/request_access.xml +1 -0
  36. data/spec/fixtures/requests/inventory_service/ping.xml +1 -0
  37. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/price_only.xml +1 -0
  38. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_and_price.xml +1 -0
  39. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_only.xml +1 -0
  40. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/price_only.xml +1 -0
  41. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_and_price.xml +1 -0
  42. data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_only.xml +1 -0
  43. data/spec/fixtures/requests/inventory_service/update_item_price.xml +1 -0
  44. data/spec/fixtures/requests/inventory_service/update_item_quantity.xml +1 -0
  45. data/spec/fixtures/requests/inventory_service/update_item_quantity_and_price.xml +1 -0
  46. data/spec/fixtures/requests/order_service/get_order_list/with_checkout_status_filter.xml +1 -0
  47. data/spec/fixtures/requests/order_service/get_order_list/with_created_from_date.xml +1 -0
  48. data/spec/fixtures/requests/order_service/get_order_list/with_created_to_date.xml +1 -0
  49. data/spec/fixtures/requests/order_service/get_order_list/with_detail_level.xml +1 -0
  50. data/spec/fixtures/requests/order_service/get_order_list/with_distribution_center_code.xml +1 -0
  51. data/spec/fixtures/requests/order_service/get_order_list/with_export_state.xml +1 -0
  52. data/spec/fixtures/requests/order_service/get_order_list/with_join_dates.xml +1 -0
  53. data/spec/fixtures/requests/order_service/get_order_list/with_one_client_order_id.xml +1 -0
  54. data/spec/fixtures/requests/order_service/get_order_list/with_one_order_id.xml +1 -0
  55. data/spec/fixtures/requests/order_service/get_order_list/with_order_state_filter.xml +1 -0
  56. data/spec/fixtures/requests/order_service/get_order_list/with_page_number_filter.xml +1 -0
  57. data/spec/fixtures/requests/order_service/get_order_list/with_page_size.xml +1 -0
  58. data/spec/fixtures/requests/order_service/get_order_list/with_payment_status_filter.xml +1 -0
  59. data/spec/fixtures/requests/order_service/get_order_list/with_refund_status_filter.xml +1 -0
  60. data/spec/fixtures/requests/order_service/get_order_list/with_shipping_status_filter.xml +1 -0
  61. data/spec/fixtures/requests/order_service/get_order_list/with_two_client_order_ids.xml +1 -0
  62. data/spec/fixtures/requests/order_service/get_order_list/with_two_order_ids.xml +1 -0
  63. data/spec/fixtures/requests/order_service/get_order_list/with_updated_from_date.xml +1 -0
  64. data/spec/fixtures/requests/order_service/get_order_list/with_updated_to_date.xml +1 -0
  65. data/spec/fixtures/requests/order_service/get_order_list/without_order_criteria.xml +1 -0
  66. data/spec/fixtures/requests/order_service/ping.xml +1 -0
  67. data/spec/fixtures/requests/order_service/set_orders_export_status/with_one_client_order_id.xml +1 -0
  68. data/spec/fixtures/requests/order_service/set_orders_export_status/with_two_client_order_ids.xml +1 -0
  69. data/spec/fixtures/requests/shipping_service/get_shipping_carrier_list.xml +1 -0
  70. data/spec/fixtures/requests/shipping_service/ping.xml +1 -0
  71. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/with_one_shipment.xml +1 -0
  72. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/with_two_shipments.xml +1 -0
  73. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_carrier_code.xml +1 -0
  74. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_class_code.xml +1 -0
  75. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_client_order_id.xml +1 -0
  76. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_seller_id.xml +1 -0
  77. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_tracking_number.xml +1 -0
  78. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_one_line_item.xml +1 -0
  79. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_two_line_items.xml +1 -0
  80. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_two_shipments.xml +1 -0
  81. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_carrier_code.xml +1 -0
  82. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_class_code.xml +1 -0
  83. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_seller_id.xml +1 -0
  84. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_tracking_number.xml +1 -0
  85. data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/with_partial_and_full_shipments.xml +1 -0
  86. data/spec/fixtures/responses/admin/get_authorization_list/failure.yml +50 -0
  87. data/spec/fixtures/responses/admin/get_authorization_list/no_authorizations.yml +49 -0
  88. data/spec/fixtures/responses/admin/get_authorization_list/one_authorization.yml +49 -0
  89. data/spec/fixtures/responses/admin/get_authorization_list/success.yml +49 -0
  90. data/spec/fixtures/responses/admin/get_authorization_list/two_authorizations.yml +49 -0
  91. data/spec/fixtures/responses/admin/ping/failure.yml +50 -0
  92. data/spec/fixtures/responses/admin/ping/success.yml +218 -0
  93. data/spec/fixtures/responses/admin/request_access/failure.yml +50 -0
  94. data/spec/fixtures/responses/admin/request_access/success.yml +49 -0
  95. data/spec/fixtures/responses/admin_service/get_authorization_list/with_invalid_local_id.yml +219 -0
  96. data/spec/fixtures/responses/admin_service/get_authorization_list/with_local_id/success.yml +218 -0
  97. data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/multiple_authorizations.yml +49 -0
  98. data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/no_authorizations.yml +49 -0
  99. data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/one_authorization.yml +49 -0
  100. data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/success.yml +218 -0
  101. data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/multiple_authorizations.yml +49 -0
  102. data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/no_authorizations.yml +49 -0
  103. data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/one_authorization.yml +49 -0
  104. data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/success.yml +218 -0
  105. data/spec/fixtures/responses/admin_service/ping/failure.yml +222 -0
  106. data/spec/fixtures/responses/admin_service/ping/success.yml +218 -0
  107. data/spec/fixtures/responses/admin_service/request_access/failure.yml +219 -0
  108. data/spec/fixtures/responses/admin_service/request_access/success.yml +218 -0
  109. data/spec/fixtures/responses/http_error.yml +48 -0
  110. data/spec/fixtures/responses/inventory_service/ping.yml +1356 -0
  111. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price.yml +1356 -0
  112. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/price_only.yml +144 -0
  113. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/quantity_and_price.yml +191 -0
  114. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/quantity_only.yml +1403 -0
  115. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list.yml +243 -0
  116. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/price_only.yml +97 -0
  117. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_and_price.yml +144 -0
  118. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_only.yml +51 -0
  119. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/price_only.yml +238 -0
  120. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_and_price.yml +285 -0
  121. data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_only.yml +191 -0
  122. data/spec/fixtures/responses/order/instance_set_export_status.yml +51 -0
  123. data/spec/fixtures/responses/order/instance_set_export_status/failure.yml +51 -0
  124. data/spec/fixtures/responses/order/instance_set_export_status/success/result_false.yml +51 -0
  125. data/spec/fixtures/responses/order/instance_set_export_status/success/result_true.yml +51 -0
  126. data/spec/fixtures/responses/order/list.yml +58 -0
  127. data/spec/fixtures/responses/order/list/failure.yml +56 -0
  128. data/spec/fixtures/responses/order/list/no_matching_orders.yml +56 -0
  129. data/spec/fixtures/responses/order/list/one_matching_order.yml +57 -0
  130. data/spec/fixtures/responses/order/list/two_matching_orders.yml +59 -0
  131. data/spec/fixtures/responses/order/list/with_criteria.yml +52 -0
  132. data/spec/fixtures/responses/order/list/with_no_criteria.yml +58 -0
  133. data/spec/fixtures/responses/order/ping.yml +868 -0
  134. data/spec/fixtures/responses/order/ping/failure.yml +50 -0
  135. data/spec/fixtures/responses/order/ping/success.yml +867 -0
  136. data/spec/fixtures/responses/order/set_export_status/failure.yml +51 -0
  137. data/spec/fixtures/responses/order/set_export_status/success/with_one_client_order_id.yml +51 -0
  138. data/spec/fixtures/responses/order/set_export_status/success/with_two_client_order_ids.yml +51 -0
  139. data/spec/fixtures/responses/order_service/get_order_list/.gitkeep +0 -0
  140. data/spec/fixtures/responses/order_service/get_order_list/with_checkout_status_filter.yml +875 -0
  141. data/spec/fixtures/responses/order_service/get_order_list/with_created_from_date.yml +874 -0
  142. data/spec/fixtures/responses/order_service/get_order_list/with_created_to_date.yml +874 -0
  143. data/spec/fixtures/responses/order_service/get_order_list/with_detail_level.yml +875 -0
  144. data/spec/fixtures/responses/order_service/get_order_list/with_distribution_center_code.yml +872 -0
  145. data/spec/fixtures/responses/order_service/get_order_list/with_export_state.yml +875 -0
  146. data/spec/fixtures/responses/order_service/get_order_list/with_join_dates.yml +869 -0
  147. data/spec/fixtures/responses/order_service/get_order_list/with_one_client_order_id.yml +872 -0
  148. data/spec/fixtures/responses/order_service/get_order_list/with_one_order_id.yml +873 -0
  149. data/spec/fixtures/responses/order_service/get_order_list/with_order_state_filter.yml +875 -0
  150. data/spec/fixtures/responses/order_service/get_order_list/with_page_number_filter.yml +875 -0
  151. data/spec/fixtures/responses/order_service/get_order_list/with_page_size.yml +874 -0
  152. data/spec/fixtures/responses/order_service/get_order_list/with_payment_status_filter.yml +875 -0
  153. data/spec/fixtures/responses/order_service/get_order_list/with_refund_status_filter.yml +875 -0
  154. data/spec/fixtures/responses/order_service/get_order_list/with_shipping_status_filter.yml +875 -0
  155. data/spec/fixtures/responses/order_service/get_order_list/with_two_client_order_ids.yml +872 -0
  156. data/spec/fixtures/responses/order_service/get_order_list/with_two_order_ids.yml +875 -0
  157. data/spec/fixtures/responses/order_service/get_order_list/with_updated_from_date.yml +874 -0
  158. data/spec/fixtures/responses/order_service/get_order_list/with_updated_to_date.yml +874 -0
  159. data/spec/fixtures/responses/order_service/get_order_list/without_order_criteria.yml +871 -0
  160. data/spec/fixtures/responses/order_service/get_order_refund_history/.gitkeep +0 -0
  161. data/spec/fixtures/responses/order_service/order_merge/.gitkeep +0 -0
  162. data/spec/fixtures/responses/order_service/order_split/.gitkeep +0 -0
  163. data/spec/fixtures/responses/order_service/ping/.gitkeep +0 -0
  164. data/spec/fixtures/responses/order_service/ping/failure.yml +871 -0
  165. data/spec/fixtures/responses/order_service/ping/success.yml +868 -0
  166. data/spec/fixtures/responses/order_service/set_orders_export_status/with_one_client_order_id.yml +867 -0
  167. data/spec/fixtures/responses/order_service/set_orders_export_status/with_two_client_order_id.yml +867 -0
  168. data/spec/fixtures/responses/order_service/set_seller_order_id/.gitkeep +0 -0
  169. data/spec/fixtures/responses/order_service/set_seller_order_item_id_list/.gitkeep +0 -0
  170. data/spec/fixtures/responses/order_service/submit_order/.gitkeep +0 -0
  171. data/spec/fixtures/responses/order_service/submit_order_refund/.gitkeep +0 -0
  172. data/spec/fixtures/responses/order_service/update_order_list/.gitkeep +0 -0
  173. data/spec/fixtures/responses/shipment/get_carriers.yml +53 -0
  174. data/spec/fixtures/responses/shipment/get_carriers/failure.yml +52 -0
  175. data/spec/fixtures/responses/shipment/submit.yml +464 -0
  176. data/spec/fixtures/responses/shipment/submit/failure.yml +462 -0
  177. data/spec/fixtures/responses/shipment/submit/one_shipment.yml +464 -0
  178. data/spec/fixtures/responses/shipment/submit/two_shipments.yml +56 -0
  179. data/spec/fixtures/responses/shipping_service/get_shipping_carrier_list.yml +953 -0
  180. data/spec/fixtures/responses/shipping_service/ping/failure.yml +55 -0
  181. data/spec/fixtures/responses/shipping_service/ping/success.yml +460 -0
  182. data/spec/fixtures/responses/shipping_service/submit_order_shipment_list.yml +55 -0
  183. data/spec/fixtures/responses/soap_fault.yml +53 -0
  184. data/spec/lib/channeladvisor/address_spec.rb +107 -0
  185. data/spec/lib/channeladvisor/admin_spec.rb +216 -0
  186. data/spec/lib/channeladvisor/line_item_spec.rb +147 -0
  187. data/spec/lib/channeladvisor/order_spec.rb +623 -0
  188. data/spec/lib/channeladvisor/order_status_spec.rb +36 -0
  189. data/spec/lib/channeladvisor/payment_spec.rb +38 -0
  190. data/spec/lib/channeladvisor/services/admin_service_spec.rb +65 -0
  191. data/spec/lib/channeladvisor/services/base_service_spec.rb +11 -0
  192. data/spec/lib/channeladvisor/services/inventory_service_spec.rb +214 -0
  193. data/spec/lib/channeladvisor/services/order_service_spec.rb +267 -0
  194. data/spec/lib/channeladvisor/services/shipping_service_spec.rb +288 -0
  195. data/spec/lib/channeladvisor/shipment_spec.rb +257 -0
  196. data/spec/lib/channeladvisor/shopping_cart_spec.rb +173 -0
  197. data/spec/lib/channeladvisor_spec.rb +18 -0
  198. data/spec/spec_helper.rb +29 -0
  199. data/spec/support/credentials.rb +15 -0
  200. data/spec/support/matchers/boolean.rb +17 -0
  201. data/spec/support/matchers/markup.rb +50 -0
  202. data/spec/support/rr.rb +38 -0
  203. data/spec/support/shared_examples.rb +4 -0
  204. data/spec/support/vcr.rb +38 -0
  205. metadata +501 -0
@@ -0,0 +1,218 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx?WSDL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Wed, 09 May 2012 19:14:48 GMT
21
+ server:
22
+ - Microsoft-IIS/6.0
23
+ x-servername:
24
+ - RDU-IISWEB-07
25
+ x-powered-by:
26
+ - ASP.NET
27
+ x-aspnet-version:
28
+ - 4.0.30319
29
+ cache-control:
30
+ - private, max-age=0
31
+ content-type:
32
+ - text/xml; charset=utf-8
33
+ content-length:
34
+ - '10625'
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
38
+ xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"
39
+ xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://api.channeladvisor.com/webservices/\"
40
+ xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\"
41
+ xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"http://api.channeladvisor.com/webservices/\"
42
+ xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
43
+ elementFormDefault=\"qualified\" targetNamespace=\"http://api.channeladvisor.com/webservices/\">\r\n
44
+ \ <s:element name=\"GetAuthorizationList\">\r\n <s:complexType>\r\n
45
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
46
+ name=\"localID\" type=\"s:integer\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
47
+ \ </s:element>\r\n <s:element name=\"GetAuthorizationListResponse\">\r\n
48
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
49
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"GetAuthorizationListResult\" type=\"tns:APIResultOfArrayOfAuthorizationResponse\"
50
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
51
+ \ <s:complexType name=\"APIResultOfArrayOfAuthorizationResponse\">\r\n
52
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
53
+ name=\"Status\" type=\"tns:ResultStatus\" />\r\n <s:element minOccurs=\"1\"
54
+ maxOccurs=\"1\" name=\"MessageCode\" type=\"s:int\" />\r\n <s:element
55
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Message\" type=\"s:string\" />\r\n
56
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Data\" type=\"s:string\"
57
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\"
58
+ type=\"tns:ArrayOfAuthorizationResponse\" />\r\n </s:sequence>\r\n
59
+ \ </s:complexType>\r\n <s:simpleType name=\"ResultStatus\">\r\n <s:restriction
60
+ base=\"s:string\">\r\n <s:enumeration value=\"Success\" />\r\n <s:enumeration
61
+ value=\"Failure\" />\r\n </s:restriction>\r\n </s:simpleType>\r\n
62
+ \ <s:complexType name=\"ArrayOfAuthorizationResponse\">\r\n <s:sequence>\r\n
63
+ \ <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"AuthorizationResponse\"
64
+ nillable=\"true\" type=\"tns:AuthorizationResponse\" />\r\n </s:sequence>\r\n
65
+ \ </s:complexType>\r\n <s:complexType name=\"AuthorizationResponse\">\r\n
66
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
67
+ name=\"AccountID\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\"
68
+ maxOccurs=\"1\" name=\"LocalID\" type=\"s:int\" />\r\n <s:element
69
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountName\" type=\"s:string\" />\r\n
70
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountType\"
71
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
72
+ name=\"ResourceName\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
73
+ maxOccurs=\"1\" name=\"Status\" type=\"s:string\" />\r\n </s:sequence>\r\n
74
+ \ </s:complexType>\r\n <s:element name=\"APICredentials\" type=\"tns:APICredentials\"
75
+ />\r\n <s:complexType name=\"APICredentials\">\r\n <s:sequence>\r\n
76
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"DeveloperKey\"
77
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
78
+ name=\"Password\" type=\"s:string\" />\r\n </s:sequence>\r\n <s:anyAttribute
79
+ />\r\n </s:complexType>\r\n <s:element name=\"RequestAccess\">\r\n
80
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
81
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"localID\" type=\"s:int\" />\r\n </s:sequence>\r\n
82
+ \ </s:complexType>\r\n </s:element>\r\n <s:element name=\"RequestAccessResponse\">\r\n
83
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
84
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"RequestAccessResult\" type=\"tns:APIResultOfBoolean\"
85
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
86
+ \ <s:complexType name=\"APIResultOfBoolean\">\r\n <s:sequence>\r\n
87
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
88
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
89
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
90
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
91
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
92
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:boolean\" />\r\n
93
+ \ </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"Ping\">\r\n
94
+ \ <s:complexType />\r\n </s:element>\r\n <s:element name=\"PingResponse\">\r\n
95
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
96
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"PingResult\" type=\"tns:APIResultOfString\"
97
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
98
+ \ <s:complexType name=\"APIResultOfString\">\r\n <s:sequence>\r\n
99
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
100
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
101
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
102
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
103
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
104
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:string\" />\r\n
105
+ \ </s:sequence>\r\n </s:complexType>\r\n </s:schema>\r\n </wsdl:types>\r\n
106
+ \ <wsdl:message name=\"GetAuthorizationListSoapIn\">\r\n <wsdl:part name=\"parameters\"
107
+ element=\"tns:GetAuthorizationList\" />\r\n </wsdl:message>\r\n <wsdl:message
108
+ name=\"GetAuthorizationListSoapOut\">\r\n <wsdl:part name=\"parameters\"
109
+ element=\"tns:GetAuthorizationListResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
110
+ name=\"GetAuthorizationListAPICredentials\">\r\n <wsdl:part name=\"APICredentials\"
111
+ element=\"tns:APICredentials\" />\r\n </wsdl:message>\r\n <wsdl:message
112
+ name=\"RequestAccessSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:RequestAccess\"
113
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"RequestAccessSoapOut\">\r\n
114
+ \ <wsdl:part name=\"parameters\" element=\"tns:RequestAccessResponse\" />\r\n
115
+ \ </wsdl:message>\r\n <wsdl:message name=\"RequestAccessAPICredentials\">\r\n
116
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
117
+ \ </wsdl:message>\r\n <wsdl:message name=\"PingSoapIn\">\r\n <wsdl:part
118
+ name=\"parameters\" element=\"tns:Ping\" />\r\n </wsdl:message>\r\n <wsdl:message
119
+ name=\"PingSoapOut\">\r\n <wsdl:part name=\"parameters\" element=\"tns:PingResponse\"
120
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"PingAPICredentials\">\r\n
121
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
122
+ \ </wsdl:message>\r\n <wsdl:portType name=\"AdminServiceSoap\">\r\n <wsdl:operation
123
+ name=\"GetAuthorizationList\">\r\n <wsdl:input message=\"tns:GetAuthorizationListSoapIn\"
124
+ />\r\n <wsdl:output message=\"tns:GetAuthorizationListSoapOut\" />\r\n
125
+ \ </wsdl:operation>\r\n <wsdl:operation name=\"RequestAccess\">\r\n <wsdl:input
126
+ message=\"tns:RequestAccessSoapIn\" />\r\n <wsdl:output message=\"tns:RequestAccessSoapOut\"
127
+ />\r\n </wsdl:operation>\r\n <wsdl:operation name=\"Ping\">\r\n <wsdl:input
128
+ message=\"tns:PingSoapIn\" />\r\n <wsdl:output message=\"tns:PingSoapOut\"
129
+ />\r\n </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:binding name=\"AdminServiceSoap\"
130
+ type=\"tns:AdminServiceSoap\">\r\n <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\"
131
+ />\r\n <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap:operation
132
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
133
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
134
+ />\r\n <soap:header message=\"tns:GetAuthorizationListAPICredentials\"
135
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
136
+ \ <soap:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
137
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
138
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
139
+ />\r\n <soap:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
140
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
141
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
142
+ name=\"Ping\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
143
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
144
+ />\r\n <soap:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
145
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
146
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
147
+ \ <wsdl:binding name=\"AdminServiceSoap12\" type=\"tns:AdminServiceSoap\">\r\n
148
+ \ <soap12:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
149
+ \ <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap12:operation
150
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
151
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
152
+ />\r\n <soap12:header message=\"tns:GetAuthorizationListAPICredentials\"
153
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
154
+ \ <soap12:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
155
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
156
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
157
+ />\r\n <soap12:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
158
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
159
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
160
+ name=\"Ping\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
161
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
162
+ />\r\n <soap12:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
163
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
164
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
165
+ \ <wsdl:service name=\"AdminService\">\r\n <wsdl:port name=\"AdminServiceSoap\"
166
+ binding=\"tns:AdminServiceSoap\">\r\n <soap:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
167
+ />\r\n </wsdl:port>\r\n <wsdl:port name=\"AdminServiceSoap12\" binding=\"tns:AdminServiceSoap12\">\r\n
168
+ \ <soap12:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
169
+ />\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
170
+ http_version: '1.1'
171
+ recorded_at: Wed, 09 May 2012 19:14:48 GMT
172
+ - request:
173
+ method: post
174
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx
175
+ body:
176
+ encoding: US-ASCII
177
+ string: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
178
+ xmlns:web="http://api.channeladvisor.com/webservices/"><soap:Header><web:APICredentials><web:DeveloperKey>$$DEVELOPER_KEY$$</web:DeveloperKey><web:Password>$$PASSWORD$$</web:Password></web:APICredentials></soap:Header><soap:Body><web:Ping/></soap:Body></soap:Envelope>
179
+ headers:
180
+ soapaction:
181
+ - ! '"http://api.channeladvisor.com/webservices/Ping"'
182
+ content-type:
183
+ - text/xml;charset=UTF-8
184
+ content-length:
185
+ - '392'
186
+ accept:
187
+ - ! '*/*'
188
+ user-agent:
189
+ - Ruby
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ date:
196
+ - Wed, 09 May 2012 19:14:50 GMT
197
+ server:
198
+ - Microsoft-IIS/6.0
199
+ x-servername:
200
+ - RDU-IISWEB-05
201
+ x-powered-by:
202
+ - ASP.NET
203
+ x-aspnet-version:
204
+ - 4.0.30319
205
+ cache-control:
206
+ - private, max-age=0
207
+ content-type:
208
+ - text/xml; charset=utf-8
209
+ content-length:
210
+ - '430'
211
+ body:
212
+ encoding: US-ASCII
213
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
214
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><PingResponse
215
+ xmlns="http://api.channeladvisor.com/webservices/"><PingResult><Status>Success</Status><MessageCode>0</MessageCode><ResultData>OK</ResultData></PingResult></PingResponse></soap:Body></soap:Envelope>
216
+ http_version: '1.1'
217
+ recorded_at: Wed, 09 May 2012 19:14:49 GMT
218
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,219 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx?WSDL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Wed, 09 May 2012 06:01:12 GMT
21
+ server:
22
+ - Microsoft-IIS/6.0
23
+ x-servername:
24
+ - RDU-IISWEB-07
25
+ x-powered-by:
26
+ - ASP.NET
27
+ x-aspnet-version:
28
+ - 4.0.30319
29
+ cache-control:
30
+ - private, max-age=0
31
+ content-type:
32
+ - text/xml; charset=utf-8
33
+ content-length:
34
+ - '10625'
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
38
+ xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"
39
+ xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://api.channeladvisor.com/webservices/\"
40
+ xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\"
41
+ xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"http://api.channeladvisor.com/webservices/\"
42
+ xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
43
+ elementFormDefault=\"qualified\" targetNamespace=\"http://api.channeladvisor.com/webservices/\">\r\n
44
+ \ <s:element name=\"GetAuthorizationList\">\r\n <s:complexType>\r\n
45
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
46
+ name=\"localID\" type=\"s:integer\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
47
+ \ </s:element>\r\n <s:element name=\"GetAuthorizationListResponse\">\r\n
48
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
49
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"GetAuthorizationListResult\" type=\"tns:APIResultOfArrayOfAuthorizationResponse\"
50
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
51
+ \ <s:complexType name=\"APIResultOfArrayOfAuthorizationResponse\">\r\n
52
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
53
+ name=\"Status\" type=\"tns:ResultStatus\" />\r\n <s:element minOccurs=\"1\"
54
+ maxOccurs=\"1\" name=\"MessageCode\" type=\"s:int\" />\r\n <s:element
55
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Message\" type=\"s:string\" />\r\n
56
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Data\" type=\"s:string\"
57
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\"
58
+ type=\"tns:ArrayOfAuthorizationResponse\" />\r\n </s:sequence>\r\n
59
+ \ </s:complexType>\r\n <s:simpleType name=\"ResultStatus\">\r\n <s:restriction
60
+ base=\"s:string\">\r\n <s:enumeration value=\"Success\" />\r\n <s:enumeration
61
+ value=\"Failure\" />\r\n </s:restriction>\r\n </s:simpleType>\r\n
62
+ \ <s:complexType name=\"ArrayOfAuthorizationResponse\">\r\n <s:sequence>\r\n
63
+ \ <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"AuthorizationResponse\"
64
+ nillable=\"true\" type=\"tns:AuthorizationResponse\" />\r\n </s:sequence>\r\n
65
+ \ </s:complexType>\r\n <s:complexType name=\"AuthorizationResponse\">\r\n
66
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
67
+ name=\"AccountID\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\"
68
+ maxOccurs=\"1\" name=\"LocalID\" type=\"s:int\" />\r\n <s:element
69
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountName\" type=\"s:string\" />\r\n
70
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountType\"
71
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
72
+ name=\"ResourceName\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
73
+ maxOccurs=\"1\" name=\"Status\" type=\"s:string\" />\r\n </s:sequence>\r\n
74
+ \ </s:complexType>\r\n <s:element name=\"APICredentials\" type=\"tns:APICredentials\"
75
+ />\r\n <s:complexType name=\"APICredentials\">\r\n <s:sequence>\r\n
76
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"DeveloperKey\"
77
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
78
+ name=\"Password\" type=\"s:string\" />\r\n </s:sequence>\r\n <s:anyAttribute
79
+ />\r\n </s:complexType>\r\n <s:element name=\"RequestAccess\">\r\n
80
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
81
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"localID\" type=\"s:int\" />\r\n </s:sequence>\r\n
82
+ \ </s:complexType>\r\n </s:element>\r\n <s:element name=\"RequestAccessResponse\">\r\n
83
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
84
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"RequestAccessResult\" type=\"tns:APIResultOfBoolean\"
85
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
86
+ \ <s:complexType name=\"APIResultOfBoolean\">\r\n <s:sequence>\r\n
87
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
88
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
89
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
90
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
91
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
92
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:boolean\" />\r\n
93
+ \ </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"Ping\">\r\n
94
+ \ <s:complexType />\r\n </s:element>\r\n <s:element name=\"PingResponse\">\r\n
95
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
96
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"PingResult\" type=\"tns:APIResultOfString\"
97
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
98
+ \ <s:complexType name=\"APIResultOfString\">\r\n <s:sequence>\r\n
99
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
100
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
101
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
102
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
103
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
104
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:string\" />\r\n
105
+ \ </s:sequence>\r\n </s:complexType>\r\n </s:schema>\r\n </wsdl:types>\r\n
106
+ \ <wsdl:message name=\"GetAuthorizationListSoapIn\">\r\n <wsdl:part name=\"parameters\"
107
+ element=\"tns:GetAuthorizationList\" />\r\n </wsdl:message>\r\n <wsdl:message
108
+ name=\"GetAuthorizationListSoapOut\">\r\n <wsdl:part name=\"parameters\"
109
+ element=\"tns:GetAuthorizationListResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
110
+ name=\"GetAuthorizationListAPICredentials\">\r\n <wsdl:part name=\"APICredentials\"
111
+ element=\"tns:APICredentials\" />\r\n </wsdl:message>\r\n <wsdl:message
112
+ name=\"RequestAccessSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:RequestAccess\"
113
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"RequestAccessSoapOut\">\r\n
114
+ \ <wsdl:part name=\"parameters\" element=\"tns:RequestAccessResponse\" />\r\n
115
+ \ </wsdl:message>\r\n <wsdl:message name=\"RequestAccessAPICredentials\">\r\n
116
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
117
+ \ </wsdl:message>\r\n <wsdl:message name=\"PingSoapIn\">\r\n <wsdl:part
118
+ name=\"parameters\" element=\"tns:Ping\" />\r\n </wsdl:message>\r\n <wsdl:message
119
+ name=\"PingSoapOut\">\r\n <wsdl:part name=\"parameters\" element=\"tns:PingResponse\"
120
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"PingAPICredentials\">\r\n
121
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
122
+ \ </wsdl:message>\r\n <wsdl:portType name=\"AdminServiceSoap\">\r\n <wsdl:operation
123
+ name=\"GetAuthorizationList\">\r\n <wsdl:input message=\"tns:GetAuthorizationListSoapIn\"
124
+ />\r\n <wsdl:output message=\"tns:GetAuthorizationListSoapOut\" />\r\n
125
+ \ </wsdl:operation>\r\n <wsdl:operation name=\"RequestAccess\">\r\n <wsdl:input
126
+ message=\"tns:RequestAccessSoapIn\" />\r\n <wsdl:output message=\"tns:RequestAccessSoapOut\"
127
+ />\r\n </wsdl:operation>\r\n <wsdl:operation name=\"Ping\">\r\n <wsdl:input
128
+ message=\"tns:PingSoapIn\" />\r\n <wsdl:output message=\"tns:PingSoapOut\"
129
+ />\r\n </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:binding name=\"AdminServiceSoap\"
130
+ type=\"tns:AdminServiceSoap\">\r\n <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\"
131
+ />\r\n <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap:operation
132
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
133
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
134
+ />\r\n <soap:header message=\"tns:GetAuthorizationListAPICredentials\"
135
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
136
+ \ <soap:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
137
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
138
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
139
+ />\r\n <soap:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
140
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
141
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
142
+ name=\"Ping\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
143
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
144
+ />\r\n <soap:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
145
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
146
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
147
+ \ <wsdl:binding name=\"AdminServiceSoap12\" type=\"tns:AdminServiceSoap\">\r\n
148
+ \ <soap12:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
149
+ \ <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap12:operation
150
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
151
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
152
+ />\r\n <soap12:header message=\"tns:GetAuthorizationListAPICredentials\"
153
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
154
+ \ <soap12:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
155
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
156
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
157
+ />\r\n <soap12:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
158
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
159
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
160
+ name=\"Ping\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
161
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
162
+ />\r\n <soap12:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
163
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
164
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
165
+ \ <wsdl:service name=\"AdminService\">\r\n <wsdl:port name=\"AdminServiceSoap\"
166
+ binding=\"tns:AdminServiceSoap\">\r\n <soap:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
167
+ />\r\n </wsdl:port>\r\n <wsdl:port name=\"AdminServiceSoap12\" binding=\"tns:AdminServiceSoap12\">\r\n
168
+ \ <soap12:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
169
+ />\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
170
+ http_version: '1.1'
171
+ recorded_at: Wed, 09 May 2012 06:01:12 GMT
172
+ - request:
173
+ method: post
174
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx
175
+ body:
176
+ encoding: US-ASCII
177
+ string: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
178
+ xmlns:web="http://api.channeladvisor.com/webservices/"><soap:Header><web:APICredentials><web:DeveloperKey>$$DEVELOPER_KEY$$</web:DeveloperKey><web:Password>$$PASSWORD$$</web:Password></web:APICredentials></soap:Header><soap:Body><web:RequestAccess><web:localID>00000000</web:localID></web:RequestAccess></soap:Body></soap:Envelope>
179
+ headers:
180
+ soapaction:
181
+ - ! '"http://api.channeladvisor.com/webservices/RequestAccess"'
182
+ content-type:
183
+ - text/xml;charset=UTF-8
184
+ content-length:
185
+ - '455'
186
+ accept:
187
+ - ! '*/*'
188
+ user-agent:
189
+ - Ruby
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ date:
196
+ - Wed, 09 May 2012 06:01:14 GMT
197
+ server:
198
+ - Microsoft-IIS/6.0
199
+ x-servername:
200
+ - RDU-IISWEB-04
201
+ x-powered-by:
202
+ - ASP.NET
203
+ x-aspnet-version:
204
+ - 4.0.30319
205
+ transfer-encoding:
206
+ - chunked
207
+ cache-control:
208
+ - private, max-age=0
209
+ content-type:
210
+ - text/xml; charset=utf-8
211
+ body:
212
+ encoding: US-ASCII
213
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
214
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><RequestAccessResponse
215
+ xmlns="http://api.channeladvisor.com/webservices/"><RequestAccessResult><Status>Failure</Status><MessageCode>12</MessageCode><Message>No
216
+ ChannelAdvisor Account was found for the specified ID [0]!</Message><ResultData>false</ResultData></RequestAccessResult></RequestAccessResponse></soap:Body></soap:Envelope>
217
+ http_version: '1.1'
218
+ recorded_at: Wed, 09 May 2012 06:01:13 GMT
219
+ recorded_with: VCR 2.1.1
@@ -0,0 +1,218 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx?WSDL
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ accept:
11
+ - ! '*/*'
12
+ user-agent:
13
+ - Ruby
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ date:
20
+ - Wed, 09 May 2012 06:01:05 GMT
21
+ server:
22
+ - Microsoft-IIS/6.0
23
+ x-servername:
24
+ - RDU-IISWEB-06
25
+ x-powered-by:
26
+ - ASP.NET
27
+ x-aspnet-version:
28
+ - 4.0.30319
29
+ cache-control:
30
+ - private, max-age=0
31
+ content-type:
32
+ - text/xml; charset=utf-8
33
+ content-length:
34
+ - '10625'
35
+ body:
36
+ encoding: US-ASCII
37
+ string: ! "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<wsdl:definitions xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
38
+ xmlns:tm=\"http://microsoft.com/wsdl/mime/textMatching/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"
39
+ xmlns:mime=\"http://schemas.xmlsoap.org/wsdl/mime/\" xmlns:tns=\"http://api.channeladvisor.com/webservices/\"
40
+ xmlns:s=\"http://www.w3.org/2001/XMLSchema\" xmlns:soap12=\"http://schemas.xmlsoap.org/wsdl/soap12/\"
41
+ xmlns:http=\"http://schemas.xmlsoap.org/wsdl/http/\" targetNamespace=\"http://api.channeladvisor.com/webservices/\"
42
+ xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\">\r\n <wsdl:types>\r\n <s:schema
43
+ elementFormDefault=\"qualified\" targetNamespace=\"http://api.channeladvisor.com/webservices/\">\r\n
44
+ \ <s:element name=\"GetAuthorizationList\">\r\n <s:complexType>\r\n
45
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
46
+ name=\"localID\" type=\"s:integer\" />\r\n </s:sequence>\r\n </s:complexType>\r\n
47
+ \ </s:element>\r\n <s:element name=\"GetAuthorizationListResponse\">\r\n
48
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
49
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"GetAuthorizationListResult\" type=\"tns:APIResultOfArrayOfAuthorizationResponse\"
50
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
51
+ \ <s:complexType name=\"APIResultOfArrayOfAuthorizationResponse\">\r\n
52
+ \ <s:sequence>\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\"
53
+ name=\"Status\" type=\"tns:ResultStatus\" />\r\n <s:element minOccurs=\"1\"
54
+ maxOccurs=\"1\" name=\"MessageCode\" type=\"s:int\" />\r\n <s:element
55
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"Message\" type=\"s:string\" />\r\n
56
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"Data\" type=\"s:string\"
57
+ />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\"
58
+ type=\"tns:ArrayOfAuthorizationResponse\" />\r\n </s:sequence>\r\n
59
+ \ </s:complexType>\r\n <s:simpleType name=\"ResultStatus\">\r\n <s:restriction
60
+ base=\"s:string\">\r\n <s:enumeration value=\"Success\" />\r\n <s:enumeration
61
+ value=\"Failure\" />\r\n </s:restriction>\r\n </s:simpleType>\r\n
62
+ \ <s:complexType name=\"ArrayOfAuthorizationResponse\">\r\n <s:sequence>\r\n
63
+ \ <s:element minOccurs=\"0\" maxOccurs=\"unbounded\" name=\"AuthorizationResponse\"
64
+ nillable=\"true\" type=\"tns:AuthorizationResponse\" />\r\n </s:sequence>\r\n
65
+ \ </s:complexType>\r\n <s:complexType name=\"AuthorizationResponse\">\r\n
66
+ \ <s:sequence>\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
67
+ name=\"AccountID\" type=\"s:string\" />\r\n <s:element minOccurs=\"1\"
68
+ maxOccurs=\"1\" name=\"LocalID\" type=\"s:int\" />\r\n <s:element
69
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountName\" type=\"s:string\" />\r\n
70
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"AccountType\"
71
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
72
+ name=\"ResourceName\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
73
+ maxOccurs=\"1\" name=\"Status\" type=\"s:string\" />\r\n </s:sequence>\r\n
74
+ \ </s:complexType>\r\n <s:element name=\"APICredentials\" type=\"tns:APICredentials\"
75
+ />\r\n <s:complexType name=\"APICredentials\">\r\n <s:sequence>\r\n
76
+ \ <s:element minOccurs=\"0\" maxOccurs=\"1\" name=\"DeveloperKey\"
77
+ type=\"s:string\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
78
+ name=\"Password\" type=\"s:string\" />\r\n </s:sequence>\r\n <s:anyAttribute
79
+ />\r\n </s:complexType>\r\n <s:element name=\"RequestAccess\">\r\n
80
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
81
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"localID\" type=\"s:int\" />\r\n </s:sequence>\r\n
82
+ \ </s:complexType>\r\n </s:element>\r\n <s:element name=\"RequestAccessResponse\">\r\n
83
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
84
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"RequestAccessResult\" type=\"tns:APIResultOfBoolean\"
85
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
86
+ \ <s:complexType name=\"APIResultOfBoolean\">\r\n <s:sequence>\r\n
87
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
88
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
89
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
90
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
91
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
92
+ minOccurs=\"1\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:boolean\" />\r\n
93
+ \ </s:sequence>\r\n </s:complexType>\r\n <s:element name=\"Ping\">\r\n
94
+ \ <s:complexType />\r\n </s:element>\r\n <s:element name=\"PingResponse\">\r\n
95
+ \ <s:complexType>\r\n <s:sequence>\r\n <s:element
96
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"PingResult\" type=\"tns:APIResultOfString\"
97
+ />\r\n </s:sequence>\r\n </s:complexType>\r\n </s:element>\r\n
98
+ \ <s:complexType name=\"APIResultOfString\">\r\n <s:sequence>\r\n
99
+ \ <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"Status\" type=\"tns:ResultStatus\"
100
+ />\r\n <s:element minOccurs=\"1\" maxOccurs=\"1\" name=\"MessageCode\"
101
+ type=\"s:int\" />\r\n <s:element minOccurs=\"0\" maxOccurs=\"1\"
102
+ name=\"Message\" type=\"s:string\" />\r\n <s:element minOccurs=\"0\"
103
+ maxOccurs=\"1\" name=\"Data\" type=\"s:string\" />\r\n <s:element
104
+ minOccurs=\"0\" maxOccurs=\"1\" name=\"ResultData\" type=\"s:string\" />\r\n
105
+ \ </s:sequence>\r\n </s:complexType>\r\n </s:schema>\r\n </wsdl:types>\r\n
106
+ \ <wsdl:message name=\"GetAuthorizationListSoapIn\">\r\n <wsdl:part name=\"parameters\"
107
+ element=\"tns:GetAuthorizationList\" />\r\n </wsdl:message>\r\n <wsdl:message
108
+ name=\"GetAuthorizationListSoapOut\">\r\n <wsdl:part name=\"parameters\"
109
+ element=\"tns:GetAuthorizationListResponse\" />\r\n </wsdl:message>\r\n <wsdl:message
110
+ name=\"GetAuthorizationListAPICredentials\">\r\n <wsdl:part name=\"APICredentials\"
111
+ element=\"tns:APICredentials\" />\r\n </wsdl:message>\r\n <wsdl:message
112
+ name=\"RequestAccessSoapIn\">\r\n <wsdl:part name=\"parameters\" element=\"tns:RequestAccess\"
113
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"RequestAccessSoapOut\">\r\n
114
+ \ <wsdl:part name=\"parameters\" element=\"tns:RequestAccessResponse\" />\r\n
115
+ \ </wsdl:message>\r\n <wsdl:message name=\"RequestAccessAPICredentials\">\r\n
116
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
117
+ \ </wsdl:message>\r\n <wsdl:message name=\"PingSoapIn\">\r\n <wsdl:part
118
+ name=\"parameters\" element=\"tns:Ping\" />\r\n </wsdl:message>\r\n <wsdl:message
119
+ name=\"PingSoapOut\">\r\n <wsdl:part name=\"parameters\" element=\"tns:PingResponse\"
120
+ />\r\n </wsdl:message>\r\n <wsdl:message name=\"PingAPICredentials\">\r\n
121
+ \ <wsdl:part name=\"APICredentials\" element=\"tns:APICredentials\" />\r\n
122
+ \ </wsdl:message>\r\n <wsdl:portType name=\"AdminServiceSoap\">\r\n <wsdl:operation
123
+ name=\"GetAuthorizationList\">\r\n <wsdl:input message=\"tns:GetAuthorizationListSoapIn\"
124
+ />\r\n <wsdl:output message=\"tns:GetAuthorizationListSoapOut\" />\r\n
125
+ \ </wsdl:operation>\r\n <wsdl:operation name=\"RequestAccess\">\r\n <wsdl:input
126
+ message=\"tns:RequestAccessSoapIn\" />\r\n <wsdl:output message=\"tns:RequestAccessSoapOut\"
127
+ />\r\n </wsdl:operation>\r\n <wsdl:operation name=\"Ping\">\r\n <wsdl:input
128
+ message=\"tns:PingSoapIn\" />\r\n <wsdl:output message=\"tns:PingSoapOut\"
129
+ />\r\n </wsdl:operation>\r\n </wsdl:portType>\r\n <wsdl:binding name=\"AdminServiceSoap\"
130
+ type=\"tns:AdminServiceSoap\">\r\n <soap:binding transport=\"http://schemas.xmlsoap.org/soap/http\"
131
+ />\r\n <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap:operation
132
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
133
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
134
+ />\r\n <soap:header message=\"tns:GetAuthorizationListAPICredentials\"
135
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
136
+ \ <soap:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
137
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
138
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
139
+ />\r\n <soap:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
140
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
141
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
142
+ name=\"Ping\">\r\n <soap:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
143
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap:body use=\"literal\"
144
+ />\r\n <soap:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
145
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap:body
146
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
147
+ \ <wsdl:binding name=\"AdminServiceSoap12\" type=\"tns:AdminServiceSoap\">\r\n
148
+ \ <soap12:binding transport=\"http://schemas.xmlsoap.org/soap/http\" />\r\n
149
+ \ <wsdl:operation name=\"GetAuthorizationList\">\r\n <soap12:operation
150
+ soapAction=\"http://api.channeladvisor.com/webservices/GetAuthorizationList\"
151
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
152
+ />\r\n <soap12:header message=\"tns:GetAuthorizationListAPICredentials\"
153
+ part=\"APICredentials\" use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n
154
+ \ <soap12:body use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n
155
+ \ <wsdl:operation name=\"RequestAccess\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/RequestAccess\"
156
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
157
+ />\r\n <soap12:header message=\"tns:RequestAccessAPICredentials\" part=\"APICredentials\"
158
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
159
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n <wsdl:operation
160
+ name=\"Ping\">\r\n <soap12:operation soapAction=\"http://api.channeladvisor.com/webservices/Ping\"
161
+ style=\"document\" />\r\n <wsdl:input>\r\n <soap12:body use=\"literal\"
162
+ />\r\n <soap12:header message=\"tns:PingAPICredentials\" part=\"APICredentials\"
163
+ use=\"literal\" />\r\n </wsdl:input>\r\n <wsdl:output>\r\n <soap12:body
164
+ use=\"literal\" />\r\n </wsdl:output>\r\n </wsdl:operation>\r\n </wsdl:binding>\r\n
165
+ \ <wsdl:service name=\"AdminService\">\r\n <wsdl:port name=\"AdminServiceSoap\"
166
+ binding=\"tns:AdminServiceSoap\">\r\n <soap:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
167
+ />\r\n </wsdl:port>\r\n <wsdl:port name=\"AdminServiceSoap12\" binding=\"tns:AdminServiceSoap12\">\r\n
168
+ \ <soap12:address location=\"https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx\"
169
+ />\r\n </wsdl:port>\r\n </wsdl:service>\r\n</wsdl:definitions>"
170
+ http_version: '1.1'
171
+ recorded_at: Wed, 09 May 2012 06:01:06 GMT
172
+ - request:
173
+ method: post
174
+ uri: https://api.channeladvisor.com/ChannelAdvisorAPI/v6/AdminService.asmx
175
+ body:
176
+ encoding: US-ASCII
177
+ string: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
178
+ xmlns:web="http://api.channeladvisor.com/webservices/"><soap:Header><web:APICredentials><web:DeveloperKey>$$DEVELOPER_KEY$$</web:DeveloperKey><web:Password>$$PASSWORD$$</web:Password></web:APICredentials></soap:Header><soap:Body><web:RequestAccess><web:localID>$$LOCAL_ID$$</web:localID></web:RequestAccess></soap:Body></soap:Envelope>
179
+ headers:
180
+ soapaction:
181
+ - ! '"http://api.channeladvisor.com/webservices/RequestAccess"'
182
+ content-type:
183
+ - text/xml;charset=UTF-8
184
+ content-length:
185
+ - '455'
186
+ accept:
187
+ - ! '*/*'
188
+ user-agent:
189
+ - Ruby
190
+ response:
191
+ status:
192
+ code: 200
193
+ message: OK
194
+ headers:
195
+ date:
196
+ - Wed, 09 May 2012 06:01:08 GMT
197
+ server:
198
+ - Microsoft-IIS/6.0
199
+ x-servername:
200
+ - RDU-IISWEB-08
201
+ x-powered-by:
202
+ - ASP.NET
203
+ x-aspnet-version:
204
+ - 4.0.30319
205
+ transfer-encoding:
206
+ - chunked
207
+ cache-control:
208
+ - private, max-age=0
209
+ content-type:
210
+ - text/xml; charset=utf-8
211
+ body:
212
+ encoding: US-ASCII
213
+ string: <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
214
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><RequestAccessResponse
215
+ xmlns="http://api.channeladvisor.com/webservices/"><RequestAccessResult><Status>Success</Status><MessageCode>0</MessageCode><ResultData>true</ResultData></RequestAccessResult></RequestAccessResponse></soap:Body></soap:Envelope>
216
+ http_version: '1.1'
217
+ recorded_at: Wed, 09 May 2012 06:01:08 GMT
218
+ recorded_with: VCR 2.1.1