Commit be8fc983 authored by ymir's avatar ymir
Browse files

dummy OSB GraphQL client

parent 619f4470
......@@ -777,6 +777,17 @@
<con1:xqueryText>fn:count($body/*/com:errors)>0</con1:xqueryText>
</con2:condition>
<con2:actions>
<con2:replace contents-only="false" varName="body">
<con1:id>_ActionId-a07010b.N376dd612.0.16798d404e8.N7fc2</con1:id>
<con2:location>
<con1:xpathText>./*</con1:xpathText>
</con2:location>
<con2:expr>
<con1:xqueryTransform>
<con1:resource ref="dummyosbgraphqlclient/transformation/error"/>
</con1:xqueryTransform>
</con2:expr>
</con2:replace>
<con2:log xmlns:con4="http://www.bea.com/wli/sb/stages/routing/config" xmlns:con2="http://www.bea.com/wli/sb/stages/logging/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con3="http://www.bea.com/wli/sb/stages/transform/config">
<con1:id>_ActionId-a07010b.N376dd612.0.16798d404e8.N7fc5</con1:id>
<con2:logLevel>debug</con2:logLevel>
......
<?xml version = '1.0' encoding = 'UTF-8'?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="dummyOsbGraphQLClient" targetNamespace="dummyOsbGraphQLClient" elementFormDefault="qualified" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" nxsd:version="JSON" nxsd:encoding="US-ASCII" xmlns:com="dummyOsbGraphQLClientCommon">
<xsd:element name="errors">
<xsd:import namespace="dummyOsbGraphQLClientCommon" schemaLocation="common.xsd"/>
<xsd:element name="errorsList">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="error" type="xsd:string" maxOccurs="unbounded"/>
<xsd:element ref="com:errors" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
......
......@@ -238,7 +238,7 @@
<wsdl:part name="updatePurchaseOrders" element="tns:rootUpdatePurchaseOrders"/>
</wsdl:message>
<wsdl:message name="error">
<wsdl:part name="error" element="tns:errors"/>
<wsdl:part name="error" element="tns:errorsList"/>
</wsdl:message>
<wsdl:portType name="dummyOsbGraphQLClient">
<!-- operations -->
......
xquery version "1.0" encoding "utf-8";
(:: OracleAnnotationVersion "1.0" ::)
declare namespace com = "dummyOsbGraphQLClientCommon";
(:: import schema at "../schema/common/common.xsd" ::)
declare namespace dum = "dummyOsbGraphQLClient";
(:: import schema at "../schema/common/error.xsd" ::)
declare namespace soap = "http://schemas.xmlsoap.org/soap/envelope/";
(:declare variable $body as element() external;:)
(:declare function local:func($body as element()) as element(soap:Fault) {:)
declare function local:func() as element(soap:Fault) {
<soap:Fault>
<dum:errorsList>
<com:errors>error#0</com:errors>
<com:errors>error#1</com:errors>
</dum:errorsList>
</soap:Fault>
};
(:local:func($body):)
local:func()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment