In this section: How to: Reference: |
Services require two schemas, one for the request and one for the response. Services always have these two schemas, even if the response is not used by your application.
A table that lists the created schemas appears in the right pane.
The schemas are generated and ready to use. You can use the generated request schema to create a sample XML document to be used by the adapter.
iWay Explorer stores the schemas it creates in subdirectories under the iWay home directory of the machine where it is installed. The exact location of the schemas differs depending on whether you deploy iWay Explorer with an iBSP or a JCA configuration.
C:\Program Files\iWay60\config\base\wsdl\schemas\service\DOTNET\DOTNET
where
Is the name of the connection to the .Net application as defined in iWay Explorer. Under this directory, iWay Explorer creates subdirectories containing schemas.
C:\Program Files\iWay60\config\base\schemas\DOTNET\DOTNET
Is the name of the connection to the .Net application as defined in iWay Explorer. iWay Explorer stores the schemas in this directory.
The following are sample request and response schemas for the add and multiply methods in math.dll.
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by the iBSE 2004-03-15T21:40:07Z --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="add"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="parm" type="xs:int" /> </xs:sequence> <xs:attribute fixed="/math.dll/Math.Math/Add(System.Xml.XmlElement)" name="location" type="xs:string" use="optional" /> </xs:complexType> </xs:element> </xs:schema>
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by the iBSE 2004-03-15T21:40:07Z --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="total" type="xs:int" /> </xs:schema>/
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by the iBSE 2004-03-15T21:51:15Z --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Multiply"> <xs:complexType> <xs:sequence> <xs:element name="a" type="xs:int" /> <xs:element name="b" type="xs:int" /> </xs:sequence> <xs:attribute name="location" use="optional" fixed="/math.dll/Math.Math/Multiply(System.Int32,System.Int32)"/> </xs:complexType> </xs:element> </xs:schema>
<?xml version="1.0" encoding="UTF-8" ?> <!-- Generated by the iBSE 2004-03-15T21:51:15Z --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="MultiplyResponse"> <xs:complexType> <xs:sequence> <xs:element name="result" type="xs:int"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
iWay Software |