XBinder User's Guide

Version 2.4.x

Objective Systems, Inc.


Table of Contents

1. XBinder Overview
2. Using XBinder
Running XBinder from the Command-line
Compiling and Linking Generated Code
Porting Run-time Code to Other Platforms
Getting Started with C or C++ Sample Programs
Getting Started with your own XML Schema
3. Generated C/C++ Source Code
Header (.h) File
C Code Generated for XSD Types
C Code Generated for XSD Global Elements
C Code Generated for Project-level Factory Decode/Validation Function
C Code Generated for WSDL Operation Input/Output/Fault Types
C++ Code Generated for XSD Types
C++ Code Generated for XSD Global Elements
C++ Code Generated for Project-level Factory Decode/Validation Function
C++ Code Generated for WSDL Operation Input/Output/Fault Types
C++ Code Generated for WSDL Operation Input/Output/Fault
Namespace Considerations
4. XSD Simple Type to C/C++ Type Mappings
Character String Types
Enumerated Type
Integer Types
Real Number Types
Binary String Types
Date/Time Types
Boolean Type
Union Type
List Type
5. XSD Complex Type to C/C++ Type Mappings
SEQUENCE
ALL
CHOICE
Substitution Groups
Attributes
ComplexContent
SimpleContent
Derivations
Group
Any Type
6. Configuration File
Binding Language
Advanced XML Names Transformation
XML Numeric Values Format Specification
Configuration File Example
7. Generated C Encode/Decode Functions
Preparing C Data Variables for Encoding
Generated XML Encode Functions
Generated XML Decode Functions
Generated Validation Functions
Generated Print Functions
Generated Test Functions
Generated Identity Constraint Test Functions
Generated Reader and Writer Programs
Generated WSDL SOAP Stub Functions
Generated WSDL SOAP Skeleton Server and Client Programs
Generated SSL Stub Functions
Generated SSL Client Programs
Other Generated Functions
Generated Makefile
8. Generated C++ Class Methods
Preparing C++ Objects for Encoding
Generated XML C++ Encode Methods
Generated XML C++ Decode Methods
Generated XML C++ Validation Methods
9. XBinder C Runtime Library
10. XML Run-time Library Functions
XML C Encode Functions
XML C Pull-Parser Based Decode Functions
XML C SAX Based Decode Functions
XML C SAX Parser Interface
XML C DOM Interface
11. JSON Run-time Library Functions
JSON C Encode Functions
JSON C Decode Functions
12. C Common Runtime Library
Common Include Files
Context Management Functions
Memory Management Functions
UTF-8 String Functions
Doubly-Linked List Utility Functions
Error Formatting and Print Functions
Diagnostic trace functions
Input/Output Data Stream Utility Functions
TCP/IP or UDP socket utility functions
SOAP and HTTP utility functions
13. C++ Built-in Runtime Classes
Context Management Class
Message Buffer Classes
Global Element Base Class
XSD Type Base Classes
XML Parser Interface Classes
A. XBinder Error Codes
General Runtime Error Messages
XML-specific Status Messages

List of Tables

4.1. Generated C code
4.2. Generated C++ code