Module SoapConstants.pkg

     1// SoapConstants.pkg
     2// constants used by soap
     3
     4// DataFlex datatypes that we support in soap.
     5// These MUST match the dataflex definitions as provided in fmac
     6Enum_list
     7    Define xsString    for 0
     8    Define xsNumber    for 1
     9    Define xsDate      for 2
    10    Define xsInteger   for 3
    11    Define xsBigint    for 4
    12    Define xsReal      for 5
    13    Define xsBoolean   for 6
    14    Define xsTime      for 8
    15    Define xsDatetime  for 9
    16    Define xsFloat     for 10
    17    Define xsChar      for 11
    18    Define xsUchar     for 12
    19    Define xsShort     for 13
    20    Define xsUShort    for 14
    21    Define xsUinteger  for 15
    22    Define xsUbigint   for 17
    23    Define xsCurrency  for 18
    24    Define xsStruct    for 19
    25    Define xsDecimal   for 22
    26
    27    Define xsEmpty     for  -1  // not a real datatype. Used with return types when nothing is returned. We must use -1 (the runtime message InterfaceMessageParamType returns this)
    28    Define xsAnyType    for 127  // not a real type (represent as XML within a wrapper document)
    29    Define xsXmlElement for 128  // not a real type (represent as an xml document. <any /> type in schema)
    30
    31End_Enum_list
    32
    33// soap style
    34Enum_list
    35   define ssDocument
    36   define ssRPC
    37End_Enum_list
    38
    39// soap encoding
    40Enum_list
    41   define seLiteral
    42   define seEncoded
    43End_Enum_list
    44
    45// service/port-types. Currently we only support soap
    46Enum_list
    47   define ptUnKnown
    48   define ptSOAP
    49   define ptHttp
    50End_Enum_list
    51
    52// SOAP URI constants
    53define C_WSDLURI              for "http://schemas.xmlsoap.org/wsdl/"
    54define C_SOAPURI              for "http://schemas.xmlsoap.org/wsdl/soap/"
    55define C_XMLSCHEMAURI         for "http://www.w3.org/2001/XMLSchema"
    56define C_XMLSCHEMAXSIURI      for "http://www.w3.org/2001/XMLSchema-instance"
    57define C_SOAPENVELOPEURI      for "http://schemas.xmlsoap.org/soap/envelope/"
    58define C_SOAPENCODINGURI      for "http://schemas.xmlsoap.org/soap/encoding/"
    59
    60// .net uses a document style name of parameter to indicate wrap style, else bar
    61define C_ParameterNameBare    for "parameters"
    62define C_UnBounded            for -1 // used when maxOccurs=Unbounded
    63
    64
    65