powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Помогите распарсить
10 сообщений из 10, страница 1 из 1
Помогите распарсить
    #39288873
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Прошу ссылки на сайт оракла не кидать, я там был уже и на ихнем примере делал! Пытаюсь распарсить, ошибка в синтаксисе, скорее всего не так парсю, помогите пожалуйста люди добрые, я знаю вы умные, мегамозгыыыы!!!

Код: plsql
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.
WITH DATA AS (SELECT '
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                                      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                       <soapenv:Header/>
                       <soapenv:Body>
                          <pay:getAlsecoInvoicesResponse xmlns:pay="http://MultyPay_Alseco/MultyPay">
                             <out>
                                <bankcode/>
                                <response>
                                   <inputValue>9154230</inputValue>
                                   <state>Success</state>
                                   <accountInvoices>
                                      <accountId>9154230</accountId>
                                      <accountName>МАГЗУМ БУЛАТ КУБЕНОВИЧ</accountName>
                                      <accountAddress>Алматы ќ.|г.Алматы, ыќш.ауд.|м-он "Жас Ќанат" ?й|д.1/22 п?тер|кв.22</accountAddress>
                                      <calculationParameters>
                                         <CalculationParameter>
                                            <parameterId>1</parameterId>
                                            <parameterName>Количество проживающих</parameterName>
                                            <parameterValue>4.000</parameterValue>
                                         </CalculationParameter>
                                         <CalculationParameter>
                                            <parameterId>2</parameterId>
                                            <parameterName>Отапливаемая площадь</parameterName>
                                            <parameterValue>63.500</parameterValue>
                                         </CalculationParameter>
                                      </calculationParameters>
                                      </Invoices>
                                   </accountInvoices>
                                </response>
                             </out>
                          </pay:getAlsecoInvoicesResponse>
                       </soapenv:Body>
                    </soapenv:Envelope>'
 xml FROM dual)
  SELECT *
    FROM data,
         xmltable(XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv",
                                 'http://MultyPay_Alseco/MultyPay' AS "pay"),
                  '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response/'
                  PASSING XMLTYPE(xml)
                  COLUMNS
                    inputValue varchar(255) PATH 'inputValue',
                    state      varchar(255) PATH 'state');
...
Рейтинг: 0 / 0
Помогите распарсить
    #39288893
K790
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Askat,

Код: plsql
1.
'soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response'



ну и провалидировать на тег <Invoices>
...
Рейтинг: 0 / 0
Помогите распарсить
    #39288910
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
K790Askat,

Код: plsql
1.
'soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response'



ну и провалидировать на тег <Invoices>


Invoices был лишним, убрал, теперь ругается на скобку!


Код: plsql
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.
WITH DATA1 AS (SELECT xmltype ('<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                                      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                       <soapenv:Header/>
                       <soapenv:Body>
                          <pay:getAlsecoInvoicesResponse xmlns:pay="http://MultyPay_Alseco/MultyPay">
                             <out>
                                <bankcode/>
                                <response>
                                   <inputValue>9154230</inputValue>
                                   <state>Success</state>
                                   <accountInvoices>
                                      <accountId>9154230</accountId>
                                      <accountName>МАГЗУМ БУЛАТ КУБЕНОВИЧ</accountName>
                                      <accountAddress>Алматы ќ.|г.Алматы, ыќш.ауд.|м-он "Жас Ќанат" ?й|д.1/22 п?тер|кв.22</accountAddress>
                                      <calculationParameters>
                                         <CalculationParameter>
                                            <parameterId>1</parameterId>
                                            <parameterName>Количество проживающих</parameterName>
                                            <parameterValue>4.000</parameterValue>
                                         </CalculationParameter>
                                         <CalculationParameter>
                                            <parameterId>2</parameterId>
                                            <parameterName>Отапливаемая площадь</parameterName>
                                            <parameterValue>63.500</parameterValue>
                                         </CalculationParameter>
                                      </calculationParameters>
                                   </accountInvoices>
                                </response>
                             </out>
                          </pay:getAlsecoInvoicesResponse>
                       </soapenv:Body>
                    </soapenv:Envelope>') xmldoc FROM dual)
  SELECT *
    FROM data1 t,
         xmltable(XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv", 
         default 'http://MultyPay_Alseco/MultyPay' as "pay"), 
         '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response/'
                  PASSING t.xmldoc
                  COLUMNS
                    inputValue varchar(255) PATH 'inputValue',
                    state      varchar(255) PATH 'state') x1;
...
Рейтинг: 0 / 0
Помогите распарсить
    #39288924
Фотография andrey_anonymous
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plsql
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.
WITH DATA AS (SELECT '
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                                      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                       <soapenv:Header/>
                       <soapenv:Body>
                          <pay:getAlsecoInvoicesResponse xmlns:pay="http://MultyPay_Alseco/MultyPay">
                             <out>
                                <bankcode/>
                                <response>
                                   <inputValue>9154230</inputValue>
                                   <state>Success</state>
                                   <accountInvoices>
                                      <accountId>9154230</accountId>
                                      <accountName>МАГЗУМ БУЛАТ КУБЕНОВИЧ</accountName>
                                      <accountAddress>Алматы ќ.|г.Алматы, ыќш.ауд.|м-он "Жас Ќанат" ?й|д.1/22 п?тер|кв.22</accountAddress>
                                      <calculationParameters>
                                         <CalculationParameter>
                                            <parameterId>1</parameterId>
                                            <parameterName>Количество проживающих</parameterName>
                                            <parameterValue>4.000</parameterValue>
                                         </CalculationParameter>
                                         <CalculationParameter>
                                            <parameterId>2</parameterId>
                                            <parameterName>Отапливаемая площадь</parameterName>
                                            <parameterValue>63.500</parameterValue>
                                         </CalculationParameter>
                                      </calculationParameters>
                                   </accountInvoices>
                                </response>
                             </out>
                          </pay:getAlsecoInvoicesResponse>
                       </soapenv:Body>
    </soapenv:Envelope>'
 xml FROM dual)
  SELECT  x.*
    FROM data,
         xmltable(XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv",
                                 'http://MultyPay_Alseco/MultyPay' AS "pay"),
                '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response'
                  PASSING XMLTYPE(xml)
                  COLUMNS
                    inputValue varchar(255) PATH 'inputValue',
                    state      varchar(255) PATH 'state'
) x
                    ;
...
Рейтинг: 0 / 0
Помогите распарсить
    #39288930
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
andrey_anonymous
Код: plsql
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.
WITH DATA AS (SELECT '
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                                      xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                       <soapenv:Header/>
                       <soapenv:Body>
                          <pay:getAlsecoInvoicesResponse xmlns:pay="http://MultyPay_Alseco/MultyPay">
                             <out>
                                <bankcode/>
                                <response>
                                   <inputValue>9154230</inputValue>
                                   <state>Success</state>
                                   <accountInvoices>
                                      <accountId>9154230</accountId>
                                      <accountName>МАГЗУМ БУЛАТ КУБЕНОВИЧ</accountName>
                                      <accountAddress>Алматы ќ.|г.Алматы, ыќш.ауд.|м-он "Жас Ќанат" ?й|д.1/22 п?тер|кв.22</accountAddress>
                                      <calculationParameters>
                                         <CalculationParameter>
                                            <parameterId>1</parameterId>
                                            <parameterName>Количество проживающих</parameterName>
                                            <parameterValue>4.000</parameterValue>
                                         </CalculationParameter>
                                         <CalculationParameter>
                                            <parameterId>2</parameterId>
                                            <parameterName>Отапливаемая площадь</parameterName>
                                            <parameterValue>63.500</parameterValue>
                                         </CalculationParameter>
                                      </calculationParameters>
                                   </accountInvoices>
                                </response>
                             </out>
                          </pay:getAlsecoInvoicesResponse>
                       </soapenv:Body>
    </soapenv:Envelope>'
 xml FROM dual)
  SELECT  x.*
    FROM data,
         xmltable(XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv",
                                 'http://MultyPay_Alseco/MultyPay' AS "pay"),
                '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response'
                  PASSING XMLTYPE(xml)
                  COLUMNS
                    inputValue varchar(255) PATH 'inputValue',
                    state      varchar(255) PATH 'state'
) x
                    ;




Пасыба учытел! я знал, что ты МегамозГ!!!!
...
Рейтинг: 0 / 0
Помогите распарсить
    #39289635
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Ошибка выходит: String litteral to lon! Не могу понять, в чем проблема!!!!

Код: plsql
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.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
160.
161.
162.
163.
164.
165.
166.
167.
168.
169.
170.
171.
172.
173.
174.
175.
176.
177.
178.
179.
180.
181.
182.
183.
184.
185.
186.
187.
188.
189.
190.
191.
192.
193.
194.
195.
196.
197.
198.
199.
200.
201.
202.
203.
204.
205.
206.
207.
208.
209.
210.
211.
212.
213.
214.
215.
216.
217.
218.
219.
220.
221.
222.
223.
224.
225.
226.
227.
228.
229.
230.
231.
232.
233.
234.
235.
236.
237.
238.
239.
240.
241.
242.
243.
244.
245.
246.
247.
248.
249.
250.
251.
252.
253.
254.
255.
256.
257.
258.
259.
260.
261.
262.
263.
264.
265.
266.
267.
268.
269.
270.
271.
272.
273.
274.
275.
276.
277.
278.
279.
280.
281.
282.
283.
284.
285.
286.
287.
288.
289.
290.
291.
292.
293.
294.
295.
296.
297.
298.
299.
300.
301.
302.
303.
304.
305.
306.
307.
308.
309.
310.
311.
312.
313.
314.
315.
316.
317.
318.
319.
320.
321.
322.
323.
324.
325.
326.
327.
328.
329.
330.
331.
332.
333.
334.
335.
336.
337.
338.
339.
340.
341.
342.
343.
344.
345.
346.
347.
348.
349.
350.
351.
352.
353.
354.
355.
356.
357.
358.
359.
360.
WITH DATA AS 
       (SELECT '
                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                     <soapenv:Header/>
                     <soapenv:Body>
                        <pay:getAlsecoInvoicesResponse xmlns:pay="http://MultyPay_Alseco/MultyPay">
                           <out>
                              <bankcode/>
                              <response>
                                 <inputValue>9154230</inputValue>
                                 <state>Success</state>
                                 <accountInvoices>
                                    <accountId>9154230</accountId>
                                    <accountName>МАГЗУМ БУЛАТ КУБЕНОВИЧ</accountName>
                                    <accountAddress>Алматы ќ.|г.Алматы, ыќш.ауд.|м-он "Жас Ќанат" ?й|д.1/22 п?тер|кв.22</accountAddress>
                                    <calculationParameters>
                                       <CalculationParameter>
                                          <parameterId>1</parameterId>
                                          <parameterName>Количество проживающих</parameterName>
                                          <parameterValue>4.000</parameterValue>
                                       </CalculationParameter>
                                       <CalculationParameter>
                                          <parameterId>2</parameterId>
                                          <parameterName>Отапливаемая площадь</parameterName>
                                          <parameterValue>63.500</parameterValue>
                                       </CalculationParameter>
                                    </calculationParameters>
                                    <Invoices>
                                       <InvoiceReNew>
                                          <invoiceId>160511182365</invoiceId>
                                          <formedYear>2016</formedYear>
                                          <formedMonth>5</formedMonth>
                                          <formedDate>2016-05-07T22:54:00Z</formedDate>
                                          <expireDate>2016-05-31T00:00:00Z</expireDate>
                                          <invoiceParameters>
                                             <InvoiceParametrsReNew>
                                                <serviceId>13</serviceId>
                                                <serviceName>Электр ќуаты | Электр. энергия</serviceName>
                                                <isCounterService>true</isCounterService>
                                                <measure xsi:nil="true"/>
                                                <checkCount>
                                                   <lastCount>
                                                      <lastCountAbonent xsi:nil="true"/>
                                                      <lastCountAlseco xsi:nil="true"/>
                                                      <lastCountDateAbonent>2016-08-09T15:40:00Z</lastCountDateAbonent>
                                                      <lastCountDateAlseco xsi:nil="true"/>
                                                   </lastCount>
                                                   <prevCount>
                                                      <prevCountAbonent xsi:nil="true"/>
                                                      <prevCountAlseco xsi:nil="true"/>
                                                      <prevCountDateAbonent xsi:nil="true"/>
                                                      <prevCountDateAlseco xsi:nil="true"/>
                                                   </prevCount>
                                                   <quantityCount>
                                                      <quantityCount xsi:nil="true"/>
                                                      <minQuantityCount xsi:nil="true"/>
                                                      <maxQuantityCount xsi:nil="true"/>
                                                      <lossesCount xsi:nil="true"/>
                                                      <middleQuantityCount xsi:nil="true"/>
                                                   </quantityCount>
                                                </checkCount>
                                                <tariff>
                                                   <MinTariffValue>16.02</MinTariffValue>
                                                   <MaxTariffValue>27.05</MaxTariffValue>
                                                   <MinTariffThreshold>115</MinTariffThreshold>
                                                   <MiddleTariffValue>21.64</MiddleTariffValue>
                                                   <MiddleTariffThreshold>190</MiddleTariffThreshold>
                                                </tariff>
                                                <calc>
                                                   <Calc xsi:nil="true"/>
                                                   <MinCalc xsi:nil="true"/>
                                                   <MaxCalc xsi:nil="true"/>
                                                   <MiddleCalc xsi:nil="true"/>
                                                </calc>
                                                <ExpireDateInfo xsi:nil="true"/>
                                                <avgPaySum>0.00</avgPaySum>
                                                <avgCount>0.000</avgCount>
                                                <lastCount>0.000</lastCount>
                                                <prevCount>0.000</prevCount>
                                                <fixCount>0.000</fixCount>
                                                <fixSum>0.00</fixSum>
                                                <debtInfo>арт.т?лен переп. 0.00</debtInfo>
                                                <debtSum>0.00</debtSum>
                                                <debtSumAbonent xsi:nil="true"/>
                                                <peniSum xsi:nil="true"/>
                                                <TKoef>1.00</TKoef>
                                                <reCalc>
                                                   <ReCalcKvtCount xsi:nil="true"/>
                                                   <ReCalcSum xsi:nil="true"/>
                                                </reCalc>
                                                <prevCountDate xsi:nil="true"/>
                                             </InvoiceParametrsReNew>
                                             <InvoiceParametrsReNew>
                                                <serviceId>8</serviceId>
                                                <serviceName>Жылыту | Отопление</serviceName>
                                                <isCounterService>false</isCounterService>
                                                <measure xsi:nil="true"/>
                                                <checkCount>
                                                   <lastCount>
                                                      <lastCountAbonent xsi:nil="true"/>
                                                      <lastCountAlseco xsi:nil="true"/>
                                                      <lastCountDateAbonent>2016-08-09T15:40:00Z</lastCountDateAbonent>
                                                      <lastCountDateAlseco xsi:nil="true"/>
                                                   </lastCount>
                                                   <prevCount>
                                                      <prevCountAbonent xsi:nil="true"/>
                                                      <prevCountAlseco xsi:nil="true"/>
                                                      <prevCountDateAbonent xsi:nil="true"/>
                                                      <prevCountDateAlseco xsi:nil="true"/>
                                                   </prevCount>
                                                   <quantityCount>
                                                      <quantityCount xsi:nil="true"/>
                                                      <minQuantityCount xsi:nil="true"/>
                                                      <maxQuantityCount xsi:nil="true"/>
                                                      <lossesCount xsi:nil="true"/>
                                                      <middleQuantityCount xsi:nil="true"/>
                                                   </quantityCount>
                                                </checkCount>
                                                <tariff>
                                                   <MinTariffValue>0.00</MinTariffValue>
                                                   <MaxTariffValue>0.00</MaxTariffValue>
                                                   <MinTariffThreshold>0.00</MinTariffThreshold>
                                                   <MiddleTariffValue>0.00</MiddleTariffValue>
                                                   <MiddleTariffThreshold>0.00</MiddleTariffThreshold>
                                                </tariff>
                                                <calc>
                                                   <Calc xsi:nil="true"/>
                                                   <MinCalc xsi:nil="true"/>
                                                   <MaxCalc xsi:nil="true"/>
                                                   <MiddleCalc xsi:nil="true"/>
                                                </calc>
                                                <ExpireDateInfo xsi:nil="true"/>
                                                <avgPaySum>0.00</avgPaySum>
                                                <avgCount>0.000</avgCount>
                                                <lastCount>0.000</lastCount>
                                                <prevCount>0.000</prevCount>
                                                <fixCount>0.000</fixCount>
                                                <fixSum>7321.38</fixSum>
                                                <debtInfo>ќалдыќ|остаток 7315.90</debtInfo>
                                                <debtSum xsi:nil="true"/>
                                                <debtSumAbonent xsi:nil="true"/>
                                                <peniSum>5.48</peniSum>
                                                <TKoef>1.00</TKoef>
                                                <reCalc>
                                                   <ReCalcKvtCount xsi:nil="true"/>
                                                   <ReCalcSum xsi:nil="true"/>
                                                </reCalc>
                                                <prevCountDate xsi:nil="true"/>
                                             </InvoiceParametrsReNew>
                                             <InvoiceParametrsReNew>
                                                <serviceId>14</serviceId>
                                                <serviceName>Ыстыќ су, Есептеуіш | Гор. вода, Счётчик</serviceName>
                                                <isCounterService>true</isCounterService>
                                                <measure>тг/м3</measure>
                                                <checkCount>
                                                   <lastCount>
                                                      <lastCountAbonent xsi:nil="true"/>
                                                      <lastCountAlseco>0.000</lastCountAlseco>
                                                      <lastCountDateAbonent>2016-08-09T15:40:00Z</lastCountDateAbonent>
                                                      <lastCountDateAlseco xsi:nil="true"/>
                                                   </lastCount>
                                                   <prevCount>
                                                      <prevCountAbonent>0.000</prevCountAbonent>
                                                      <prevCountAlseco>0.000</prevCountAlseco>
                                                      <prevCountDateAbonent xsi:nil="true"/>
                                                      <prevCountDateAlseco xsi:nil="true"/>
                                                   </prevCount>
                                                   <quantityCount>
                                                      <quantityCount>0.000000</quantityCount>
                                                      <minQuantityCount xsi:nil="true"/>
                                                      <maxQuantityCount xsi:nil="true"/>
                                                      <lossesCount xsi:nil="true"/>
                                                      <middleQuantityCount xsi:nil="true"/>
                                                   </quantityCount>
                                                </checkCount>
                                                <tariff>
                                                   <MinTariffValue>385.73</MinTariffValue>
                                                   <MaxTariffValue>0.00</MaxTariffValue>
                                                   <MinTariffThreshold>0.00</MinTariffThreshold>
                                                   <MiddleTariffValue>0.00</MiddleTariffValue>
                                                   <MiddleTariffThreshold>0.00</MiddleTariffThreshold>
                                                </tariff>
                                                <calc>
                                                   <Calc>0.00</Calc>
                                                   <MinCalc xsi:nil="true"/>
                                                   <MaxCalc xsi:nil="true"/>
                                                   <MiddleCalc xsi:nil="true"/>
                                                </calc>
                                                <ExpireDateInfo xsi:nil="true"/>
                                                <avgPaySum>0.00</avgPaySum>
                                                <avgCount>0.000</avgCount>
                                                <lastCount>0.000</lastCount>
                                                <prevCount>0.000</prevCount>
                                                <fixCount>0.000</fixCount>
                                                <fixSum>0.00</fixSum>
                                                <debtInfo xsi:nil="true"/>
                                                <debtSum xsi:nil="true"/>
                                                <debtSumAbonent xsi:nil="true"/>
                                                <peniSum xsi:nil="true"/>
                                                <TKoef>1.00</TKoef>
                                                <reCalc>
                                                   <ReCalcKvtCount xsi:nil="true"/>
                                                   <ReCalcSum xsi:nil="true"/>
                                                </reCalc>
                                                <prevCountDate xsi:nil="true"/>
                                             </InvoiceParametrsReNew>
                                             <InvoiceParametrsReNew>
                                                <serviceId>82</serviceId>
                                                <serviceName>Кіреберісті тазалау | Уборка подъездов</serviceName>
                                                <isCounterService>false</isCounterService>
                                                <measure>тг/пјт| тг/квар</measure>
                                                <checkCount>
                                                   <lastCount>
                                                      <lastCountAbonent xsi:nil="true"/>
                                                      <lastCountAlseco xsi:nil="true"/>
                                                      <lastCountDateAbonent>2016-08-09T15:40:00Z</lastCountDateAbonent>
                                                      <lastCountDateAlseco xsi:nil="true"/>
                                                   </lastCount>
                                                   <prevCount>
                                                      <prevCountAbonent xsi:nil="true"/>
                                                      <prevCountAlseco xsi:nil="true"/>
                                                      <prevCountDateAbonent xsi:nil="true"/>
                                                      <prevCountDateAlseco xsi:nil="true"/>
                                                   </prevCount>
                                                   <quantityCount>
                                                      <quantityCount xsi:nil="true"/>
                                                      <minQuantityCount xsi:nil="true"/>
                                                      <maxQuantityCount xsi:nil="true"/>
                                                      <lossesCount xsi:nil="true"/>
                                                      <middleQuantityCount xsi:nil="true"/>
                                                   </quantityCount>
                                                </checkCount>
                                                <tariff>
                                                   <MinTariffValue>300.00</MinTariffValue>
                                                   <MaxTariffValue>0.00</MaxTariffValue>
                                                   <MinTariffThreshold>0.00</MinTariffThreshold>
                                                   <MiddleTariffValue>0.00</MiddleTariffValue>
                                                   <MiddleTariffThreshold>0.00</MiddleTariffThreshold>
                                                </tariff>
                                                <calc>
                                                   <Calc>300.00</Calc>
                                                   <MinCalc xsi:nil="true"/>
                                                   <MaxCalc xsi:nil="true"/>
                                                   <MiddleCalc xsi:nil="true"/>
                                                </calc>
                                                <ExpireDateInfo xsi:nil="true"/>
                                                <avgPaySum>0.00</avgPaySum>
                                                <avgCount>0.000</avgCount>
                                                <lastCount>0.000</lastCount>
                                                <prevCount>0.000</prevCount>
                                                <fixCount>0.000</fixCount>
                                                <fixSum>300.00</fixSum>
                                                <debtInfo xsi:nil="true"/>
                                                <debtSum xsi:nil="true"/>
                                                <debtSumAbonent xsi:nil="true"/>
                                                <peniSum xsi:nil="true"/>
                                                <TKoef>1.00</TKoef>
                                                <reCalc>
                                                   <ReCalcKvtCount xsi:nil="true"/>
                                                   <ReCalcSum xsi:nil="true"/>
                                                </reCalc>
                                                <prevCountDate xsi:nil="true"/>
                                             </InvoiceParametrsReNew>
                                             <InvoiceParametrsReNew>
                                                <serviceId>11</serviceId>
                                                <serviceName>ЌТЌ шыєару | Вывоз ТБО</serviceName>
                                                <isCounterService>false</isCounterService>
                                                <measure>тг/ад.| тг/чел</measure>
                                                <checkCount>
                                                   <lastCount>
                                                      <lastCountAbonent xsi:nil="true"/>
                                                      <lastCountAlseco xsi:nil="true"/>
                                                      <lastCountDateAbonent>2016-08-09T15:40:00Z</lastCountDateAbonent>
                                                      <lastCountDateAlseco xsi:nil="true"/>
                                                   </lastCount>
                                                   <prevCount>
                                                      <prevCountAbonent xsi:nil="true"/>
                                                      <prevCountAlseco xsi:nil="true"/>
                                                      <prevCountDateAbonent xsi:nil="true"/>
                                                      <prevCountDateAlseco xsi:nil="true"/>
                                                   </prevCount>
                                                   <quantityCount>
                                                      <quantityCount xsi:nil="true"/>
                                                      <minQuantityCount xsi:nil="true"/>
                                                      <maxQuantityCount xsi:nil="true"/>
                                                      <lossesCount xsi:nil="true"/>
                                                      <middleQuantityCount xsi:nil="true"/>
                                                   </quantityCount>
                                                </checkCount>
                                                <tariff>
                                                   <MinTariffValue>300.00</MinTariffValue>
                                                   <MaxTariffValue>0.00</MaxTariffValue>
                                                   <MinTariffThreshold>0.00</MinTariffThreshold>
                                                   <MiddleTariffValue>0.00</MiddleTariffValue>
                                                   <MiddleTariffThreshold>0.00</MiddleTariffThreshold>
                                                </tariff>
                                                <calc>
                                                   <Calc>1200.00</Calc>
                                                   <MinCalc xsi:nil="true"/>
                                                   <MaxCalc xsi:nil="true"/>
                                                   <MiddleCalc xsi:nil="true"/>
                                                </calc>
                                                <ExpireDateInfo xsi:nil="true"/>
                                                <avgPaySum>0.00</avgPaySum>
                                                <avgCount>0.000</avgCount>
                                                <lastCount>0.000</lastCount>
                                                <prevCount>0.000</prevCount>
                                                <fixCount>0.000</fixCount>
                                                <fixSum>1200.00</fixSum>
                                                <debtInfo xsi:nil="true"/>
                                                <debtSum xsi:nil="true"/>
                                                <debtSumAbonent xsi:nil="true"/>
                                                <peniSum xsi:nil="true"/>
                                                <TKoef>1.00</TKoef>
                                                <reCalc>
                                                   <ReCalcKvtCount xsi:nil="true"/>
                                                   <ReCalcSum xsi:nil="true"/>
                                                </reCalc>
                                                <prevCountDate xsi:nil="true"/>
                                             </InvoiceParametrsReNew>
                                          </invoiceParameters>
                                       </InvoiceReNew>
                                    </Invoices>
                                 </accountInvoices>
                              </response>
                           </out>
                        </pay:getAlsecoInvoicesResponse>
                     </soapenv:Body>
                  </soapenv:Envelope>
     ' xml FROM dual)
                    
  SELECT  x.*, x1.*, x2.*
    FROM data l,
         xmltable(
                 XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv", 'http://MultyPay_Alseco/MultyPay' AS "pay"),
                '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response'
                  PASSING XMLTYPE(xml)
                  COLUMNS
                    inputValue      varchar(255) PATH 'inputValue',
                    state           varchar(255) PATH 'state'
                  ) x,
         xmltable(
                 XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv", 'http://MultyPay_Alseco/MultyPay' AS "pay"),
                '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response/accountInvoices'
                  PASSING XMLTYPE(xml)               
                  COLUMNS
                    accountId       varchar(255) PATH 'accountId',
                    accountName     varchar(255) PATH 'accountName',
                    accountAddress  varchar(255) PATH 'accountAddress'
                  ) x1,     
         xmltable(
                 XMLNamespaces ('http://schemas.xmlsoap.org/soap/envelope/' AS "soapenv",  'http://MultyPay_Alseco/MultyPay' AS "pay"),
                '/soapenv:Envelope/soapenv:Body/pay:getAlsecoInvoicesResponse/out/response/accountInvoices/calculationParameters/CalculationParameter'
                  PASSING XMLTYPE(xml)               
                  COLUMNS
                    parameterId       varchar(255) PATH 'parameterId',
                    parameterName     varchar(255) PATH 'parameterName',
                    parameterValue    varchar(255) PATH 'parameterValue'
                  ) x2;
                  
...
Рейтинг: 0 / 0
Помогите распарсить
    #39289666
Фотография andrey_anonymous
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
SELECT ' 
                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
 ... тут вырезал многабукф. Слишкоммногабукф для varchar2
                  </soapenv:Envelope> 
     ' xml FROM dual 
Error at Command Line:1 Column:7
Error report:
SQL Error: ORA-01704: string literal too long
...
Рейтинг: 0 / 0
Помогите распарсить
    #39289672
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
andrey_anonymous
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
SELECT ' 
                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
 ... тут вырезал многабукф. Слишкоммногабукф для varchar2
                  </soapenv:Envelope> 
     ' xml FROM dual 
Error at Command Line:1 Column:7
Error report:
SQL Error: ORA-01704: string literal too long




а как в clob воткнуть?!
...
Рейтинг: 0 / 0
Помогите распарсить
    #39290388
Фотография Fogel
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Askatandrey_anonymous
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
SELECT ' 
                  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
 ... тут вырезал многабукф. Слишкоммногабукф для varchar2
                  </soapenv:Envelope> 
     ' xml FROM dual 
Error at Command Line:1 Column:7
Error report:
SQL Error: ORA-01704: string literal too long




а как в clob воткнуть?!

Код: plsql
1.
select to_clob('<soapenv:Envelope xmlns:soapenv=...многа букв до 4000 символов')||'продолжение до 4000 символов'||'ещё продолжение до 4000 символов'||'и так конкатенируй свой огромный xml по частям пока не закончишь </soapenv:Envelope>') xml from dual
...
Рейтинг: 0 / 0
Помогите распарсить
    #39290957
Askat
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
FogelAskatпропущено...



а как в clob воткнуть?!

Код: plsql
1.
select to_clob('<soapenv:Envelope xmlns:soapenv=...многа букв до 4000 символов')||'продолжение до 4000 символов'||'ещё продолжение до 4000 символов'||'и так конкатенируй свой огромный xml по частям пока не закончишь </soapenv:Envelope>') xml from dual



Спс! Решил проблему!
...
Рейтинг: 0 / 0
10 сообщений из 10, страница 1 из 1
Форумы / Oracle [игнор отключен] [закрыт для гостей] / Помогите распарсить
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]