fixes
This commit is contained in:
		
							
								
								
									
										4
									
								
								.designtimelibs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.designtimelibs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,4 @@ | ||||
| #Design time libraries | ||||
| #Format: #=File Alias=Description | ||||
| #Wed Aug 07 16:14:36 CEST 2024 | ||||
| 0=ProjectLibrary.projlib\= | ||||
| @@ -1,5 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/pe/DeployedVarsType" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.demo.com/author"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/rest/rest request.process</pd:name> | ||||
|     <pd:startName>HTTP Receiver</pd:startName> | ||||
|     <pd:startX>0</pd:startX> | ||||
| @@ -9,7 +10,7 @@ | ||||
|         <pd:type>com.tibco.plugin.http.HTTPEventSource</pd:type> | ||||
|         <pd:resourceType>httppalette.httpEventSource</pd:resourceType> | ||||
|         <pd:x>168</pd:x> | ||||
|         <pd:y>256</pd:y> | ||||
|         <pd:y>252</pd:y> | ||||
|         <config> | ||||
|             <outputMode>String</outputMode> | ||||
|             <defaultEncoding>ISO8859_1</defaultEncoding> | ||||
| @@ -36,16 +37,27 @@ | ||||
|         <pd:inputBindings/> | ||||
|     </pd:starter> | ||||
|     <pd:endName>End</pd:endName> | ||||
|     <pd:endX>786</pd:endX> | ||||
|     <pd:endY>254</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:endType/> | ||||
|     <pd:endX>784</pd:endX> | ||||
|     <pd:endY>259</pd:endY> | ||||
|     <pd:errorSchemas> | ||||
|         <Schema0> | ||||
|             <xsd:element name="root"> | ||||
|                 <xsd:complexType> | ||||
|                     <xsd:sequence> | ||||
|                         <xsd:element name="param" type="xsd:string"/> | ||||
|                     </xsd:sequence> | ||||
|                 </xsd:complexType> | ||||
|             </xsd:element> | ||||
|         </Schema0> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719474540368</pd:targetNamespace> | ||||
|     <pd:activity name="select database type"> | ||||
|         <pd:type>com.tibco.pe.core.CallProcessActivity</pd:type> | ||||
|         <pd:resourceType>ae.process.subprocess</pd:resourceType> | ||||
|         <pd:x>348</pd:x> | ||||
|         <pd:y>263</pd:y> | ||||
|         <pd:x>355</pd:x> | ||||
|         <pd:y>261</pd:y> | ||||
|         <config> | ||||
|             <processName>/Processes/xml/xml.process</processName> | ||||
|             <processNameXPath>if ($_globalVariables/pfx:GlobalVariables/processType='sql') then  '/Processes/sql/InitializeDatabase.process' else  '/Processes/xml/xml.process'</processNameXPath> | ||||
| @@ -65,8 +77,8 @@ | ||||
|     <pd:activity name="Send HTTP Response"> | ||||
|         <pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type> | ||||
|         <pd:resourceType>httppalette.httpWebResponse</pd:resourceType> | ||||
|         <pd:x>555</pd:x> | ||||
|         <pd:y>254</pd:y> | ||||
|         <pd:x>610</pd:x> | ||||
|         <pd:y>257</pd:y> | ||||
|         <config> | ||||
|             <closeConnection>true</closeConnection> | ||||
|             <eventSource>HTTP Receiver</eventSource> | ||||
| @@ -87,7 +99,78 @@ | ||||
|         <pd:inputBindings> | ||||
|             <ResponseActivityInput> | ||||
|                 <asciiContent> | ||||
|                     <xsl:value-of select="string($select-database-type/root)"/> | ||||
|                     <xsl:value-of select="$Render-XML/xmlString"/> | ||||
|                 </asciiContent> | ||||
|             </ResponseActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Render XML"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType> | ||||
|         <pd:x>481</pd:x> | ||||
|         <pd:y>254</pd:y> | ||||
|         <config> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>true</validateInput> | ||||
|             <renderDefaultPrefix>true</renderDefaultPrefix> | ||||
|             <term> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element ref="ns1:author" minOccurs="0" maxOccurs="unbounded"/> | ||||
|                             <xsd:element name="status" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </term> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <xsl:copy-of select="$select-database-type/root/ns1:author"/> | ||||
|                 <status> | ||||
|                     <xsl:value-of select="$select-database-type/root/status"/> | ||||
|                 </status> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="Catch"> | ||||
|         <pd:type>com.tibco.pe.core.CatchActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.catch</pd:resourceType> | ||||
|         <pd:x>246</pd:x> | ||||
|         <pd:y>440</pd:y> | ||||
|         <pd:handler>true</pd:handler> | ||||
|         <config> | ||||
|             <catchAll>true</catchAll> | ||||
|         </config> | ||||
|         <pd:inputBindings/> | ||||
|     </pd:activity> | ||||
|     <pd:activity name="ErrorResponse"> | ||||
|         <pd:type>com.tibco.plugin.http.HTTPResponseActivity</pd:type> | ||||
|         <pd:resourceType>httppalette.httpWebResponse</pd:resourceType> | ||||
|         <pd:x>432</pd:x> | ||||
|         <pd:y>442</pd:y> | ||||
|         <config> | ||||
|             <closeConnection>true</closeConnection> | ||||
|             <eventSource>HTTP Receiver</eventSource> | ||||
|             <flushResponse>true</flushResponse> | ||||
|             <Headers> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="StatusLine" type="xsd:string" minOccurs="0"/> | ||||
|                             <xsd:element name="Content-Type" type="xsd:string" minOccurs="0"/> | ||||
|                             <xsd:element name="Set-Cookie" type="xsd:string" minOccurs="0"/> | ||||
|                             <xsd:element name="Pragma" type="xsd:string" minOccurs="0"/> | ||||
|                             <xsd:element name="Location" type="xsd:string" minOccurs="0"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </Headers> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ResponseActivityInput> | ||||
|                 <asciiContent> | ||||
|                     <xsl:value-of select="string($Catch/exceptiondata)"/> | ||||
|                 </asciiContent> | ||||
|             </ResponseActivityInput> | ||||
|         </pd:inputBindings> | ||||
| @@ -108,9 +191,30 @@ | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>select database type</pd:from> | ||||
|         <pd:to>Render XML</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Render XML</pd:from> | ||||
|         <pd:to>Send HTTP Response</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Catch</pd:from> | ||||
|         <pd:to>ErrorResponse</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>ErrorResponse</pd:from> | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -37,8 +37,8 @@ | ||||
|     <pd:activity name="initialize database"> | ||||
|         <pd:type>com.tibco.plugin.jdbc.JDBCGeneralActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.JDBCGeneralActivity</pd:resourceType> | ||||
|         <pd:x>275</pd:x> | ||||
|         <pd:y>126</pd:y> | ||||
|         <pd:x>280</pd:x> | ||||
|         <pd:y>123</pd:y> | ||||
|         <config> | ||||
|             <timeout>10</timeout> | ||||
|             <commit>false</commit> | ||||
|   | ||||
| @@ -13,7 +13,7 @@ | ||||
|             </xsd:complexType> | ||||
|         </xsd:element> | ||||
|     </pd:startType> | ||||
|     <pd:startX>169</pd:startX> | ||||
|     <pd:startX>156</pd:startX> | ||||
|     <pd:startY>180</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
| @@ -80,39 +80,39 @@ | ||||
|         <pd:y>183</pd:y> | ||||
|         <config> | ||||
|             <element> | ||||
|                 <xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="root"> | ||||
|                     <xs:complexType> | ||||
|                         <xs:sequence> | ||||
|                             <xs:element name="firstname" type="xsd:string"/> | ||||
|                             <xs:element name="lastname" type="xsd:string"/> | ||||
|                             <xs:element name="date-of-birth" type="xsd:string"/> | ||||
|                             <xs:element name="date-of-death" type="xsd:string"/> | ||||
|                             <xs:element name="id" type="xsd:string"/> | ||||
|                             <xs:element name="age" type="xsd:string"/> | ||||
|                         </xs:sequence> | ||||
|                     </xs:complexType> | ||||
|                 </xs:element> | ||||
|                 <xsd:element name="root"> | ||||
|                     <xsd:complexType> | ||||
|                         <xsd:sequence> | ||||
|                             <xsd:element name="firstname" type="xsd:string"/> | ||||
|                             <xsd:element name="lastname" type="xsd:string"/> | ||||
|                             <xsd:element name="date-of-birth" type="xsd:string"/> | ||||
|                             <xsd:element name="date-of-death" type="xsd:string"/> | ||||
|                             <xsd:element name="id" type="xsd:string"/> | ||||
|                             <xsd:element name="age" type="xsd:string"/> | ||||
|                         </xsd:sequence> | ||||
|                     </xsd:complexType> | ||||
|                 </xsd:element> | ||||
|             </element> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <root> | ||||
|                 <firstname> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"firstname":"'), '"')"/> | ||||
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"firstName":"'), '"')"/> | ||||
|                 </firstname> | ||||
|                 <lastname> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"lastname":"'), '"')"/> | ||||
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"lastName":"'), '"')"/> | ||||
|                 </lastname> | ||||
|                 <date-of-birth> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"day-of-birth":"'), '"')"/> | ||||
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfBirth":"'), '"')"/> | ||||
|                 </date-of-birth> | ||||
|                 <date-of-death> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '"day-of-death":"'), '"')"/> | ||||
|                     <xsl:value-of select="substring-before(substring-after($Start/root/data, '"dateOfDeath":"'), '"')"/> | ||||
|                 </date-of-death> | ||||
|                 <id> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '"id":"'), '"') else substring-after($Start/root/data, 'id=')"/> | ||||
|                     <xsl:value-of select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '"id":"'), '"') else substring-after($Start/root/data, "id=")"/> | ||||
|                 </id> | ||||
|                 <age> | ||||
|                     <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="number(substring-before(substring-after($Start/root/data, '"age":"'), '"'))"/> | ||||
|                     <xsl:value-of select="number(substring-before(substring-after($Start/root/data, '"age":"'), '"'))"/> | ||||
|                 </age> | ||||
|             </root> | ||||
|         </pd:inputBindings> | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:ns="http://www.tibco.com/pe/WriteToLogActivitySchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/author.xsd"/> | ||||
|     <pd:name>Processes/sql/author/SqlGET.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
| @@ -56,7 +56,17 @@ | ||||
|     </pd:endType> | ||||
|     <pd:endX>726</pd:endX> | ||||
|     <pd:endY>108</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:errorSchemas> | ||||
|         <AuthorNotFound> | ||||
|             <xsd:element name="root"> | ||||
|                 <xsd:complexType> | ||||
|                     <xsd:sequence> | ||||
|                         <xsd:element name="AuthorID" type="xsd:int"/> | ||||
|                     </xsd:sequence> | ||||
|                 </xsd:complexType> | ||||
|             </xsd:element> | ||||
|         </AuthorNotFound> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719579163583</pd:targetNamespace> | ||||
|     <pd:activity name="GetAuthor"> | ||||
| @@ -155,13 +165,42 @@ | ||||
|             </ns1:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>GetAuthor</pd:from> | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:activity name="Render XML"> | ||||
|         <pd:type>com.tibco.plugin.xml.XMLRendererActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.XMLRendererActivity</pd:resourceType> | ||||
|         <pd:x>599</pd:x> | ||||
|         <pd:y>111</pd:y> | ||||
|         <config> | ||||
|             <renderAsText>text</renderAsText> | ||||
|             <validateInput>true</validateInput> | ||||
|             <renderDefaultPrefix>true</renderDefaultPrefix> | ||||
|             <term ref="pfx:author"/> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <pfx:author> | ||||
|                 <xsl:if test="$GetAuthor/resultSet/Record[1]/id"> | ||||
|                     <xsl:attribute name="id"> | ||||
|                         <xsl:value-of select="$GetAuthor/resultSet/Record[1]/id"/> | ||||
|                     </xsl:attribute> | ||||
|                 </xsl:if> | ||||
|                 <pfx:firstName> | ||||
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/firstname"/> | ||||
|                 </pfx:firstName> | ||||
|                 <pfx:lastName> | ||||
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/lastname"/> | ||||
|                 </pfx:lastName> | ||||
|                 <pfx:age> | ||||
|                     <xsl:value-of select="$GetAuthor/resultSet/Record[1]/age"/> | ||||
|                 </pfx:age> | ||||
|                 <pfx:dateOfBirth> | ||||
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_birth, 'T')"/> | ||||
|                 </pfx:dateOfBirth> | ||||
|                 <pfx:dateOfDeath> | ||||
|                     <xsl:value-of select="substring-before($GetAuthor/resultSet/Record[1]/date_of_death, 'T')"/> | ||||
|                 </pfx:dateOfDeath> | ||||
|             </pfx:author> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|     <pd:transition> | ||||
|         <pd:from>Start</pd:from> | ||||
|         <pd:to>LogInputData</pd:to> | ||||
| @@ -183,4 +222,18 @@ | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>GetAuthor</pd:from> | ||||
|         <pd:to>Render XML</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
|     <pd:transition> | ||||
|         <pd:from>Render XML</pd:from> | ||||
|         <pd:to>End</pd:to> | ||||
|         <pd:lineType>Default</pd:lineType> | ||||
|         <pd:lineColor>-16777216</pd:lineColor> | ||||
|         <pd:conditionType>always</pd:conditionType> | ||||
|     </pd:transition> | ||||
| </pd:ProcessDefinition> | ||||
| @@ -149,7 +149,7 @@ | ||||
|     <pd:activity name="Generate Error"> | ||||
|         <pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type> | ||||
|         <pd:resourceType>ae.activities.throw</pd:resourceType> | ||||
|         <pd:x>418</pd:x> | ||||
|         <pd:x>422</pd:x> | ||||
|         <pd:y>240</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|   | ||||
| @@ -1,6 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema"> | ||||
| <pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.tibco.com/namespaces/tnt/plugins/file/v2" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://www.demo.com/author" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tib="http://www.tibco.com/bw/xslt/custom-functions" xmlns:ns2="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:ns3="http://www.tibco.com/schemas/httpRequest/Resources/schemas/Schema.xsd2"> | ||||
|     <xsd:import namespace="http://www.demo.com/author" schemaLocation="/Resources/schemas/putRequest.xsd"/> | ||||
|     <wsdl:import namespace="http://xmlns.example.com/1721737885605" location="/Resources/WSDL/WSDL.wsdl"/> | ||||
|     <pd:name>Processes/xml/author/XmlGET.process</pd:name> | ||||
|     <pd:startName>Start</pd:startName> | ||||
|     <pd:startType> | ||||
| @@ -35,7 +36,9 @@ | ||||
|     </pd:endType> | ||||
|     <pd:endX>924</pd:endX> | ||||
|     <pd:endY>81</pd:endY> | ||||
|     <pd:errorSchemas/> | ||||
|     <pd:errorSchemas> | ||||
|         <Schema0 wsMsgRef="pfx3:ErrorMessage"/> | ||||
|     </pd:errorSchemas> | ||||
|     <pd:processVariables/> | ||||
|     <pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace> | ||||
|     <pd:activity name="Parse XML"> | ||||
| @@ -91,13 +94,19 @@ | ||||
|         <pd:x>705</pd:x> | ||||
|         <pd:y>277</pd:y> | ||||
|         <config> | ||||
|             <faultName/> | ||||
|             <faultName>Schema0</faultName> | ||||
|         </config> | ||||
|         <pd:inputBindings> | ||||
|             <ns2:ActivityInput> | ||||
|                 <message> | ||||
|                     <xsl:value-of select="'dany author nie istnieje'"/> | ||||
|                 </message> | ||||
|                 <data> | ||||
|                     <pfx3:ErrorMessage> | ||||
|                         <part1> | ||||
|                             <ns3:error> | ||||
|                                 <xsl:value-of select="'piwo'"/> | ||||
|                             </ns3:error> | ||||
|                         </part1> | ||||
|                     </pfx3:ErrorMessage> | ||||
|                 </data> | ||||
|             </ns2:ActivityInput> | ||||
|         </pd:inputBindings> | ||||
|     </pd:activity> | ||||
|   | ||||
| @@ -16,9 +16,9 @@ | ||||
|     <pd:startY>212</pd:startY> | ||||
|     <pd:returnBindings> | ||||
|         <root> | ||||
|             <satus> | ||||
|             <status> | ||||
|                 <xsl:value-of select="'author added'"/> | ||||
|             </satus> | ||||
|             </status> | ||||
|         </root> | ||||
|     </pd:returnBindings> | ||||
|     <pd:endName>End</pd:endName> | ||||
|   | ||||
							
								
								
									
										9
									
								
								Resources/LibraryBuilder.libbuilder
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								Resources/LibraryBuilder.libbuilder
									
									
									
									
									
										Normal 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> | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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> | ||||
|   | ||||
| @@ -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 | 
| @@ -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.
										
									
								
							| @@ -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> | ||||
|   | ||||
							
								
								
									
										36
									
								
								Resources/schemas/author.xsd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								Resources/schemas/author.xsd
									
									
									
									
									
										Normal 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> | ||||
		Reference in New Issue
	
	Block a user
	 wojciech
					wojciech