This commit is contained in:
wojciech
2024-08-07 16:22:28 +02:00
parent a8ac1fbc8f
commit ea7a079cad
17 changed files with 309 additions and 98 deletions

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Repository:repository xmlns:Repository="http://www.tibco.com/xmlns/repo/types/2002">
<name name="LibraryBuilder">
<version>6</version>
<author>wojciech</author>
<fileLocation>/home/wojciech/ProjectLibrary.projlib</fileLocation>
<resources>/Resources/WSDL/WSDL.wsdl,/Resources/WSDL/concrete/author methods.wsdl,/Resources/schemas/author.xsd,/Resources/schemas/deleteRequest.xsd,/Resources/schemas/deleteResponse.xsd,/Resources/schemas/errorSchema.xsd,/Resources/schemas/getRequest.xsd,/Resources/schemas/getResponse.xsd,/Resources/schemas/postRequest.xsd,/Resources/schemas/postResponse.xsd,/Resources/schemas/putRequest.xsd,/Resources/schemas/putResponse.xsd</resources>
</name>
</Repository:repository>

View File

@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.demo.com/author" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema">
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pfx="http://xmlns.example.com/1721743175984" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:wsdlPfx="http://xmlns.example.com/1721737885605" xmlns:ns2="http://www.demo.com/author" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2">
<xs:import xmlns:xs="http://www.w3.org/2001/XMLSchema" namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" schemaLocation="/Resources/schemas/getRequest.xsd"/>
<wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/concrete/author methods.wsdl"/>
<wsdl:import namespace="http://xmlns.example.com/1721743175984" location="/Resources/WSDL/WSDL-service8.serviceagent"/>
@@ -18,7 +18,7 @@
</pd:returnBindings>
<pd:endName>End</pd:endName>
<pd:endType wsMsgRef="wsdlPfx:responseGet"/>
<pd:endX>539</pd:endX>
<pd:endX>547</pd:endX>
<pd:endY>66</pd:endY>
<pd:errorSchemas>
<Schema1 wsMsgRef="wsdlPfx:ErrorMessage"/>
@@ -44,30 +44,15 @@
<pd:activity name="Catch">
<pd:type>com.tibco.pe.core.CatchActivity</pd:type>
<pd:resourceType>ae.activities.catch</pd:resourceType>
<pd:x>225</pd:x>
<pd:y>232</pd:y>
<pd:x>280</pd:x>
<pd:y>207</pd:y>
<pd:handler>true</pd:handler>
<config>
<catchAll>true</catchAll>
<catchAll>false</catchAll>
<fault>localname=ErrorMessage namespace=http://xmlns.example.com/1721737885605</fault>
</config>
<pd:inputBindings/>
</pd:activity>
<pd:activity name="Generate Error">
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
<pd:resourceType>ae.activities.throw</pd:resourceType>
<pd:x>401</pd:x>
<pd:y>231</pd:y>
<config>
<faultName/>
</config>
<pd:inputBindings>
<ns1:ActivityInput>
<message>
<xsl:value-of select="string($Catch/exceptiondata)"/>
</message>
</ns1:ActivityInput>
</pd:inputBindings>
</pd:activity>
<pd:transition>
<pd:from>Start</pd:from>
<pd:to>XmlGET</pd:to>
@@ -84,7 +69,7 @@
</pd:transition>
<pd:transition>
<pd:from>Catch</pd:from>
<pd:to>Generate Error</pd:to>
<pd:to>End</pd:to>
<pd:lineType>Default</pd:lineType>
<pd:lineColor>-16777216</pd:lineColor>
<pd:conditionType>always</pd:conditionType>

View File

@@ -27,39 +27,14 @@
<pd:activity name="XmlPOST">
<pd:type>com.tibco.pe.core.CallProcessActivity</pd:type>
<pd:resourceType>ae.process.subprocess</pd:resourceType>
<pd:x>276</pd:x>
<pd:x>285</pd:x>
<pd:y>70</pd:y>
<config>
<processName>/Processes/xml/author/XmlPOST.process</processName>
</config>
<pd:inputBindings>
<root>
<ns:author>
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns:author/@id">
<xsl:attribute name="id">
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/@id"/>
</xsl:attribute>
</xsl:if>
<ns:firstName>
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:firstName"/>
</ns:firstName>
<ns:lastName>
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:lastName"/>
</ns:lastName>
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:age">
<ns:age>
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:age"/>
</ns:age>
</xsl:if>
<ns:dateOfBirth>
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:dateOfBirth"/>
</ns:dateOfBirth>
<xsl:if test="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:dateOfDeath">
<ns:dateOfDeath>
<xsl:value-of select="$Start/wsdlPfx:requestPOST/part1/ns:author/ns:dateOfDeath"/>
</ns:dateOfDeath>
</xsl:if>
</ns:author>
<xsl:copy-of select="$Start/wsdlPfx:requestPOST/part1/ns:author"/>
</root>
</pd:inputBindings>
</pd:activity>

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--Created by TIBCO WSDL-->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://xmlns.example.com/1721743175984" xmlns:ns0="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema1.xsd" xmlns:ns2="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:ns1="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:ns3="http://www.demo.com/author" name="Untitled" targetNamespace="http://xmlns.example.com/1721743175984">
<wsdl:import namespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd" location="../../schemas/getRequest.xsd"/>
<wsdl:types>
<xs:schema xmlns="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="error" type="xs:string"/>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

View File

@@ -8,6 +8,6 @@
<loginTimeout>0</loginTimeout>
<connectionType>JDBC</connectionType>
<UseSharedJndiConfig>false</UseSharedJndiConfig>
<location>jdbc:sqlite:/tibco/designer/5.12/projects/httpRequest/database.db</location>
<location>jdbc:sqlite:/tibco/designer/5.12/projects/tibcoRepository/Resources/databases/database.db</location>
</config>
</BWSharedResource>

Binary file not shown.

View File

@@ -1,5 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<ns0:authors xmlns:ns0="http://www.demo.com/author">
<ns0:author xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://www.demo.com/author" id="123">
<ns0:firstName>siema</ns0:firstName>
<ns0:lastName>tydr</ns0:lastName>
<ns0:age>12</ns0:age>
<ns0:dateOfBirth>2024-08-21</ns0:dateOfBirth>
<ns0:dateOfDeath>2024-08-08</ns0:dateOfDeath>
</ns0:author>
<ns0:author xmlns:ns0="http://www.demo.com/author" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" id="1410">
<ns0:firstName>asd</ns0:firstName>
<ns0:lastName>asd</ns0:lastName>
<ns0:age>21</ns0:age>
<ns0:dateOfBirth>2024-08-07</ns0:dateOfBirth>
<ns0:dateOfDeath>2024-08-07</ns0:dateOfDeath>
</ns0:author>
<ns0:author xmlns:ns0="http://www.demo.com/author" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" id="5678">
<ns0:firstName>siema</ns0:firstName>
<ns0:lastName>asd</ns0:lastName>
<ns0:age>56</ns0:age>
<ns0:dateOfBirth>2024-08-15</ns0:dateOfBirth>
<ns0:dateOfDeath>2024-08-23</ns0:dateOfDeath>
</ns0:author>
<ns0:author xmlns:ns0="http://www.demo.com/author" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" id="12221">
<ns0:firstName>siema</ns0:firstName>
<ns0:lastName>asd</ns0:lastName>
<ns0:age>12</ns0:age>
<ns0:dateOfBirth>2024-08-07</ns0:dateOfBirth>
<ns0:dateOfDeath>2024-08-07</ns0:dateOfDeath>
</ns0:author>
<ns0:author xmlns:ns0="http://www.demo.com/author" id="4353">
<ns0:firstName>fgdg</ns0:firstName>
<ns0:lastName>asd</ns0:lastName>
<ns0:age>12</ns0:age>
<ns0:dateOfBirth>2024-08-02</ns0:dateOfBirth>
<ns0:dateOfDeath>2024-08-22</ns0:dateOfDeath>
</ns0:author>
<ns0:author xmlns:ns0="http://www.demo.com/author" id="99">
<ns0:firstName>prubva</ns0:firstName>
<ns0:lastName>sfdgsg</ns0:lastName>

View File

@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid Studio 2018 (https://www.liquid-technologies.com) -->
<xs:schema xmlns:a="http://www.demo.com/author"
xmlns:p="http://www.demo.com/person"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ns0="http://www.demo.com/author"
targetNamespace="http://www.demo.com/author"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:complexType name="AuthorType">
<xs:complexContent>
<xs:extension base="ns0:PersonType">
<xs:sequence>
<xs:element name="dateOfBirth" type="xs:date"/>
<xs:element name="dateOfDeath" type="xs:date" minOccurs="0"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="author" type="ns0:AuthorType"/>
<xs:complexType name="AuthorsType">
<xs:sequence>
<xs:element ref="ns0:author" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="PersonType">
<xs:sequence>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="lastName" type="xs:string"/>
<xs:element name="age" type="xs:int" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:int"/>
</xs:complexType>
<xs:element name="authors" type="ns0:AuthorsType"/>
</xs:schema>