Export Mappings – Business Object Model to WSDL
Exporting a Business Object Model to a WSDL file has a number of results.
It generates:
- A port type for every Class within the Business Object Model that has at least one operation.
- Within each port type, a WSDL operation corresponding to each Class operation.
- An output message corresponding to the return type of each Business Object Model operation.
- An input message for each input parameter of the Business Object Model operation.
- An embedded XML schema generated following the transformation rules described in Export Mappings.
For example the following Business Object Model Class:
Maps to the following WSDL constructs:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns:tns1="http://example.com/businessobjectmodel" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://example.com/businessobjectmodel">
<wsdl:types>
<xsd:schema targetNamespace="http://example.com/businessobjectmodel">
<xsd:annotation>
<xsd:documentation>BOMORIGIN::/p1/Business Objects/BusinessObjectModel.bom</xsd:documentation>
</xsd:annotation>
<xsd:complexType id="_4SxvkAbDEeCEXKKc2dARYw" name="MyClass1"/>
<xsd:element name="MyClass1Element" type="tns1:MyClass1"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="MyClass1_operation1_outputMessage">
<wsdl:part name="operation1_outputPart" type="xsd:boolean"/>
</wsdl:message>
<wsdl:message name="MyClass1_operation1_inputMessage">
<wsdl:part name="inputParam1" type="xsd:string"/>
<wsdl:part name="inputParam2" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="MyClass1">
<wsdl:operation name="operation1">
<wsdl:input message="tns1:MyClass1_operation1_inputMessage" name="operation1_inputMessage"/>
<wsdl:output message="tns1:MyClass1_operation1_outputMessage" name="operation1_outputMessage"/>
</wsdl:operation>
</wsdl:portType>
</wsdl:definitions>
Note that if a Business Object Model operation contains a parameter that is not a default primitive type, then the exported WSDL includes the appropriate XML schema so that the operation can refer to this schema.
Copyright © Cloud Software Group, Inc. All rights reserved.
