xml-toolkit 1.0.18 → 1.0.20

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.
package/test/test.js CHANGED
@@ -335,10 +335,14 @@ async function test_006_schemata (fn) {
335
335
  async function test_007_wsdl (fn) {
336
336
 
337
337
  const soap = await SOAP11.fromFile ('test/20186.wsdl')
338
+ const soaps = new SOAP11 ('test/20186.wsdl')
339
+
340
+ const d = {GetForm9Sync: {address: {Region: {Code: 78}}}}
338
341
 
339
- console.log (soap.http ({GetForm9Sync: {address: {Region: {Code: 78}}}}))
342
+ console.log (soap.http (d))
343
+ console.log (soaps.http (d))
340
344
 
341
- console.log (soap)
345
+ // console.log (soap)
342
346
 
343
347
  }
344
348
 
@@ -382,6 +386,14 @@ async function test_008_schemata (fn) {
382
386
 
383
387
  }
384
388
 
389
+ async function test_009_schemata (fn) {
390
+
391
+ const xs = new XMLSchemata ('test/' + fn)
392
+
393
+ console.log (xs)
394
+
395
+ }
396
+
385
397
  function test_010_node () {
386
398
 
387
399
  for (const s of
@@ -453,11 +465,13 @@ async function main () {
453
465
  // await test_003_emitter_sync ('not-sa01.xml')
454
466
  // await test_003_emitter_sync ('ent.xml')
455
467
  // await test_003_emitter_sync ('soap.xml')
456
- await test_004_schemata ()
468
+ // await test_004_schemata ()
457
469
  // await test_005_schemata ()
458
470
  // await test_006_schemata ()
459
471
  // await test_007_wsdl ()
460
472
  // await test_008_schemata ()
473
+ test_009_schemata ('smev-message-exchange-service-1.1.xsd')
474
+ // test_009_schemata ('sign.xsd')
461
475
 
462
476
  // test_010_node ()
463
477
  // test_011_iterator ('param_types.xml')