qbwc 0.0.5 → 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.
- checksums.yaml +7 -0
- data/.gitignore +5 -1
- data/.travis.yml +6 -0
- data/README.md +152 -144
- data/Rakefile +7 -1
- data/lib/generators/qbwc/install/install_generator.rb +20 -4
- data/lib/generators/qbwc/install/templates/config/qbwc.rb +42 -26
- data/lib/generators/qbwc/install/templates/controllers/qbwc_controller.rb +2 -38
- data/lib/generators/qbwc/install/templates/db/migrate/create_qbwc_jobs.rb +15 -0
- data/lib/generators/qbwc/install/templates/db/migrate/create_qbwc_sessions.rb +16 -0
- data/lib/qbwc.rb +107 -71
- data/lib/qbwc/active_record.rb +6 -0
- data/lib/qbwc/active_record/job.rb +111 -0
- data/lib/qbwc/active_record/session.rb +52 -0
- data/lib/qbwc/controller.rb +176 -0
- data/lib/qbwc/job.rb +81 -18
- data/lib/qbwc/railtie.rb +8 -0
- data/lib/qbwc/request.rb +14 -23
- data/lib/qbwc/session.rb +100 -72
- data/lib/qbwc/version.rb +1 -1
- data/lib/qbwc/worker.rb +16 -0
- data/qbwc.gemspec +11 -5
- data/test/qbwc/controllers/controller_test.rb +157 -0
- data/test/qbwc/integration/job_management_test.rb +86 -0
- data/test/qbwc/integration/request_generation_test.rb +340 -0
- data/test/qbwc/integration/response_test.rb +303 -0
- data/test/qbwc/integration/routes_test.rb +38 -0
- data/test/qbwc/integration/session_test.rb +94 -0
- data/test/test_helper.rb +248 -0
- data/test/wash_out_helper.rb +76 -0
- metadata +133 -55
- data/Gemfile.lock +0 -72
- data/lib/qbwc/soap_wrapper.rb +0 -35
- data/lib/qbwc/soap_wrapper/QBWebConnectorSvc.rb +0 -69
- data/lib/qbwc/soap_wrapper/QBWebConnectorSvc.wsdl +0 -312
- data/lib/qbwc/soap_wrapper/default.rb +0 -198
- data/lib/qbwc/soap_wrapper/defaultMappingRegistry.rb +0 -163
- data/lib/qbwc/soap_wrapper/defaultServant.rb +0 -133
- data/spec/spec_helper.rb +0 -17
data/lib/qbwc/soap_wrapper.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'soap/rpc/standaloneServer'
|
2
|
-
|
3
|
-
class QBWC::SoapWrapper
|
4
|
-
include QBWC
|
5
|
-
private_class_method :new
|
6
|
-
|
7
|
-
def self.initialize_singleton
|
8
|
-
@router = ::SOAP::RPC::Router.new('QBWebConnectorSvcSoap')
|
9
|
-
@router.mapping_registry = DefaultMappingRegistry::EncodedRegistry
|
10
|
-
@router.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry
|
11
|
-
@conn_data = ::SOAP::StreamHandler::ConnectionData.new
|
12
|
-
|
13
|
-
servant = QBWebConnectorSvcSoap.new
|
14
|
-
QBWebConnectorSvcSoap::Methods.each do |definitions|
|
15
|
-
opt = definitions.last
|
16
|
-
if opt[:request_style] == :document
|
17
|
-
@router.add_document_operation(servant, *definitions)
|
18
|
-
else
|
19
|
-
@router.add_rpc_operation(servant, *definitions)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
def self.route_request(request)
|
25
|
-
@conn_data.receive_string = request.raw_post
|
26
|
-
@conn_data.receive_contenttype = request.content_type
|
27
|
-
@conn_data.soapaction = nil
|
28
|
-
|
29
|
-
@router.external_ces = nil
|
30
|
-
res_data = @router.route(@conn_data)
|
31
|
-
res_data.send_string
|
32
|
-
end
|
33
|
-
|
34
|
-
initialize_singleton
|
35
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
|
2
|
-
class QBWC::QBWebConnectorSvcSoap
|
3
|
-
Methods = [
|
4
|
-
[ "http://developer.intuit.com/serverVersion",
|
5
|
-
"serverVersion",
|
6
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "serverVersion"]],
|
7
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "serverVersionResponse"]] ],
|
8
|
-
{ :request_style => :document, :request_use => :literal,
|
9
|
-
:response_style => :document, :response_use => :literal,
|
10
|
-
:faults => {} }
|
11
|
-
],
|
12
|
-
[ "http://developer.intuit.com/clientVersion",
|
13
|
-
"clientVersion",
|
14
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "clientVersion"]],
|
15
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "clientVersionResponse"]] ],
|
16
|
-
{ :request_style => :document, :request_use => :literal,
|
17
|
-
:response_style => :document, :response_use => :literal,
|
18
|
-
:faults => {} }
|
19
|
-
],
|
20
|
-
[ "http://developer.intuit.com/authenticate",
|
21
|
-
"authenticate",
|
22
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "authenticate"]],
|
23
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "authenticateResponse"]] ],
|
24
|
-
{ :request_style => :document, :request_use => :literal,
|
25
|
-
:response_style => :document, :response_use => :literal,
|
26
|
-
:faults => {} }
|
27
|
-
],
|
28
|
-
[ "http://developer.intuit.com/sendRequestXML",
|
29
|
-
"sendRequestXML",
|
30
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "sendRequestXML"]],
|
31
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "sendRequestXMLResponse"]] ],
|
32
|
-
{ :request_style => :document, :request_use => :literal,
|
33
|
-
:response_style => :document, :response_use => :literal,
|
34
|
-
:faults => {} }
|
35
|
-
],
|
36
|
-
[ "http://developer.intuit.com/receiveResponseXML",
|
37
|
-
"receiveResponseXML",
|
38
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "receiveResponseXML"]],
|
39
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "receiveResponseXMLResponse"]] ],
|
40
|
-
{ :request_style => :document, :request_use => :literal,
|
41
|
-
:response_style => :document, :response_use => :literal,
|
42
|
-
:faults => {} }
|
43
|
-
],
|
44
|
-
[ "http://developer.intuit.com/connectionError",
|
45
|
-
"connectionError",
|
46
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "connectionError"]],
|
47
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "connectionErrorResponse"]] ],
|
48
|
-
{ :request_style => :document, :request_use => :literal,
|
49
|
-
:response_style => :document, :response_use => :literal,
|
50
|
-
:faults => {} }
|
51
|
-
],
|
52
|
-
[ "http://developer.intuit.com/getLastError",
|
53
|
-
"getLastError",
|
54
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "getLastError"]],
|
55
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "getLastErrorResponse"]] ],
|
56
|
-
{ :request_style => :document, :request_use => :literal,
|
57
|
-
:response_style => :document, :response_use => :literal,
|
58
|
-
:faults => {} }
|
59
|
-
],
|
60
|
-
[ "http://developer.intuit.com/closeConnection",
|
61
|
-
"closeConnection",
|
62
|
-
[ ["in", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "closeConnection"]],
|
63
|
-
["out", "parameters", ["::SOAP::SOAPElement", "http://developer.intuit.com/", "closeConnectionResponse"]] ],
|
64
|
-
{ :request_style => :document, :request_use => :literal,
|
65
|
-
:response_style => :document, :response_use => :literal,
|
66
|
-
:faults => {} }
|
67
|
-
]
|
68
|
-
]
|
69
|
-
end
|
@@ -1,312 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://developer.intuit.com/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://developer.intuit.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
3
|
-
<wsdl:types>
|
4
|
-
<s:schema elementFormDefault="qualified" targetNamespace="http://developer.intuit.com/">
|
5
|
-
<s:element name="authenticate">
|
6
|
-
<s:complexType>
|
7
|
-
<s:sequence>
|
8
|
-
<s:element minOccurs="0" maxOccurs="1" name="strUserName" type="s:string" />
|
9
|
-
<s:element minOccurs="0" maxOccurs="1" name="strPassword" type="s:string" />
|
10
|
-
</s:sequence>
|
11
|
-
</s:complexType>
|
12
|
-
</s:element>
|
13
|
-
<s:element name="authenticateResponse">
|
14
|
-
<s:complexType>
|
15
|
-
<s:sequence>
|
16
|
-
<s:element minOccurs="0" maxOccurs="1" name="authenticateResult" type="tns:ArrayOfString" />
|
17
|
-
</s:sequence>
|
18
|
-
</s:complexType>
|
19
|
-
</s:element>
|
20
|
-
<s:complexType name="ArrayOfString">
|
21
|
-
<s:sequence>
|
22
|
-
<s:element minOccurs="0" maxOccurs="unbounded" name="string" nillable="true" type="s:string" />
|
23
|
-
</s:sequence>
|
24
|
-
</s:complexType>
|
25
|
-
|
26
|
-
<!-- added these two methods -->
|
27
|
-
<s:element name="serverVersion">
|
28
|
-
<s:complexType>
|
29
|
-
<s:sequence>
|
30
|
-
<s:element minOccurs="0" maxOccurs="1" name="strVersion" type="s:string" />
|
31
|
-
</s:sequence>
|
32
|
-
</s:complexType>
|
33
|
-
</s:element>
|
34
|
-
<s:element name="serverVersionResponse">
|
35
|
-
<s:complexType>
|
36
|
-
<s:sequence>
|
37
|
-
<s:element minOccurs="0" maxOccurs="1" name="serverVersionResult" type="s:string" />
|
38
|
-
</s:sequence>
|
39
|
-
</s:complexType>
|
40
|
-
</s:element>
|
41
|
-
<s:element name="clientVersion">
|
42
|
-
<s:complexType>
|
43
|
-
<s:sequence>
|
44
|
-
<s:element minOccurs="0" maxOccurs="1" name="strVersion" type="s:string" />
|
45
|
-
</s:sequence>
|
46
|
-
</s:complexType>
|
47
|
-
</s:element>
|
48
|
-
<s:element name="clientVersionResponse">
|
49
|
-
<s:complexType>
|
50
|
-
<s:sequence>
|
51
|
-
<s:element minOccurs="0" maxOccurs="1" name="clientVersionResult" type="s:string" />
|
52
|
-
</s:sequence>
|
53
|
-
</s:complexType>
|
54
|
-
</s:element>
|
55
|
-
|
56
|
-
|
57
|
-
<s:element name="sendRequestXML">
|
58
|
-
<s:complexType>
|
59
|
-
<s:sequence>
|
60
|
-
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:string" />
|
61
|
-
<s:element minOccurs="0" maxOccurs="1" name="strHCPResponse" type="s:string" />
|
62
|
-
<s:element minOccurs="0" maxOccurs="1" name="strCompanyFileName" type="s:string" />
|
63
|
-
<s:element minOccurs="0" maxOccurs="1" name="qbXMLCountry" type="s:string" />
|
64
|
-
<s:element minOccurs="1" maxOccurs="1" name="qbXMLMajorVers" type="s:int" />
|
65
|
-
<s:element minOccurs="1" maxOccurs="1" name="qbXMLMinorVers" type="s:int" />
|
66
|
-
</s:sequence>
|
67
|
-
</s:complexType>
|
68
|
-
</s:element>
|
69
|
-
<s:element name="sendRequestXMLResponse">
|
70
|
-
<s:complexType>
|
71
|
-
<s:sequence>
|
72
|
-
<s:element minOccurs="0" maxOccurs="1" name="sendRequestXMLResult" type="s:string" />
|
73
|
-
</s:sequence>
|
74
|
-
</s:complexType>
|
75
|
-
</s:element>
|
76
|
-
<s:element name="receiveResponseXML">
|
77
|
-
<s:complexType>
|
78
|
-
<s:sequence>
|
79
|
-
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:string" />
|
80
|
-
<s:element minOccurs="0" maxOccurs="1" name="response" type="s:string" />
|
81
|
-
<s:element minOccurs="0" maxOccurs="1" name="hresult" type="s:string" />
|
82
|
-
<s:element minOccurs="0" maxOccurs="1" name="message" type="s:string" />
|
83
|
-
</s:sequence>
|
84
|
-
</s:complexType>
|
85
|
-
</s:element>
|
86
|
-
<s:element name="receiveResponseXMLResponse">
|
87
|
-
<s:complexType>
|
88
|
-
<s:sequence>
|
89
|
-
<s:element minOccurs="1" maxOccurs="1" name="receiveResponseXMLResult" type="s:int" />
|
90
|
-
</s:sequence>
|
91
|
-
</s:complexType>
|
92
|
-
</s:element>
|
93
|
-
<s:element name="connectionError">
|
94
|
-
<s:complexType>
|
95
|
-
<s:sequence>
|
96
|
-
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:string" />
|
97
|
-
<s:element minOccurs="0" maxOccurs="1" name="hresult" type="s:string" />
|
98
|
-
<s:element minOccurs="0" maxOccurs="1" name="message" type="s:string" />
|
99
|
-
</s:sequence>
|
100
|
-
</s:complexType>
|
101
|
-
</s:element>
|
102
|
-
<s:element name="connectionErrorResponse">
|
103
|
-
<s:complexType>
|
104
|
-
<s:sequence>
|
105
|
-
<s:element minOccurs="0" maxOccurs="1" name="connectionErrorResult" type="s:string" />
|
106
|
-
</s:sequence>
|
107
|
-
</s:complexType>
|
108
|
-
</s:element>
|
109
|
-
<s:element name="getLastError">
|
110
|
-
<s:complexType>
|
111
|
-
<s:sequence>
|
112
|
-
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:string" />
|
113
|
-
</s:sequence>
|
114
|
-
</s:complexType>
|
115
|
-
</s:element>
|
116
|
-
<s:element name="getLastErrorResponse">
|
117
|
-
<s:complexType>
|
118
|
-
<s:sequence>
|
119
|
-
<s:element minOccurs="0" maxOccurs="1" name="getLastErrorResult" type="s:string" />
|
120
|
-
</s:sequence>
|
121
|
-
</s:complexType>
|
122
|
-
</s:element>
|
123
|
-
<s:element name="closeConnection">
|
124
|
-
<s:complexType>
|
125
|
-
<s:sequence>
|
126
|
-
<s:element minOccurs="0" maxOccurs="1" name="ticket" type="s:string" />
|
127
|
-
</s:sequence>
|
128
|
-
</s:complexType>
|
129
|
-
</s:element>
|
130
|
-
<s:element name="closeConnectionResponse">
|
131
|
-
<s:complexType>
|
132
|
-
<s:sequence>
|
133
|
-
<s:element minOccurs="0" maxOccurs="1" name="closeConnectionResult" type="s:string" />
|
134
|
-
</s:sequence>
|
135
|
-
</s:complexType>
|
136
|
-
</s:element>
|
137
|
-
</s:schema>
|
138
|
-
</wsdl:types>
|
139
|
-
|
140
|
-
<wsdl:message name="authenticateSoapIn">
|
141
|
-
<wsdl:part name="parameters" element="tns:authenticate" />
|
142
|
-
</wsdl:message>
|
143
|
-
<wsdl:message name="authenticateSoapOut">
|
144
|
-
<wsdl:part name="parameters" element="tns:authenticateResponse" />
|
145
|
-
</wsdl:message>
|
146
|
-
|
147
|
-
<!-- added this part -->
|
148
|
-
<wsdl:message name="serverVersionSoapIn">
|
149
|
-
<wsdl:part name="parameters" element="tns:serverVersion" />
|
150
|
-
</wsdl:message>
|
151
|
-
<wsdl:message name="serverVersionSoapOut">
|
152
|
-
<wsdl:part name="parameters" element="tns:serverVersionResponse" />
|
153
|
-
</wsdl:message>
|
154
|
-
<wsdl:message name="clientVersionSoapIn">
|
155
|
-
<wsdl:part name="parameters" element="tns:clientVersion" />
|
156
|
-
</wsdl:message>
|
157
|
-
<wsdl:message name="clientVersionSoapOut">
|
158
|
-
<wsdl:part name="parameters" element="tns:clientVersionResponse" />
|
159
|
-
</wsdl:message>
|
160
|
-
|
161
|
-
|
162
|
-
<wsdl:message name="sendRequestXMLSoapIn">
|
163
|
-
<wsdl:part name="parameters" element="tns:sendRequestXML" />
|
164
|
-
</wsdl:message>
|
165
|
-
<wsdl:message name="sendRequestXMLSoapOut">
|
166
|
-
<wsdl:part name="parameters" element="tns:sendRequestXMLResponse" />
|
167
|
-
</wsdl:message>
|
168
|
-
<wsdl:message name="receiveResponseXMLSoapIn">
|
169
|
-
<wsdl:part name="parameters" element="tns:receiveResponseXML" />
|
170
|
-
</wsdl:message>
|
171
|
-
<wsdl:message name="receiveResponseXMLSoapOut">
|
172
|
-
<wsdl:part name="parameters" element="tns:receiveResponseXMLResponse" />
|
173
|
-
</wsdl:message>
|
174
|
-
<wsdl:message name="connectionErrorSoapIn">
|
175
|
-
<wsdl:part name="parameters" element="tns:connectionError" />
|
176
|
-
</wsdl:message>
|
177
|
-
<wsdl:message name="connectionErrorSoapOut">
|
178
|
-
<wsdl:part name="parameters" element="tns:connectionErrorResponse" />
|
179
|
-
</wsdl:message>
|
180
|
-
<wsdl:message name="getLastErrorSoapIn">
|
181
|
-
<wsdl:part name="parameters" element="tns:getLastError" />
|
182
|
-
</wsdl:message>
|
183
|
-
<wsdl:message name="getLastErrorSoapOut">
|
184
|
-
<wsdl:part name="parameters" element="tns:getLastErrorResponse" />
|
185
|
-
</wsdl:message>
|
186
|
-
<wsdl:message name="closeConnectionSoapIn">
|
187
|
-
<wsdl:part name="parameters" element="tns:closeConnection" />
|
188
|
-
</wsdl:message>
|
189
|
-
<wsdl:message name="closeConnectionSoapOut">
|
190
|
-
<wsdl:part name="parameters" element="tns:closeConnectionResponse" />
|
191
|
-
</wsdl:message>
|
192
|
-
<wsdl:portType name="QBWebConnectorSvcSoap">
|
193
|
-
|
194
|
-
<!-- add this chunk -->
|
195
|
-
<wsdl:operation name="serverVersion">
|
196
|
-
<wsdl:input message="tns:serverVersionSoapIn" />
|
197
|
-
<wsdl:output message="tns:serverVersionSoapOut" />
|
198
|
-
</wsdl:operation>
|
199
|
-
<wsdl:operation name="clientVersion">
|
200
|
-
<wsdl:input message="tns:clientVersionSoapIn" />
|
201
|
-
<wsdl:output message="tns:clientVersionSoapOut" />
|
202
|
-
</wsdl:operation>
|
203
|
-
|
204
|
-
|
205
|
-
<wsdl:operation name="authenticate">
|
206
|
-
<wsdl:input message="tns:authenticateSoapIn" />
|
207
|
-
<wsdl:output message="tns:authenticateSoapOut" />
|
208
|
-
</wsdl:operation>
|
209
|
-
<wsdl:operation name="sendRequestXML">
|
210
|
-
<wsdl:input message="tns:sendRequestXMLSoapIn" />
|
211
|
-
<wsdl:output message="tns:sendRequestXMLSoapOut" />
|
212
|
-
</wsdl:operation>
|
213
|
-
<wsdl:operation name="receiveResponseXML">
|
214
|
-
<wsdl:input message="tns:receiveResponseXMLSoapIn" />
|
215
|
-
<wsdl:output message="tns:receiveResponseXMLSoapOut" />
|
216
|
-
</wsdl:operation>
|
217
|
-
<wsdl:operation name="connectionError">
|
218
|
-
<wsdl:input message="tns:connectionErrorSoapIn" />
|
219
|
-
<wsdl:output message="tns:connectionErrorSoapOut" />
|
220
|
-
</wsdl:operation>
|
221
|
-
<wsdl:operation name="getLastError">
|
222
|
-
<wsdl:input message="tns:getLastErrorSoapIn" />
|
223
|
-
<wsdl:output message="tns:getLastErrorSoapOut" />
|
224
|
-
</wsdl:operation>
|
225
|
-
<wsdl:operation name="closeConnection">
|
226
|
-
<wsdl:input message="tns:closeConnectionSoapIn" />
|
227
|
-
<wsdl:output message="tns:closeConnectionSoapOut" />
|
228
|
-
</wsdl:operation>
|
229
|
-
</wsdl:portType>
|
230
|
-
<wsdl:binding name="QBWebConnectorSvcSoap" type="tns:QBWebConnectorSvcSoap">
|
231
|
-
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
|
232
|
-
<!-- this too was added... -->
|
233
|
-
<wsdl:operation name="serverVersion">
|
234
|
-
<soap:operation soapAction="http://developer.intuit.com/serverVersion" style="document" />
|
235
|
-
<wsdl:input>
|
236
|
-
<soap:body use="literal" />
|
237
|
-
</wsdl:input>
|
238
|
-
<wsdl:output>
|
239
|
-
<soap:body use="literal" />
|
240
|
-
</wsdl:output>
|
241
|
-
</wsdl:operation>
|
242
|
-
<wsdl:operation name="clientVersion">
|
243
|
-
<soap:operation soapAction="http://developer.intuit.com/clientVersion" style="document" />
|
244
|
-
<wsdl:input>
|
245
|
-
<soap:body use="literal" />
|
246
|
-
</wsdl:input>
|
247
|
-
<wsdl:output>
|
248
|
-
<soap:body use="literal" />
|
249
|
-
</wsdl:output>
|
250
|
-
</wsdl:operation>
|
251
|
-
|
252
|
-
<wsdl:operation name="authenticate">
|
253
|
-
<soap:operation soapAction="http://developer.intuit.com/authenticate" style="document" />
|
254
|
-
<wsdl:input>
|
255
|
-
<soap:body use="literal" />
|
256
|
-
</wsdl:input>
|
257
|
-
<wsdl:output>
|
258
|
-
<soap:body use="literal" />
|
259
|
-
</wsdl:output>
|
260
|
-
</wsdl:operation>
|
261
|
-
<wsdl:operation name="sendRequestXML">
|
262
|
-
<soap:operation soapAction="http://developer.intuit.com/sendRequestXML" style="document" />
|
263
|
-
<wsdl:input>
|
264
|
-
<soap:body use="literal" />
|
265
|
-
</wsdl:input>
|
266
|
-
<wsdl:output>
|
267
|
-
<soap:body use="literal" />
|
268
|
-
</wsdl:output>
|
269
|
-
</wsdl:operation>
|
270
|
-
<wsdl:operation name="receiveResponseXML">
|
271
|
-
<soap:operation soapAction="http://developer.intuit.com/receiveResponseXML" style="document" />
|
272
|
-
<wsdl:input>
|
273
|
-
<soap:body use="literal" />
|
274
|
-
</wsdl:input>
|
275
|
-
<wsdl:output>
|
276
|
-
<soap:body use="literal" />
|
277
|
-
</wsdl:output>
|
278
|
-
</wsdl:operation>
|
279
|
-
<wsdl:operation name="connectionError">
|
280
|
-
<soap:operation soapAction="http://developer.intuit.com/connectionError" style="document" />
|
281
|
-
<wsdl:input>
|
282
|
-
<soap:body use="literal" />
|
283
|
-
</wsdl:input>
|
284
|
-
<wsdl:output>
|
285
|
-
<soap:body use="literal" />
|
286
|
-
</wsdl:output>
|
287
|
-
</wsdl:operation>
|
288
|
-
<wsdl:operation name="getLastError">
|
289
|
-
<soap:operation soapAction="http://developer.intuit.com/getLastError" style="document" />
|
290
|
-
<wsdl:input>
|
291
|
-
<soap:body use="literal" />
|
292
|
-
</wsdl:input>
|
293
|
-
<wsdl:output>
|
294
|
-
<soap:body use="literal" />
|
295
|
-
</wsdl:output>
|
296
|
-
</wsdl:operation>
|
297
|
-
<wsdl:operation name="closeConnection">
|
298
|
-
<soap:operation soapAction="http://developer.intuit.com/closeConnection" style="document" />
|
299
|
-
<wsdl:input>
|
300
|
-
<soap:body use="literal" />
|
301
|
-
</wsdl:input>
|
302
|
-
<wsdl:output>
|
303
|
-
<soap:body use="literal" />
|
304
|
-
</wsdl:output>
|
305
|
-
</wsdl:operation>
|
306
|
-
</wsdl:binding>
|
307
|
-
<wsdl:service name="QBWebConnectorSvc">
|
308
|
-
<wsdl:port name="QBWebConnectorSvcSoap" binding="tns:QBWebConnectorSvcSoap">
|
309
|
-
<soap:address location="https://idn.vogelfam.net/QBMSDonorSample/QBWebConnectorSvc.asmx" />
|
310
|
-
</wsdl:port>
|
311
|
-
</wsdl:service>
|
312
|
-
</wsdl:definitions>
|
@@ -1,198 +0,0 @@
|
|
1
|
-
require 'xsd/qname'
|
2
|
-
|
3
|
-
# {http://developer.intuit.com/}ArrayOfString
|
4
|
-
class ArrayOfString < ::Array
|
5
|
-
end
|
6
|
-
|
7
|
-
# {http://developer.intuit.com/}authenticate
|
8
|
-
# strUserName - SOAP::SOAPString
|
9
|
-
# strPassword - SOAP::SOAPString
|
10
|
-
class QBWC::Authenticate
|
11
|
-
attr_accessor :strUserName
|
12
|
-
attr_accessor :strPassword
|
13
|
-
|
14
|
-
def initialize(strUserName = nil, strPassword = nil)
|
15
|
-
@strUserName = strUserName
|
16
|
-
@strPassword = strPassword
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
# {http://developer.intuit.com/}authenticateResponse
|
21
|
-
# authenticateResult - ArrayOfString
|
22
|
-
class QBWC::AuthenticateResponse
|
23
|
-
attr_accessor :authenticateResult
|
24
|
-
|
25
|
-
def initialize(authenticateResult = nil)
|
26
|
-
@authenticateResult = authenticateResult
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
30
|
-
# {http://developer.intuit.com/}serverVersion
|
31
|
-
# strVersion - SOAP::SOAPString
|
32
|
-
class QBWC::ServerVersion
|
33
|
-
attr_accessor :strVersion
|
34
|
-
|
35
|
-
def initialize(strVersion = nil)
|
36
|
-
@strVersion = strVersion
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
# {http://developer.intuit.com/}serverVersionResponse
|
41
|
-
# serverVersionResult - SOAP::SOAPString
|
42
|
-
class QBWC::ServerVersionResponse
|
43
|
-
attr_accessor :serverVersionResult
|
44
|
-
|
45
|
-
def initialize(serverVersionResult = nil)
|
46
|
-
@serverVersionResult = serverVersionResult
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
|
-
# {http://developer.intuit.com/}clientVersion
|
51
|
-
# strVersion - SOAP::SOAPString
|
52
|
-
class QBWC::ClientVersion
|
53
|
-
attr_accessor :strVersion
|
54
|
-
|
55
|
-
def initialize(strVersion = nil)
|
56
|
-
@strVersion = strVersion
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
# {http://developer.intuit.com/}clientVersionResponse
|
61
|
-
# clientVersionResult - SOAP::SOAPString
|
62
|
-
class QBWC::ClientVersionResponse
|
63
|
-
attr_accessor :clientVersionResult
|
64
|
-
|
65
|
-
def initialize(clientVersionResult = nil)
|
66
|
-
@clientVersionResult = clientVersionResult
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
# {http://developer.intuit.com/}sendRequestXML
|
71
|
-
# ticket - SOAP::SOAPString
|
72
|
-
# strHCPResponse - SOAP::SOAPString
|
73
|
-
# strCompanyFileName - SOAP::SOAPString
|
74
|
-
# qbXMLCountry - SOAP::SOAPString
|
75
|
-
# qbXMLMajorVers - SOAP::SOAPInt
|
76
|
-
# qbXMLMinorVers - SOAP::SOAPInt
|
77
|
-
class QBWC::SendRequestXML
|
78
|
-
attr_accessor :ticket
|
79
|
-
attr_accessor :strHCPResponse
|
80
|
-
attr_accessor :strCompanyFileName
|
81
|
-
attr_accessor :qbXMLCountry
|
82
|
-
attr_accessor :qbXMLMajorVers
|
83
|
-
attr_accessor :qbXMLMinorVers
|
84
|
-
|
85
|
-
def initialize(ticket = nil, strHCPResponse = nil, strCompanyFileName = nil, qbXMLCountry = nil, qbXMLMajorVers = nil, qbXMLMinorVers = nil)
|
86
|
-
@ticket = ticket
|
87
|
-
@strHCPResponse = strHCPResponse
|
88
|
-
@strCompanyFileName = strCompanyFileName
|
89
|
-
@qbXMLCountry = qbXMLCountry
|
90
|
-
@qbXMLMajorVers = qbXMLMajorVers
|
91
|
-
@qbXMLMinorVers = qbXMLMinorVers
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
# {http://developer.intuit.com/}sendRequestXMLResponse
|
96
|
-
# sendRequestXMLResult - SOAP::SOAPString
|
97
|
-
class QBWC::SendRequestXMLResponse
|
98
|
-
attr_accessor :sendRequestXMLResult
|
99
|
-
|
100
|
-
def initialize(sendRequestXMLResult = nil)
|
101
|
-
@sendRequestXMLResult = sendRequestXMLResult
|
102
|
-
end
|
103
|
-
end
|
104
|
-
|
105
|
-
# {http://developer.intuit.com/}receiveResponseXML
|
106
|
-
# ticket - SOAP::SOAPString
|
107
|
-
# response - SOAP::SOAPString
|
108
|
-
# hresult - SOAP::SOAPString
|
109
|
-
# message - SOAP::SOAPString
|
110
|
-
class QBWC::ReceiveResponseXML
|
111
|
-
attr_accessor :ticket
|
112
|
-
attr_accessor :response
|
113
|
-
attr_accessor :hresult
|
114
|
-
attr_accessor :message
|
115
|
-
|
116
|
-
def initialize(ticket = nil, response = nil, hresult = nil, message = nil)
|
117
|
-
@ticket = ticket
|
118
|
-
@response = response
|
119
|
-
@hresult = hresult
|
120
|
-
@message = message
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
# {http://developer.intuit.com/}receiveResponseXMLResponse
|
125
|
-
# receiveResponseXMLResult - SOAP::SOAPInt
|
126
|
-
class QBWC::ReceiveResponseXMLResponse
|
127
|
-
attr_accessor :receiveResponseXMLResult
|
128
|
-
|
129
|
-
def initialize(receiveResponseXMLResult = nil)
|
130
|
-
@receiveResponseXMLResult = receiveResponseXMLResult
|
131
|
-
end
|
132
|
-
end
|
133
|
-
|
134
|
-
# {http://developer.intuit.com/}connectionError
|
135
|
-
# ticket - SOAP::SOAPString
|
136
|
-
# hresult - SOAP::SOAPString
|
137
|
-
# message - SOAP::SOAPString
|
138
|
-
class QBWC::ConnectionError
|
139
|
-
attr_accessor :ticket
|
140
|
-
attr_accessor :hresult
|
141
|
-
attr_accessor :message
|
142
|
-
|
143
|
-
def initialize(ticket = nil, hresult = nil, message = nil)
|
144
|
-
@ticket = ticket
|
145
|
-
@hresult = hresult
|
146
|
-
@message = message
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
|
-
# {http://developer.intuit.com/}connectionErrorResponse
|
151
|
-
# connectionErrorResult - SOAP::SOAPString
|
152
|
-
class QBWC::ConnectionErrorResponse
|
153
|
-
attr_accessor :connectionErrorResult
|
154
|
-
|
155
|
-
def initialize(connectionErrorResult = nil)
|
156
|
-
@connectionErrorResult = connectionErrorResult
|
157
|
-
end
|
158
|
-
end
|
159
|
-
|
160
|
-
# {http://developer.intuit.com/}getLastError
|
161
|
-
# ticket - SOAP::SOAPString
|
162
|
-
class QBWC::GetLastError
|
163
|
-
attr_accessor :ticket
|
164
|
-
|
165
|
-
def initialize(ticket = nil)
|
166
|
-
@ticket = ticket
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
# {http://developer.intuit.com/}getLastErrorResponse
|
171
|
-
# getLastErrorResult - SOAP::SOAPString
|
172
|
-
class QBWC::GetLastErrorResponse
|
173
|
-
attr_accessor :getLastErrorResult
|
174
|
-
|
175
|
-
def initialize(getLastErrorResult = nil)
|
176
|
-
@getLastErrorResult = getLastErrorResult
|
177
|
-
end
|
178
|
-
end
|
179
|
-
|
180
|
-
# {http://developer.intuit.com/}closeConnection
|
181
|
-
# ticket - SOAP::SOAPString
|
182
|
-
class QBWC::CloseConnection
|
183
|
-
attr_accessor :ticket
|
184
|
-
|
185
|
-
def initialize(ticket = nil)
|
186
|
-
@ticket = ticket
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
# {http://developer.intuit.com/}closeConnectionResponse
|
191
|
-
# closeConnectionResult - SOAP::SOAPString
|
192
|
-
class QBWC::CloseConnectionResponse
|
193
|
-
attr_accessor :closeConnectionResult
|
194
|
-
|
195
|
-
def initialize(closeConnectionResult = nil)
|
196
|
-
@closeConnectionResult = closeConnectionResult
|
197
|
-
end
|
198
|
-
end
|