-
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.
Merge pull request #700 from strongloop-forks/feature/element-ref
Add support for xsd element ref
- Loading branch information
Showing
5 changed files
with
170 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<xsd:schema targetNamespace="http://example.com/bar/xsd" | ||
elementFormDefault="qualified" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:bar1="http://example.com/bar1/xsd" | ||
xmlns:bar="http://example.com/bar/xsd"> | ||
<xsd:import namespace="http://example.com/bar1/xsd" | ||
schemaLocation="bar1.xsd"/> | ||
<xsd:element name="fooRq"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element ref="bar1:paymentRq" minOccurs="0" | ||
maxOccurs="unbounded"> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="fooRs"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element ref="bar1:paymentRs" minOccurs="0" | ||
maxOccurs="unbounded"> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:schema> |
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,40 @@ | ||
<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:element name="paymentRq"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:sequence> | ||
<xsd:element name="bankSvcRq" minOccurs="0" | ||
maxOccurs="unbounded"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element ref="bar1:requestUID"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="Id" type="xsd:ID"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="paymentRs"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:sequence> | ||
<xsd:element name="bankSvcRs" minOccurs="0" | ||
maxOccurs="unbounded"> | ||
<xsd:complexType> | ||
<xsd:sequence> | ||
<xsd:element ref="bar1:requestUID"/> | ||
</xsd:sequence> | ||
<xsd:attribute name="Id" type="xsd:ID"/> | ||
</xsd:complexType> | ||
</xsd:element> | ||
</xsd:sequence> | ||
</xsd:sequence> | ||
</xsd:complexType> | ||
</xsd:element> | ||
<xsd:element name="requestUID" type="xsd:string"/> | ||
</xsd:schema> |
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,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<wsdl:definitions name="foo" | ||
targetNamespace="http://example.com/foo/wsdl" | ||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" | ||
xmlns:ns1="http://example.com/bar/xsd" | ||
xmlns:tns="http://example.com/foo/wsdl" | ||
xmlns:xsd="http://www.w3.org/2001/XMLSchema" | ||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> | ||
<wsdl:types> | ||
<xsd:schema> | ||
<xsd:import | ||
namespace="http://example.com/bar/xsd" | ||
schemaLocation="bar.xsd"/> | ||
</xsd:schema> | ||
</wsdl:types> | ||
<wsdl:message name="fooRs"> | ||
<wsdl:part name="fooRs" element="ns1:fooRs"> | ||
</wsdl:part> | ||
</wsdl:message> | ||
<wsdl:message name="fooRq"> | ||
<wsdl:part name="fooRq" element="ns1:fooRq"> | ||
</wsdl:part> | ||
</wsdl:message> | ||
<wsdl:portType name="foo_PortType"> | ||
<wsdl:operation name="fooOp"> | ||
<wsdl:input message="tns:fooRq"> | ||
</wsdl:input> | ||
<wsdl:output message="tns:fooRs"> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:portType> | ||
<wsdl:binding name="foo_Binding" type="tns:foo_PortType"> | ||
<soap:binding style="document" | ||
transport="http://schemas.xmlsoap.org/soap/http"/> | ||
<wsdl:operation name="fooOp"> | ||
<soap:operation soapAction="fooPayment"/> | ||
<wsdl:input> | ||
<soap:body use="literal"/> | ||
</wsdl:input> | ||
<wsdl:output> | ||
<soap:body use="literal"/> | ||
</wsdl:output> | ||
</wsdl:operation> | ||
</wsdl:binding> | ||
<wsdl:service name="foo"> | ||
<wsdl:port name="payment_Port" | ||
binding="tns:foo_Binding"> | ||
<soap:address | ||
location="http://localhost:8888/mockfoo_Binding"/> | ||
</wsdl:port> | ||
</wsdl:service> | ||
<xsd:attriute fixed="2.1.4" name="version"/> | ||
</wsdl:definitions> |