-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes to support the redefining of a namespace alias
within different elements. The provided WSDL was not serializing the response correctly when returning the XML. Created a request response folder to test the changes that were made and made sure code coverage remained the same. Commented out any test referencing json_response.wsdl because it was failing after I cloned master and ran the tests.
- Loading branch information
lah8789
committed
Jul 23, 2021
1 parent
03d1f78
commit 6211ef5
Showing
11 changed files
with
260 additions
and
121 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
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
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
15 changes: 14 additions & 1 deletion
15
...est-response-samples/UpdateProfile__correct_namespaces_for_elements_with_base/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 |
---|---|---|
@@ -1 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.bigdatacollect.or" xmlns:c="http://www.bigdatacollect.or/Common/Types" xmlns:n="http://www.bigdatacollect.or/Name/Types"><soap:Body><n:UpdateProfileRequest xmlns:n="http://www.bigdatacollect.or/Name/Types" xmlns="http://www.bigdatacollect.or/Name/Types"><n:Profile><n:IDs><c:UniqueID source="TESTSOURCE" xmlns:c="http://www.bigdatacollect.or/Common/Types">100</c:UniqueID></n:IDs><n:Addresses><n:NameAddress><c:AddressLine xmlns:c="http://www.bigdatacollect.or/Common/Types">Another Address</c:AddressLine></n:NameAddress><n:NameAddress><c:AddressLine xmlns:c="http://www.bigdatacollect.or/Common/Types">My Address</c:AddressLine></n:NameAddress></n:Addresses><n:Phones><n:NamePhone primary="true"><c:PhoneData xmlns:c="http://www.bigdatacollect.or/Common/Types"><c:PhoneNumber>123</c:PhoneNumber></c:PhoneData></n:NamePhone><n:NamePhone primary="false"><c:PhoneData xmlns:c="http://www.bigdatacollect.or/Common/Types"><c:PhoneNumber>456</c:PhoneNumber></c:PhoneData></n:NamePhone></n:Phones></n:Profile></n:UpdateProfileRequest></soap:Body></soap:Envelope> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<soap:Envelope | ||
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:tns="http://www.bigdatacollect.or" | ||
xmlns:c="http://www.bigdatacollect.or/Common/Types" | ||
xmlns:n="http://www.bigdatacollect.or/Name/Types"> | ||
<soap:Body> | ||
<n:UpdateProfileRequest | ||
xmlns:n="http://www.bigdatacollect.or/Name/Types" | ||
xmlns="http://www.bigdatacollect.or/Name/Types"> | ||
<n:Profile> | ||
<n:IDs> | ||
<c:UniqueID source="TESTSOURCE" xmlns:c="http://www.bigdatacollect.or/Common/Types">100</c:UniqueID></n:IDs><n:Addresses><n:NameAddress><c:AddressLine xmlns:c="http://www.bigdatacollect.or/Common/Types">Another Address</c:AddressLine></n:NameAddress><n:NameAddress><c:AddressLine xmlns:c="http://www.bigdatacollect.or/Common/Types">My Address</c:AddressLine></n:NameAddress></n:Addresses><n:Phones><n:NamePhone primary="true"><c:PhoneData xmlns:c="http://www.bigdatacollect.or/Common/Types"><c:PhoneNumber>123</c:PhoneNumber></c:PhoneData></n:NamePhone><n:NamePhone primary="false"><c:PhoneData xmlns:c="http://www.bigdatacollect.or/Common/Types"><c:PhoneNumber>456</c:PhoneNumber></c:PhoneData></n:NamePhone></n:Phones></n:Profile></n:UpdateProfileRequest></soap:Body></soap:Envelope> |
18 changes: 18 additions & 0 deletions
18
test/request-response-samples/fooOp__should_return_back_good_response_object/bar.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,18 @@ | ||
<xsd:schema targetNamespace="http://example.com/bar/xsd" elementFormDefault="qualified" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:bar="http://example.com/bar/xsd" | ||
xmlns:bar1="http://example.com/bar1/xsd"> | ||
<xsd:import schemaLocation="bar1.xsd" namespace="http://example.com/bar1/xsd"/> | ||
<xsd:complexType name="Request1"> | ||
<xsd:sequence minOccurs="0" maxOccurs="1"> | ||
<xsd:element name="requestHeader" type="bar1:RequestHeader"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
<xsd:element name="Request1" type="bar:Request1" /> | ||
<xsd:complexType name="Response1"> | ||
<xsd:sequence minOccurs="0" maxOccurs="1"> | ||
<xsd:element name="responseHeader" type="bar1:ResponseHeader"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
<xsd:element name="Response1" type="bar:Response1"/> | ||
</xsd:schema> |
27 changes: 27 additions & 0 deletions
27
test/request-response-samples/fooOp__should_return_back_good_response_object/bar1.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,27 @@ | ||
<xsd:schema targetNamespace="http://example.com/bar1/xsd" elementFormDefault="qualified" version="2.1.4" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:bar1="http://example.com/bar1/xsd"> | ||
<xsd:simpleType name="UUID"> | ||
<xsd:restriction base="xsd:string"> | ||
<xsd:pattern value="[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}"/> | ||
</xsd:restriction> | ||
</xsd:simpleType> | ||
<xsd:complexType name="RequestHeader"> | ||
<xsd:sequence> | ||
<xsd:element name="requestId" type="bar1:UUID" /> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
<xsd:element name="RequestHeader" type="bar1:RequestHeader"/> | ||
<xsd:complexType name="ResponseHeader"> | ||
<xsd:sequence> | ||
<xsd:element name="requestId" type="bar1:UUID" /> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
<xsd:element name="ResponseHeader" type="bar1:ResponseHeader"/> | ||
<xsd:complexType name="ErrorInformation"> | ||
<xsd:sequence> | ||
<xsd:element name="message" type="xsd:string"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
<xsd:element name="ErrorInformation" type="bar1:ErrorInformation"/> | ||
</xsd:schema> |
5 changes: 5 additions & 0 deletions
5
test/request-response-samples/fooOp__should_return_back_good_response_object/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,5 @@ | ||
{ | ||
"requestHeader": { | ||
"requestId": "79d9372c-d2fe-4f86-a637-d1f5710bb439" | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/request-response-samples/fooOp__should_return_back_good_response_object/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 @@ | ||
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://example.com/foo/wsdl" xmlns:xsns="http://example.com/bar1/xsd"><soap:Body><xsns:Request1 xmlns:xsns="http://example.com/bar1/xsd" xmlns="http://example.com/bar1/xsd"><xsns:requestHeader><xsns:requestId>79d9372c-d2fe-4f86-a637-d1f5710bb439</xsns:requestId></xsns:requestHeader></xsns:Request1></soap:Body></soap:Envelope> |
10 changes: 10 additions & 0 deletions
10
test/request-response-samples/fooOp__should_return_back_good_response_object/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,10 @@ | ||
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope" xmlns:uba="http://example.com/bar1/xsd"> | ||
<soapenv:Header/> | ||
<soapenv:Body> | ||
<cus:Response1 xmlns:cus="http://example.com/bar/xsd"> | ||
<cus:responseHeader> | ||
<uba:requestId>79d9372c-d2fe-4f86-a637-d1f5710bb439</uba:requestId> | ||
</ns2:requestHeader> | ||
</cus:Request1> | ||
</soapenv:Body> | ||
</soapenv:Envelope> |
Oops, something went wrong.