forked from vpulim/node-soap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request vpulim#789 from tobias-neubert/master
Children may be empty resulting in a NPE
- Loading branch information
Showing
5 changed files
with
115 additions
and
12 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
23 changes: 23 additions & 0 deletions
23
.../request-response-samples/getAvailability__should_not_fail_without_children/imported.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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="/wsdl-viewer.xsl"?> | ||
<wsdl:definitions xmlns:foo="http://fo.bar/doIt/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | ||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
name="doIt" targetNamespace="http://foo.bar/doIt"> | ||
|
||
<wsdl:portType name="doIt"> | ||
<wsdl:operation name="doItMan"/> | ||
</wsdl:portType> | ||
|
||
<wsdl:binding name="doItSOAP" type="foo:doIt"> | ||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> | ||
<wsdl:operation name="doIt"> | ||
<soap:operation soapAction="" /> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
|
||
<wsdl:service name="doIt"> | ||
<wsdl:port binding="auth:doItSOAP" name="doItSOAP"> | ||
<soap:address location="https://foo.bar/services/doIt/" /> | ||
</wsdl:port> | ||
</wsdl:service> | ||
</wsdl:definitions> |
23 changes: 23 additions & 0 deletions
23
test/request-response-samples/getAvailability__should_not_fail_without_children/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,23 @@ | ||
{ | ||
"userCredentials": { | ||
"username": "beeblebrox", | ||
"sessionid": "42" | ||
}, | ||
"getAvailabilityRequest": { | ||
"attributes": { | ||
"currency": "EUR" | ||
}, | ||
"departure": "HAM", | ||
"destination": "FRA", | ||
"flightDate": "2016-01-01", | ||
"returnDate": "2016-02-01", | ||
"paxCount": [ | ||
{ | ||
"attributes": { | ||
"count": 1, | ||
"paxType": "ADT" | ||
} | ||
} | ||
] | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/request-response-samples/getAvailability__should_not_fail_without_children/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 @@ | ||
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header/><soap:Body><userCredentials><username>beeblebrox</username><sessionid>42</sessionid></userCredentials><getAvailabilityRequest currency="EUR"><departure>HAM</departure><destination>FRA</destination><flightDate>2016-01-01</flightDate><returnDate>2016-02-01</returnDate><paxCount count="1" paxType="ADT"/></getAvailabilityRequest></soap:Body></soap:Envelope> |
54 changes: 54 additions & 0 deletions
54
test/request-response-samples/getAvailability__should_not_fail_without_children/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,54 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?xml-stylesheet type="text/xsl" href="/wsdl-viewer.xsl"?> | ||
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:foo="http://foo.bar/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:partner="http://foo.bar/partner/" targetNamespace="http://foo.bar/partner/" name="partner"> | ||
<wsdl:import namespace="http://foo.bar/doIt/" location="imported.wsdl"/> | ||
<wsdl:types> | ||
<xsd:schema targetNamespace="http://foo.bar/partner/"> | ||
<xsd:complexType name="GetAvailabilityRequest"> | ||
<xsd:sequence> | ||
<xsd:element name="departure" type="xsd:string" maxOccurs="1" minOccurs="1"/> | ||
|
||
</xsd:sequence> | ||
<xsd:attribute name="currency" type="xsd:string" use="optional"/> | ||
</xsd:complexType> | ||
|
||
<xsd:complexType name="GetAvailabilityResponse"> | ||
<xsd:sequence> | ||
<xsd:element name="vacancy" type="xsd:string" maxOccurs="1" minOccurs="0"/> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:schema> | ||
</wsdl:types> | ||
<wsdl:message name="getAvailabilityRequest"> | ||
<wsdl:part name="getAvailabilityRequest" type="partner:GetAvailabilityRequest"/> | ||
</wsdl:message> | ||
<wsdl:message name="getAvailabilityResponse"> | ||
<wsdl:part name="getAvailabilityResponse" type="partner:GetAvailabilityResponse"/> | ||
</wsdl:message> | ||
|
||
<wsdl:portType name="partnerGetAvailabilityPortType"> | ||
<wsdl:operation name="getAvailability"> | ||
<wsdl:input message="partner:getAvailabilityRequest"/> | ||
<wsdl:output message="partner:getAvailabilityResponse"/> | ||
</wsdl:operation> | ||
</wsdl:portType> | ||
|
||
<wsdl:binding name="partnerGetAvailabilityBinding" type="partner:partnerGetAvailabilityPortType"> | ||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<wsdl:operation name="getAvailability"> | ||
<soap:operation soapAction=""/> | ||
<wsdl:input> | ||
<soap:body use="literal" namespace="http://foo.bar/partner/"/> | ||
</wsdl:input> | ||
<wsdl:output> | ||
<soap:body use="literal" namespace="http://foo.bar/partner/"/> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
|
||
<wsdl:service name="partner"> | ||
<wsdl:port binding="partner:partnerGetAvailabilityBinding" name="partnerGetAvailabilityPort"> | ||
<soap:address location="https://foo.bar/services/090/partner/getAvailability/"/> | ||
</wsdl:port> | ||
</wsdl:service> | ||
</wsdl:definitions> |