channeladvisor 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +7 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/.yardopts +8 -0
- data/Gemfile +31 -0
- data/Guardfile +28 -0
- data/LICENSE +19 -0
- data/README.md +40 -0
- data/Rakefile +69 -0
- data/channeladvisor.gemspec +29 -0
- data/lib/channeladvisor.rb +27 -0
- data/lib/channeladvisor/account_authorization.rb +14 -0
- data/lib/channeladvisor/address.rb +39 -0
- data/lib/channeladvisor/admin.rb +75 -0
- data/lib/channeladvisor/base.rb +34 -0
- data/lib/channeladvisor/client.rb +3 -0
- data/lib/channeladvisor/configuration.rb +11 -0
- data/lib/channeladvisor/error.rb +30 -0
- data/lib/channeladvisor/line_item.rb +38 -0
- data/lib/channeladvisor/order.rb +179 -0
- data/lib/channeladvisor/order_status.rb +14 -0
- data/lib/channeladvisor/payment.rb +15 -0
- data/lib/channeladvisor/services.rb +11 -0
- data/lib/channeladvisor/services/admin_service.rb +47 -0
- data/lib/channeladvisor/services/base_service.rb +26 -0
- data/lib/channeladvisor/services/inventory_service.rb +90 -0
- data/lib/channeladvisor/services/order_service.rb +117 -0
- data/lib/channeladvisor/services/shipping_service.rb +164 -0
- data/lib/channeladvisor/shipment.rb +71 -0
- data/lib/channeladvisor/shopping_cart.rb +26 -0
- data/lib/channeladvisor/version.rb +3 -0
- data/spec/fixtures/requests/admin_service/get_authorization_list.xml +1 -0
- data/spec/fixtures/requests/admin_service/get_authorization_list_with_local_id.xml +1 -0
- data/spec/fixtures/requests/admin_service/ping.xml +1 -0
- data/spec/fixtures/requests/admin_service/request_access.xml +1 -0
- data/spec/fixtures/requests/inventory_service/ping.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/price_only.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_and_price.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_only.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/price_only.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_and_price.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_only.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_item_price.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_item_quantity.xml +1 -0
- data/spec/fixtures/requests/inventory_service/update_item_quantity_and_price.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_checkout_status_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_created_from_date.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_created_to_date.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_detail_level.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_distribution_center_code.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_export_state.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_join_dates.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_one_client_order_id.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_one_order_id.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_order_state_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_page_number_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_page_size.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_payment_status_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_refund_status_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_shipping_status_filter.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_two_client_order_ids.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_two_order_ids.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_updated_from_date.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/with_updated_to_date.xml +1 -0
- data/spec/fixtures/requests/order_service/get_order_list/without_order_criteria.xml +1 -0
- data/spec/fixtures/requests/order_service/ping.xml +1 -0
- data/spec/fixtures/requests/order_service/set_orders_export_status/with_one_client_order_id.xml +1 -0
- data/spec/fixtures/requests/order_service/set_orders_export_status/with_two_client_order_ids.xml +1 -0
- data/spec/fixtures/requests/shipping_service/get_shipping_carrier_list.xml +1 -0
- data/spec/fixtures/requests/shipping_service/ping.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/with_one_shipment.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/with_two_shipments.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_carrier_code.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_class_code.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_client_order_id.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_seller_id.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/full_shipment/without_tracking_number.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_one_line_item.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_two_line_items.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/with_two_shipments.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_carrier_code.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_class_code.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_seller_id.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/partial_shipment/without_tracking_number.xml +1 -0
- data/spec/fixtures/requests/shipping_service/submit_order_shipment_list/with_partial_and_full_shipments.xml +1 -0
- data/spec/fixtures/responses/admin/get_authorization_list/failure.yml +50 -0
- data/spec/fixtures/responses/admin/get_authorization_list/no_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin/get_authorization_list/one_authorization.yml +49 -0
- data/spec/fixtures/responses/admin/get_authorization_list/success.yml +49 -0
- data/spec/fixtures/responses/admin/get_authorization_list/two_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin/ping/failure.yml +50 -0
- data/spec/fixtures/responses/admin/ping/success.yml +218 -0
- data/spec/fixtures/responses/admin/request_access/failure.yml +50 -0
- data/spec/fixtures/responses/admin/request_access/success.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_invalid_local_id.yml +219 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_local_id/success.yml +218 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/multiple_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/no_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/one_authorization.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/with_valid_local_id/success.yml +218 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/multiple_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/no_authorizations.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/one_authorization.yml +49 -0
- data/spec/fixtures/responses/admin_service/get_authorization_list/without_local_id/success.yml +218 -0
- data/spec/fixtures/responses/admin_service/ping/failure.yml +222 -0
- data/spec/fixtures/responses/admin_service/ping/success.yml +218 -0
- data/spec/fixtures/responses/admin_service/request_access/failure.yml +219 -0
- data/spec/fixtures/responses/admin_service/request_access/success.yml +218 -0
- data/spec/fixtures/responses/http_error.yml +48 -0
- data/spec/fixtures/responses/inventory_service/ping.yml +1356 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price.yml +1356 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/price_only.yml +144 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/quantity_and_price.yml +191 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price/quantity_only.yml +1403 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list.yml +243 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/price_only.yml +97 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_and_price.yml +144 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_one_item/quantity_only.yml +51 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/price_only.yml +238 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_and_price.yml +285 -0
- data/spec/fixtures/responses/inventory_service/update_inventory_item_quantity_and_price_list/with_two_items/quantity_only.yml +191 -0
- data/spec/fixtures/responses/order/instance_set_export_status.yml +51 -0
- data/spec/fixtures/responses/order/instance_set_export_status/failure.yml +51 -0
- data/spec/fixtures/responses/order/instance_set_export_status/success/result_false.yml +51 -0
- data/spec/fixtures/responses/order/instance_set_export_status/success/result_true.yml +51 -0
- data/spec/fixtures/responses/order/list.yml +58 -0
- data/spec/fixtures/responses/order/list/failure.yml +56 -0
- data/spec/fixtures/responses/order/list/no_matching_orders.yml +56 -0
- data/spec/fixtures/responses/order/list/one_matching_order.yml +57 -0
- data/spec/fixtures/responses/order/list/two_matching_orders.yml +59 -0
- data/spec/fixtures/responses/order/list/with_criteria.yml +52 -0
- data/spec/fixtures/responses/order/list/with_no_criteria.yml +58 -0
- data/spec/fixtures/responses/order/ping.yml +868 -0
- data/spec/fixtures/responses/order/ping/failure.yml +50 -0
- data/spec/fixtures/responses/order/ping/success.yml +867 -0
- data/spec/fixtures/responses/order/set_export_status/failure.yml +51 -0
- data/spec/fixtures/responses/order/set_export_status/success/with_one_client_order_id.yml +51 -0
- data/spec/fixtures/responses/order/set_export_status/success/with_two_client_order_ids.yml +51 -0
- data/spec/fixtures/responses/order_service/get_order_list/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_checkout_status_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_created_from_date.yml +874 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_created_to_date.yml +874 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_detail_level.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_distribution_center_code.yml +872 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_export_state.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_join_dates.yml +869 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_one_client_order_id.yml +872 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_one_order_id.yml +873 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_order_state_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_page_number_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_page_size.yml +874 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_payment_status_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_refund_status_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_shipping_status_filter.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_two_client_order_ids.yml +872 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_two_order_ids.yml +875 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_updated_from_date.yml +874 -0
- data/spec/fixtures/responses/order_service/get_order_list/with_updated_to_date.yml +874 -0
- data/spec/fixtures/responses/order_service/get_order_list/without_order_criteria.yml +871 -0
- data/spec/fixtures/responses/order_service/get_order_refund_history/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/order_merge/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/order_split/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/ping/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/ping/failure.yml +871 -0
- data/spec/fixtures/responses/order_service/ping/success.yml +868 -0
- data/spec/fixtures/responses/order_service/set_orders_export_status/with_one_client_order_id.yml +867 -0
- data/spec/fixtures/responses/order_service/set_orders_export_status/with_two_client_order_id.yml +867 -0
- data/spec/fixtures/responses/order_service/set_seller_order_id/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/set_seller_order_item_id_list/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/submit_order/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/submit_order_refund/.gitkeep +0 -0
- data/spec/fixtures/responses/order_service/update_order_list/.gitkeep +0 -0
- data/spec/fixtures/responses/shipment/get_carriers.yml +53 -0
- data/spec/fixtures/responses/shipment/get_carriers/failure.yml +52 -0
- data/spec/fixtures/responses/shipment/submit.yml +464 -0
- data/spec/fixtures/responses/shipment/submit/failure.yml +462 -0
- data/spec/fixtures/responses/shipment/submit/one_shipment.yml +464 -0
- data/spec/fixtures/responses/shipment/submit/two_shipments.yml +56 -0
- data/spec/fixtures/responses/shipping_service/get_shipping_carrier_list.yml +953 -0
- data/spec/fixtures/responses/shipping_service/ping/failure.yml +55 -0
- data/spec/fixtures/responses/shipping_service/ping/success.yml +460 -0
- data/spec/fixtures/responses/shipping_service/submit_order_shipment_list.yml +55 -0
- data/spec/fixtures/responses/soap_fault.yml +53 -0
- data/spec/lib/channeladvisor/address_spec.rb +107 -0
- data/spec/lib/channeladvisor/admin_spec.rb +216 -0
- data/spec/lib/channeladvisor/line_item_spec.rb +147 -0
- data/spec/lib/channeladvisor/order_spec.rb +623 -0
- data/spec/lib/channeladvisor/order_status_spec.rb +36 -0
- data/spec/lib/channeladvisor/payment_spec.rb +38 -0
- data/spec/lib/channeladvisor/services/admin_service_spec.rb +65 -0
- data/spec/lib/channeladvisor/services/base_service_spec.rb +11 -0
- data/spec/lib/channeladvisor/services/inventory_service_spec.rb +214 -0
- data/spec/lib/channeladvisor/services/order_service_spec.rb +267 -0
- data/spec/lib/channeladvisor/services/shipping_service_spec.rb +288 -0
- data/spec/lib/channeladvisor/shipment_spec.rb +257 -0
- data/spec/lib/channeladvisor/shopping_cart_spec.rb +173 -0
- data/spec/lib/channeladvisor_spec.rb +18 -0
- data/spec/spec_helper.rb +29 -0
- data/spec/support/credentials.rb +15 -0
- data/spec/support/matchers/boolean.rb +17 -0
- data/spec/support/matchers/markup.rb +50 -0
- data/spec/support/rr.rb +38 -0
- data/spec/support/shared_examples.rb +4 -0
- data/spec/support/vcr.rb +38 -0
- 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
|