Blame view

test/cassettes/test_query_browse.yml 3.41 KB
f65bf747   Joe Weakley   Added and configu...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
  ---
  http_interactions:
  - request:
      method: get
      uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/logon?CompanyId=L&CompanyPassword=&Operator=wland&OperatorPassword=piperita2016
      body:
        encoding: US-ASCII
        string: ''
      headers:
        User-Agent:
        - Syspro/7 RubyBindings/0.1.0
        Content-Type:
        - application/x-www-form-urlencoded
        Accept-Encoding:
        - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
        Accept:
        - "*/*"
    response:
      status:
        code: 200
        message: OK
      headers:
        Content-Length:
        - '36'
        Content-Type:
        - application/octet-stream
        Server:
        - Microsoft-HTTPAPI/2.0
        Date:
        - Fri, 06 Apr 2018 19:23:03 GMT
      body:
        encoding: UTF-8
        string: '64C41E1DEB73024CA660211DE643705700  '
      http_version: 
    recorded_at: Fri, 06 Apr 2018 19:23:01 GMT
  - request:
      method: get
      uri: http://syspro.wildlandlabs.com:90/SYSPROWCFService/Rest/Query/Browse?UserId=64C41E1DEB73024CA660211DE643705700%20%20&XmlIn=%3C?xml%20version=%221.0%22%20encoding=%22Windows-1252%22?%3E%0A%3CBrowse%20xmlns:xsd=%22http://www.w3.org/2001/XMLSchema-instance%22%20xsd:noNamespaceSchemaLocation=%22COMBRW.XSD%22%3E%0A%20%20%3CBrowseName%3EInvMaster%3C/BrowseName%3E%0A%20%20%3CStartAtKey/%3E%0A%20%20%3CStartCondition%3E%3C/StartCondition%3E%0A%20%20%3CReturnRows%3E5%3C/ReturnRows%3E%0A%20%20%0A%20%20%3CBrowseDetails%3E%0A%20%20%20%20%3CTableName%3EInvMaster%3C/TableName%3E%0A%20%20%20%20%3CTitle%3EStockCodes%3C/Title%3E%0A%20%20%20%20%0A%20%20%20%20%20%20%3CColumn%3E%0A%20%20%20%20%20%20%20%20%3CColumnName%3EStockCode%3C/ColumnName%3E%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%20%20%0A%20%20%20%20%20%20%3C/Column%3E%0A%20%20%20%20%0A%20%20%3C/BrowseDetails%3E%0A%3C/Browse%3E%0A%0A
      body:
        encoding: US-ASCII
        string: ''
      headers:
        User-Agent:
        - Syspro/7 RubyBindings/0.1.0
        Content-Type:
        - application/x-www-form-urlencoded
        Accept-Encoding:
        - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
        Accept:
        - "*/*"
    response:
      status:
        code: 200
        message: OK
      headers:
        Content-Length:
        - '944'
        Content-Type:
        - application/octet-stream
        Server:
        - Microsoft-HTTPAPI/2.0
        Date:
        - Fri, 06 Apr 2018 19:23:07 GMT
      body:
        encoding: UTF-8
        string: "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<InvMaster Language='05'
          Language2='EN' CssStyle='' DecFormat='1' DateFormat='01' Role='01' Version='7.0.036'
          OperatorPrimaryRole='   '>\n<Title>StockCodes</Title>\n<Row>\n<StockCode>\n<Value>02</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>021</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>0214011IFF</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>022</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<Row>\n<StockCode>\n<Value>023</Value>\n<DataType>AlphaNumeric</DataType>\n</StockCode>\n</Row>\n<NextPrevKey>\n<PrevKey>02</PrevKey>\n<NextKey>023</NextKey>\n<Fwd>True</Fwd>\n<Back>False</Back>\n</NextPrevKey>\n<HeaderDetails>\n<Header>Stock
          code</Header>\n<Key>StockCode</Key>\n<KeyDescription>Stock code</KeyDescription>\n<Table>InvMaster</Table>\n</HeaderDetails>\n</InvMaster>\n "
      http_version: 
    recorded_at: Fri, 06 Apr 2018 19:23:06 GMT
  recorded_with: VCR 4.0.0