propagate soap errors

This commit is contained in:
wojciech
2024-08-08 13:23:27 +02:00
parent ea7a079cad
commit 5ae29966cd
9 changed files with 109 additions and 51 deletions

View File

@@ -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.demo.com/author" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2">
<pd:ProcessDefinition xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pfx="http://www.demo.com/author" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:pd="http://xmlns.tibco.com/bw/process/2003" xmlns:pfx2="http://xmlns.tibco.com/bw/activity/xml/render/bytesEnvelope/2003/05" xmlns:ns="http://www.tibco.com/namespaces/tnt/plugins/file" xmlns:pfx3="http://www.tibco.com/pe/GenerateErrorActivity/InputSchema" xmlns:pfx4="http://xmlns.example.com/1721737885605" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://www.tibco.com/namespaces/tnt/plugins/file/v2" 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/XmlPUT.process</pd:name>
<pd:startName>Start</pd:startName>
<pd:startType>
@@ -34,7 +35,9 @@
</pd:endType>
<pd:endX>848</pd:endX>
<pd:endY>151</pd:endY>
<pd:errorSchemas/>
<pd:errorSchemas>
<PutError wsMsgRef="pfx4:ErrorMessage"/>
</pd:errorSchemas>
<pd:processVariables/>
<pd:targetNamespace>http://xmlns.example.com/1719920186128</pd:targetNamespace>
<pd:activity name="Read-File-1">
@@ -123,13 +126,23 @@
<pd:activity name="Generate Error">
<pd:type>com.tibco.pe.core.GenerateErrorActivity</pd:type>
<pd:resourceType>ae.activities.throw</pd:resourceType>
<pd:x>342</pd:x>
<pd:y>286</pd:y>
<pd:x>347</pd:x>
<pd:y>291</pd:y>
<config>
<faultName/>
<faultName>PutError</faultName>
</config>
<pd:inputBindings>
<pfx3:ActivityInput/>
<pfx3:ActivityInput>
<data>
<pfx4:ErrorMessage>
<part1>
<ns3:error>
<xsl:value-of select="'could not update author with given id becuase it does not exist'"/>
</ns3:error>
</part1>
</pfx4:ErrorMessage>
</data>
</pfx3:ActivityInput>
</pd:inputBindings>
</pd:activity>
<pd:transition>