BizTalk Adapter for GraphQL

Build 21.0.7940

Send Port SELECT Schemas

Executing Parameterized SELECT Statements

The following sections show the schema, instance, and response for the following parameterized query:

SELECT Name, Email FROM Users WHERE UserLogin = @UserLogin

Mapping the SELECT Schema to the Request and Response

SELECT schemas in solicit-response send ports have both a response section and an input parameters section.

SELECT Schema

Below is an example schema for a parameterized query executed from a solicit-response send port.

<?xml version="1.0" encoding="utf16" ?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetEmailspace="http://www.cdata.com/GraphQLProvider/2021" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="parameters">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="UserLogin" type="xs:string" /> 
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="table">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="row">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" name="Name">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="IsNull" type="xs:boolean" /> 
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="Email">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="IsNull" type="xs:boolean" /> 
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="AffectedRows" type="xs:int" /> 
    </xs:complexType>
  </xs:element>
</xs:schema>

SELECT Request

Below is the input instance:

<ns0:parameters xmlns:ns0="http://www.cdata.com/GraphQLProvider/2021">
  <ns0:UserLogin>UserLogin_0</ns0:UserLogin> 
</ns0:parameters>

SELECT Response

Below is the response:

<ns0:table AffectedRows="3" xmlns:ns0="http://www.cdata.com/GraphQLProvider/2021">
  <ns0:row>
    <ns0:Name IsNull="true">Name_0</ns0:Name> 
    <ns0:Email IsNull="true">Email_0</ns0:Email> 
  </ns0:row>
  <ns0:row>
    <ns0:Name IsNull="true">Name_0</ns0:Name> 
    <ns0:Email IsNull="true">Email_0</ns0:Email> 
  </ns0:row>
  <ns0:row>
    <ns0:Name IsNull="true">Name_0</ns0:Name> 
    <ns0:Email IsNull="true">Email_0</ns0:Email> 
  </ns0:row>
</ns0:table>

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7940