Commit 7084b837 authored by ymir's avatar ymir
Browse files

dummy OSB GraphQL client

parent 4d4bf224
......@@ -9,7 +9,7 @@
<rows>
<!-- WARNING : do not write requests on many lines to avoid escape caracters issues -->
<row>
<cell>readAddresses</cell>
<cell>read_addresses</cell>
<cell>query($readAddressesInput:ReadAddressesInput!,$withClients:Boolean!,$withPurchaseOrders:Boolean!,$withOrderLines:Boolean!){readAddresses(readAddressesInput:$readAddressesInput,withClients:$withClients,withPurchaseOrders:$withPurchaseOrders,withOrderLines:$withOrderLines){id,houseNumber,street,zipCode,city,clients@include(if:$withClients){id,firstName,lastName,purchaseOrders@include(if:$withPurchaseOrders){id,creationDate,orderLines@include(if:$withOrderLines){id,item{id,name,price},quantity}}}}}</cell>
</row>
</rows>
......
......@@ -61,7 +61,7 @@
<con3:sourceExpr>
<con1:xqueryText>$body/dum:rootReadAddressesInput</con1:xqueryText>
</con3:sourceExpr>
<con3:nxsd ref="dummyosbgraphqlclient/schema/address/read/nxsd_parameters"/>
<con3:nxsd ref="dummyosbgraphqlclient/schema/addresses/read/nxsd_parameters"/>
<con3:schemaElement xmlns:dum="dummyOsbGraphQLClient">dum:rootReadAddressesInput</con3:schemaElement>
<con3:assign-variable>parameters</con3:assign-variable>
</con3:nxsdTranslation>
......@@ -123,7 +123,7 @@
<con3:sourceExpr>
<con1:xqueryText>fn:string($body)</con1:xqueryText>
</con3:sourceExpr>
<con3:nxsd ref="dummyosbgraphqlclient/schema/address/read/nxsd_response"/>
<con3:nxsd ref="dummyosbgraphqlclient/schema/addresses/read/nxsd_response"/>
<con3:schemaElement xmlns:dum="dummyOsbGraphQLClient">dum:rootReadAddresses</con3:schemaElement>
<con3:replace-body-content/>
<con3:enforceSchemaOrder>false</con3:enforceSchemaOrder>
......
......@@ -10,16 +10,16 @@
<wsdl:types>
<!-- schema -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/address/read/nxsd_parameters.xsd"/>
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/addresses/read/nxsd_parameters.xsd"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/address/read/nxsd_response.xsd"/>
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/addresses/read/nxsd_response.xsd"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/client/read/nxsd_parameters.xsd"/>
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/clients/read/nxsd_parameters.xsd"/>
</xsd:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/client/read/nxsd_response.xsd"/>
<xsd:import namespace="dummyOsbGraphQLClient" schemaLocation="schema/clients/read/nxsd_response.xsd"/>
</xsd:schema>
</wsdl:types>
<!-- messages -->
......
......@@ -107,6 +107,7 @@
<string v="WSDL"/>
<string v="WSPolicy"/>
<string v="XML"/>
<string v="XML_SCHEMA"/>
</list>
</hash>
<hash n="oracle.jdeveloper.compiler.OjcConfiguration">
......
{
"readAddressesInput": {
"ids": [1,1],
"houseNumber": 765,
"street": "st.",
"zipCode": 7024,
"city": "le",
"limit": 1,
"offset": 0
},
"withClients": true,
"withPurchaseOrders": true,
"withOrderLines": true
{
"readAddressesInput": {
"ids": [1,1],
"houseNumber": 765,
"street": "st.",
"zipCode": 7024,
"city": "le",
"limit": 1,
"offset": 0
},
"withClients": true,
"withPurchaseOrders": true,
"withOrderLines": true
}
\ No newline at end of file
<?xml version = '1.0' encoding = 'UTF-8'?>
<?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">
<xsd:element name="rootReadClients">
<xsd:complexType>
......@@ -56,8 +56,8 @@
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:annotation xmlns="">
<xsd:appinfo>NXSDSAMPLE=C:\workspaces\Pierre\ServiceBusApplication\dummyosbgraphqlclient\schema\client\read\response.json</xsd:appinfo>
<xsd:appinfo>USEHEADER=false</xsd:appinfo>
</xsd:annotation>
<xsd:annotation xmlns="">
<xsd:appinfo>NXSDSAMPLE=C:\workspaces\Pierre\ServiceBusApplication\dummyosbgraphqlclient\schema\client\read\response.json</xsd:appinfo>
<xsd:appinfo>USEHEADER=false</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
\ No newline at end of file
{
"readClientsInput": {
"ids": [6,6],
"firstName": "Frank",
"lastName": "ZAPPA",
"limit": 1,
"offset": 0
},
"withAddress": true,
"withPurchaseOrders": true,
"withOrderLines": true
{
"readClientsInput": {
"ids": [6,6],
"firstName": "Frank",
"lastName": "ZAPPA",
"limit": 1,
"offset": 0
},
"withAddress": true,
"withPurchaseOrders": true,
"withOrderLines": true
}
\ No newline at end of file
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