-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
387 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...t-response-samples/Dummy__should_add_prefix_for_unqualified_global_elements/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": "Dummy Element Entry" | ||
"DummyElement": [ | ||
"Dummy Element Entry" | ||
] | ||
} | ||
} | ||
} |
14 changes: 8 additions & 6 deletions
14
test/request-response-samples/Dummy__should_extract_envelope_from_response/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
] | ||
} | ||
} | ||
} |
14 changes: 8 additions & 6 deletions
14
test/request-response-samples/Dummy__should_handle_attributes_in_request/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
] | ||
} | ||
} | ||
} |
14 changes: 8 additions & 6 deletions
14
test/request-response-samples/Dummy__should_handle_attributes_in_response/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
] | ||
} | ||
} | ||
} |
40 changes: 21 additions & 19 deletions
40
test/request-response-samples/Dummy__should_handle_cdata_xml_in_response/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,27 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": { | ||
"response": { | ||
"forms": { | ||
"form": { | ||
"$attributes": { | ||
"ObjectId": "1234", | ||
"Form_Name": "Dummy Form" | ||
}, | ||
"First_Name": "Humpty", | ||
"Last_Name": "Dumpty" | ||
} | ||
} | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": { | ||
"response": { | ||
"forms": { | ||
"form": { | ||
"$attributes": { | ||
"ObjectId": "1234", | ||
"Form_Name": "Dummy Form" | ||
}, | ||
"First_Name": "Humpty", | ||
"Last_Name": "Dumpty" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
test/request-response-samples/Dummy__should_handle_null_args/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": "Dummy Element Entry" | ||
"DummyElement": [ | ||
"Dummy Element Entry" | ||
] | ||
} | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
test/request-response-samples/Dummy__should_handle_xml_date_time_dateTime/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": null | ||
"DummyElement": [ | ||
null | ||
] | ||
} | ||
} | ||
} |
14 changes: 8 additions & 6 deletions
14
test/request-response-samples/Dummy__should_ignore_custom_defined_namespaces/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
] | ||
} | ||
} | ||
} |
14 changes: 8 additions & 6 deletions
14
test/request-response-samples/Dummy__should_ignore_defined_namespaces/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": { | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
"DummyElement": [ | ||
{ | ||
"$attributes": { | ||
"language": "en-US" | ||
}, | ||
"$value": "Dummy Element Entry" | ||
} | ||
] | ||
} | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
test/request-response-samples/Dummy__should_parse_nil/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": null | ||
"DummyElement": [ | ||
null | ||
] | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/common.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:tns="http://www.Dummy.com/Common/Types" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.Dummy.com/Common/Types" elementFormDefault="unqualified" attributeFormDefault="unqualified"> | ||
<xs:complexType name="DummyResult"> | ||
<xs:sequence> | ||
<xs:element name="DummyList" type="tns:DummyList" minOccurs="0"/> | ||
</xs:sequence> | ||
<xs:attribute name="code" type="xs:string" use="optional"/> | ||
</xs:complexType> | ||
<xs:complexType name="Dummy"> | ||
<xs:simpleContent> | ||
<xs:extension base="xs:string"> | ||
<xs:attribute name="language" type="xs:language" use="optional"/> | ||
</xs:extension> | ||
</xs:simpleContent> | ||
</xs:complexType> | ||
<xs:complexType name="DummyList"> | ||
<xs:sequence> | ||
<xs:element name="DummyElement" type="tns:Dummy"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
<xs:complexType name="DummyFilter"> | ||
<xs:sequence> | ||
<xs:element name="DummyIntFilter" type="xs:string" minOccurs="0"/> | ||
<xs:element name="DummyStringFilter" type="xs:string" minOccurs="0"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:schema> | ||
|
19 changes: 19 additions & 0 deletions
19
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/name.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:c="http://www.Dummy.com/Common/Types" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.Dummy.com/Name/Types" elementFormDefault="unqualified" attributeFormDefault="unqualified"> | ||
<xs:import namespace="common.xsd" schemaLocation="common.xsd"/> | ||
<xs:element name="DummyRequest"> <!-- global element --> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="DummyField1" type="xs:string" minOccurs="0"/> | ||
<xs:element name="DummyFilter" type="c:DummyFilter" minOccurs="0"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:element name="DummyResponse"> <!-- global element --> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="DummyResult" type="c:DummyResult"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
2 changes: 2 additions & 0 deletions
2
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/request.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
5 changes: 5 additions & 0 deletions
5
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/request.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> | ||
<soap:Header/> | ||
<soap:Body/> | ||
</soap:Envelope> |
11 changes: 11 additions & 0 deletions
11
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"DummyResult": { | ||
"DummyList": { | ||
"DummyElement": [ | ||
"Dummy Element Entry 1", | ||
"Dummy Element Entry 2", | ||
"Dummy Element Entry 3" | ||
] | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/response.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<soap:Header></soap:Header> | ||
<soap:Body> | ||
<n:DummyResponse> | ||
<n:DummyResult> | ||
<c:DummyList xmlns:c="http://www.Dummy.com/Common/Types"> | ||
<c:DummyElement> | ||
Dummy Element Entry 1 | ||
</c:DummyElement> | ||
<c:DummyElement> | ||
Dummy Element Entry 2 | ||
</c:DummyElement> | ||
<c:DummyElement> | ||
Dummy Element Entry 3 | ||
</c:DummyElement> | ||
</c:DummyList> | ||
</n:DummyResult> | ||
</n:DummyResponse> | ||
</soap:Body> | ||
</soap:Envelope> |
42 changes: 42 additions & 0 deletions
42
test/request-response-samples/Dummy__should_return_array_despite_maxOccurs_1/soap.wsdl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:tns="http://www.Dummy.com" xmlns:n="http://www.Dummy.com/Name/Types" xmlns:ns="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://www.Dummy.com"> | ||
<wsdl:types> | ||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.example.com/v1" xmlns="http://www.example.com/v1"> | ||
<xs:import namespace="http://www.Dummy.com/Common/Types" schemaLocation="common.xsd"/> | ||
<xs:import namespace="http://www.Dummy.com/Name/Types" schemaLocation="name.xsd"/> | ||
</xs:schema> | ||
</wsdl:types> | ||
<wsdl:message name="DummyRequest"> | ||
<wsdl:part name="DummyRequest" element="n:DummyRequest"/> | ||
</wsdl:message> | ||
<wsdl:message name="DummyResponse"> | ||
<wsdl:part name="DummyResponse" element="n:DummyResponse"/> | ||
</wsdl:message> | ||
<wsdl:portType name="DummyPortType"> | ||
<wsdl:operation name="Dummy"> | ||
<wsdl:input message="tns:DummyRequest"/> | ||
<wsdl:output message="tns:DummyResponse"/> | ||
</wsdl:operation> | ||
</wsdl:portType> | ||
<wsdl:binding name="DummyBinding" type="tns:DummyPortType"> | ||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<wsdl:operation name="Dummy"> | ||
<soap:operation soapAction="http://www.Dummy.com#Dummy" style="document"/> | ||
<wsdl:input> | ||
<soap:body use="literal"/> | ||
</wsdl:input> | ||
<wsdl:output> | ||
<soap:body use="literal"/> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
<wsdl:service name="DummyService"> | ||
<wsdl:port name="DummyPortType" binding="tns:DummyBinding"> | ||
<soap:address location="http://www.Dummy.com/"/> | ||
</wsdl:port> | ||
</wsdl:service> | ||
</wsdl:definitions> | ||
|
Oops, something went wrong.