Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
"ext-dom": "*",
"ext-pcre": "*",

"simplesamlphp/xml-common": "~3.0"
"simplesamlphp/xml-common": "^3.1"
},
"require-dev": {
"simplesamlphp/assert": "~3.0",
"simplesamlphp/simplesamlphp-test-framework": "~2.0"
"simplesamlphp/assert": "^3.0",
"simplesamlphp/simplesamlphp-test-framework": "^2.0"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200106/Body.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</SOAP-ENV:Body>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200106/Detail.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<detail xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<detail xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</detail>
8 changes: 4 additions & 4 deletions tests/resources/xml/env/200106/Envelope.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" test:attr1="testval1">
<SOAP-ENV:Header test:attr1="testval1">
<m:GetPrice>
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</SOAP-ENV:Header>
<SOAP-ENV:Body test:attr1="testval1">
<m:GetPrice>
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Pears</m:Item>
</m:GetPrice>
</SOAP-ENV:Body>
<m:GetPrice>
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Bananas</m:Item>
</m:GetPrice>
</SOAP-ENV:Envelope>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200106/Fault.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://www.example.org/timeouts">
<SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>SOAP-ENV:Sender</faultcode>
<faultstring>Something went wrong</faultstring>
<faultactor>urn:x-simplesamlphp:namespace</faultactor>
<detail>
<m:MaxTime>P5M</m:MaxTime>
<m:MaxTime xmlns:m="http://www.example.org/timeouts">P5M</m:MaxTime>
</detail>
</SOAP-ENV:Fault>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200106/Header.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</SOAP-ENV:Header>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200305/Body.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<env:Body xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<env:Body xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</env:Body>
6 changes: 3 additions & 3 deletions tests/resources/xml/env/200305/Code.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<env:Code xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:m="http://www.example.org/timeouts">
<env:Code xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value>m:SomethingNotFromSpec</env:Value>
<env:Value xmlns:m="http://www.example.org/timeouts">m:SomethingNotFromSpec</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
<env:Value xmlns:m="http://www.example.org/timeouts">m:MessageTimeout</env:Value>
</env:Subcode>
</env:Subcode>
</env:Code>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200305/Detail.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<env:Detail xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<env:Detail xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</env:Detail>
6 changes: 3 additions & 3 deletions tests/resources/xml/env/200305/Envelope.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" test:attr1="testval1">
<env:Header test:attr1="testval1">
<m:GetPrice>
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</env:Header>
<env:Body test:attr1="testval1">
<m:GetPrice>
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</env:Body>
Expand Down
6 changes: 3 additions & 3 deletions tests/resources/xml/env/200305/Fault.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<env:Fault xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:m="http://www.example.org/timeouts">
<env:Fault xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Code>
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
<env:Value xmlns:m="http://www.example.org/timeouts">m:MessageTimeout</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
Expand All @@ -11,6 +11,6 @@
<env:Node>urn:x-simplesamlphp:namespace</env:Node>
<env:Role>urn:x-simplesamlphp:namespace</env:Role>
<env:Detail>
<m:MaxTime>P5M</m:MaxTime>
<m:MaxTime xmlns:m="http://www.example.org/timeouts">P5M</m:MaxTime>
</env:Detail>
</env:Fault>
4 changes: 2 additions & 2 deletions tests/resources/xml/env/200305/Header.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" xmlns:m="https://www.w3schools.com/prices" test:attr1="testval1">
<m:GetPrice>
<env:Header xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:test="urn:test:something" test:attr1="testval1">
<m:GetPrice xmlns:m="https://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</env:Header>
6 changes: 3 additions & 3 deletions tests/resources/xml/env/200305/Subcode.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<env:Subcode xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:m="https://www.w3schools.com/prices">
<env:Value>m:SomethingNotFromSpec</env:Value>
<env:Subcode xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Value xmlns:m="https://www.w3schools.com/prices">m:SomethingNotFromSpec</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
<env:Value xmlns:m="https://www.w3schools.com/prices">m:MessageTimeout</env:Value>
</env:Subcode>
</env:Subcode>