You've already forked lazarus-ccr
Part 1
* simple content header block implementation : TSimpleContentHeaderBlock * XSD/WSDL generator tests : header, simple content header, collection git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@549 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema
|
||||
xmlns:tns="urn:wst-test"
|
||||
xmlns:wst="urn:wst_base"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="urn:wst-test">
|
||||
|
||||
<xsd:complexType name="TComplexType"/>
|
||||
<xsd:complexType name="TCollectionComplexType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="item" type="tns:TComplexType" maxOccurs="unbounded" minOccurs="0" wst:wst_collection="true"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
|
||||
</schema>
|
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<definitions name="wst_test"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:tns="library1"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:wst="urn:wst_base"
|
||||
targetNamespace="urn:wst-test">
|
||||
|
||||
<types>
|
||||
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:wst-test">
|
||||
|
||||
<xsd:complexType name="TSampleHeader" wst:wst_headerBlock="true">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="intField" type="xsd:int"/>
|
||||
<xsd:element name="strField" type="xsd:string"/>
|
||||
<xsd:element name="floatField" type="xsd:float"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute use="required" name="strAtt" type="xsd:string"/>
|
||||
<xsd:attribute use="required" name="intAtt" type="xsd:int"/>
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
</types>
|
||||
|
||||
|
||||
</definitions>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:tns="class_headerblock_derived" xmlns:wst="urn:wst_base" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="class_headerblock_derived">
|
||||
<xsd:complexType name="TSampleHeader" wst:wst_headerBlock="true">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="intField" type="xsd:int"/>
|
||||
<xsd:element name="strField" type="xsd:string"/>
|
||||
<xsd:element name="floatField" type="xsd:float"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute use="required" name="strAtt" type="xsd:string"/>
|
||||
<xsd:attribute use="required" name="intAtt" type="xsd:int"/>
|
||||
</xsd:complexType>
|
||||
</schema>
|
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0"?>
|
||||
<definitions name="wst_test"
|
||||
xmlns="http://schemas.xmlsoap.org/wsdl/"
|
||||
xmlns:tns="library1"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
||||
xmlns:wst="urn:wst_base"
|
||||
targetNamespace="urn:wst-test">
|
||||
|
||||
<types>
|
||||
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:wst-test">
|
||||
|
||||
<xsd:complexType name="TSampleHeader" wst:wst_headerBlockSimpleContent="true">
|
||||
<xsd:attribute use="required" name="strAtt" type="xsd:string"/>
|
||||
<xsd:attribute use="required" name="intAtt" type="xsd:int"/>
|
||||
</xsd:complexType>
|
||||
|
||||
</xsd:schema>
|
||||
</types>
|
||||
|
||||
|
||||
</definitions>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema
|
||||
xmlns:tns="class_headerblock_simplecontent_derived"
|
||||
xmlns:wst="urn:wst_base"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="class_headerblock_simplecontent_derived">
|
||||
<xsd:complexType name="TSampleHeader" wst:wst_headerBlockSimpleContent="true">
|
||||
<xsd:attribute use="required" name="strAtt" type="xsd:string"/>
|
||||
<xsd:attribute use="required" name="intAtt" type="xsd:int"/>
|
||||
</xsd:complexType>
|
||||
</schema>
|
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<SOAP-ENV:Header xmlns:ns1="urn:simple-content-header.sample">
|
||||
<ns1:TSampleSimpleContentHeaderBlock_A SOAP-ENV:mustUnderstand="0">sample header simple content value</ns1:TSampleSimpleContentHeaderBlock_A>
|
||||
</SOAP-ENV:Header>
|
||||
<SOAP-ENV:Body>
|
||||
<ns2:test_proc xmlns:ns2="TestService"/>
|
||||
</SOAP-ENV:Body>
|
||||
</SOAP-ENV:Envelope>
|
@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<SOAP-ENV:Envelope
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
|
||||
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
|
||||
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
|
||||
<SOAP-ENV:Header xmlns:ns1="urn:simple-content-header.sample">
|
||||
<ns1:TSampleSimpleContentHeaderBlock_A SOAP-ENV:mustUnderstand="0">sample header simple content value</ns1:TSampleSimpleContentHeaderBlock_A>
|
||||
<ns1:TSampleSimpleContentHeaderBlock_B ns1:intAtt="1210" SOAP-ENV:mustUnderstand="0">another content</ns1:TSampleSimpleContentHeaderBlock_B>
|
||||
</SOAP-ENV:Header>
|
||||
<SOAP-ENV:Body>
|
||||
<ns2:test_proc xmlns:ns2="TestService"/>
|
||||
</SOAP-ENV:Body>
|
||||
</SOAP-ENV:Envelope>
|
Reference in New Issue
Block a user