Skip to content

Commit 96c89e2

Browse files
committed
Add SOAP examples, with failing test for Issue #4
1 parent 60afe7f commit 96c89e2

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

tests/dump-output/soap

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
SimpleXML object (1 item)
2+
[
3+
Element {
4+
Namespace: 'http://schemas.xmlsoap.org/soap/envelope/'
5+
Namespace Alias: 'soap'
6+
Name: 'Envelope'
7+
String Content: '
8+
9+
10+
'
11+
Content in Namespace soap
12+
Namespace URI: 'http://schemas.xmlsoap.org/soap/envelope/'
13+
Children: 2 - 1 'Body', 1 'Header'
14+
Attributes: 0
15+
}
16+
]

tests/input/soap.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" ?>
2+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
3+
<soap:Header>
4+
<s:credentials xmlns:s="http://example.org/security">
5+
<username>test</username>
6+
<password>letmein</password>
7+
</s:credentials>
8+
</soap:Header>
9+
<soap:Body>
10+
<tns:DoSomething xmlns:tns="http://example.org/some-soap-service">
11+
<from>A</from>
12+
<to>B</to>
13+
</tns:DoSomething>
14+
</soap:Body>
15+
</soap:Envelope>

tests/tree-output/soap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
SimpleXML object (1 item)
2+
[0] // <soap:Envelope>
3+
->children('soap', true)
4+
->Header[0]
5+
->children('s', true)
6+
->credentials[0]
7+
->children('', true)
8+
->username[0]
9+
->password[0]
10+
->Body[0]
11+
->children('tns', true)
12+
->DoSomething[0]
13+
->children('', true)
14+
->from[0]
15+
->to[0]

0 commit comments

Comments
 (0)