qorelanguage / module-xml Goto Github PK
View Code? Open in Web Editor NEWQore XML module with SAX and DOM XML parsing support as well XML-RPC and SOAP support
License: GNU Lesser General Public License v2.1
Qore XML module with SAX and DOM XML parsing support as well XML-RPC and SOAP support
License: GNU Lesser General Public License v2.1
Qore xml module INTRODUCTION ------------ The Qore xml module provides XML functionality to Qore. This was previously part of the main qore library but moved to this module in qore v0.8.1 see docs for more information LICENSE ------- The source code is released under the LGPL 2.1 and MIT licenses; either license may be used at the user's discretion. Note that both licenses are treated equally by the Qore library in the sense that both licenses allow the module to be loaded without restrictions by the Qore library (even when the Qore library is initialized in GPL mode). See COPYING.MIT and COPYING.LGPL for details on the open-source licenses. BUILDING -------- Requires qore 0.8.3+, libxml2 2.6.0+ (http://www.xmlsoft.org), and openssl headers and libraries to build and run to configure the build, execute configure --disable-debug if the qore library cannot be found, then you can use: configure --disable-debug --with-qore=<dir> if libxml2 cannot be found, then you can use: configure --disable-debug --with-libxml2-dir=<dir> if openssl cannot be found, then you can use: configure --disable-debug --with-openssl-dir=<dir> The qore binary also needs to be in the path so configure can determine the module directory Then execute make && make install (or 'make && sudo make install' as needed) please direct any questions to: [email protected]
Some of the module-xml tests fail. I'm using the latest development qore "0.9.0" version (which I believe is also used by jenkins). I'm not sure whether the problem is in qore or this module or in the tests but I suppose the tests used to work correctly in the past.
QUnit Test "SalesforceTest" v1.0
Skipped: account: 0 assertions
Skip requested at Salesforce.com.qtest:122 [SalesforceTest::accountTests()]
-----
>> no Salesforce.com connection
-----
ERROR: salesforceSoapConnectionTest: 7 assertions
Unexpected exception: PARSE-ERROR at Salesforce.com.qtest:274
-----
>> System exception: Salesforce.com.qtest:274: PARSE-ERROR: parsing can only happen once for each Program container
>> call stack:
>> Program::parse() called at Salesforce.com.qtest:274 (builtin function)
>> SalesforceTest::checkPreAndPostProcessing() called at Salesforce.com.qtest:258 (user function)
>> SalesforceTest::salesforceSoapConnectionTest() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (user function)
>> call_function_args() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (builtin function)
-----
Ran 2 test cases, 1 succeeded, 1 error (7 assertions)
QUnit Test "SoapClientTest" v1.0
ERROR: SoapConnectionTest: 10 assertions
Unexpected exception: PARSE-ERROR at SoapClient.qtest:355
-----
>> System exception: SoapClient.qtest:355: PARSE-ERROR: parsing can only happen once for each Program container
>> call stack:
>> Program::parse() called at SoapClient.qtest:355 (builtin function)
>> SoapClientTest::checkPreAndPostProcessing() called at SoapClient.qtest:339 (user function)
>> SoapClientTest::soapConnectionTest() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (user function)
>> call_function_args() called at /usr/share/qore-modules/0.9.0/QUnit.qm:450 (builtin function)
-----
Ran 4 test cases, 3 succeeded, 1 error (66 assertions)
QUnit Test "XmlTest" v1.0
Segmentation fault (core dumped)
GlobalWeather depends on http://www.webservicex.com/globalweather.asmx which currently returns
{"code":"PAGE_NOT_FOUND","message":"Page not found"}
And thus the test fails.
I suggest disabling the test at least for now and maybe removing it later if the service doesn't get back up. Or maybe we can even remove it completely to get rid of a test dependent on an external resource.
ex:
<schema targetNamespace="N1" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="N1">
<element name="Root">
<complexType>
<sequence maxOccurs="1" minOccurs="1">
<element name="ELEMENT" maxOccurs="unbounded" minOccurs="1">
<complexType>
<sequence>
<element name="COMPANY" maxOccurs="1" minOccurs="1" type="string"/>
<element name="RDA" maxOccurs="1" minOccurs="1" type="string"/>
<element name="STATUSRDA" maxOccurs="1" minOccurs="1" type="string"/>
</sequence>
</complexType>
The error can be reproduced by running the following simple script:
#! /usr/bin/env qore
%requires SoapClient
%new-style
ReadOnlyFile f('<a_path_to>/SalesDataInterface_v13.wsdl');
my string s = f.read(-1);
WebService w(s);
makeXMLString(string key, hash h, *string encoding)
is deprecated and recommends using get_xml_string()
instead. However get_xml_string()
does not exist. I believe make_xml()
is the proper replacement.
BTW, the other version of makeXMLString(hash h, *string encoding)
recommends make_xml()
correctly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.