From 96c89e26603d01b02d43f2117ebd3949b8283c2a Mon Sep 17 00:00:00 2001 From: Rowan Collins Date: Thu, 9 Nov 2017 20:39:46 +0000 Subject: [PATCH] Add SOAP examples, with failing test for Issue #4 --- tests/dump-output/soap | 16 ++++++++++++++++ tests/input/soap.xml | 15 +++++++++++++++ tests/tree-output/soap | 15 +++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 tests/dump-output/soap create mode 100644 tests/input/soap.xml create mode 100644 tests/tree-output/soap diff --git a/tests/dump-output/soap b/tests/dump-output/soap new file mode 100644 index 0000000..e1e31a2 --- /dev/null +++ b/tests/dump-output/soap @@ -0,0 +1,16 @@ +SimpleXML object (1 item) +[ + Element { + Namespace: 'http://schemas.xmlsoap.org/soap/envelope/' + Namespace Alias: 'soap' + Name: 'Envelope' + String Content: ' + + +' + Content in Namespace soap + Namespace URI: 'http://schemas.xmlsoap.org/soap/envelope/' + Children: 2 - 1 'Body', 1 'Header' + Attributes: 0 + } +] diff --git a/tests/input/soap.xml b/tests/input/soap.xml new file mode 100644 index 0000000..cf210f0 --- /dev/null +++ b/tests/input/soap.xml @@ -0,0 +1,15 @@ + + + + + test + letmein + + + + + A + B + + + diff --git a/tests/tree-output/soap b/tests/tree-output/soap new file mode 100644 index 0000000..d212f00 --- /dev/null +++ b/tests/tree-output/soap @@ -0,0 +1,15 @@ +SimpleXML object (1 item) +[0] // + ->children('soap', true) + ->Header[0] + ->children('s', true) + ->credentials[0] + ->children('', true) + ->username[0] + ->password[0] + ->Body[0] + ->children('tns', true) + ->DoSomething[0] + ->children('', true) + ->from[0] + ->to[0]