Hi,

Dataflex 19.1
Database MSSQL 2017
Windows 10 release 1903


Writing a soap service and client to tranfer data from one "place" to and "other"

So both sides are written in and or generated with dataflex.

The information (struct) to transfer is

Code:
Struct tSample
  String   sLicense_Id
  String   sName
  UChar[]  ucInformation
  Number   nEmp_Rate
End_Struct
Created the web service getting the following client struct

Code:
Struct tWS_tSample
    String      sLicense_Id
    String      sName
    UChar[]   ucInformation
    Decimal   nEmp_Rate
End_Struct
The webservice takes multiple records and stores them.
The cSoapMetaStruct looks like

The client is generated by Dataflex. (Soap 1.2)

Code:
        Object oWS_tSample is a cSoapMetaStruct
            Set psNameSpace to "http://x-source.org/hrp/uploadEmployee"
            Send DefineParameter xsString 1 1 "sLicense_Id"
            Send DefineParameter xsString 1 1 "sName"
            Send DefineStructParameter oWS_EP_ArrayOfUnsignedByte 1 1 "ucInformation"
            Send DefineParameter xsDecimal 1 1 "nEmp_Rate"
        End_Object
You can see the special "work' dataflex is doing for the UChar array.

When sending data to the server I am getting the following error.

Click image for larger version. 

Name:	Annotation 2019-11-26 153532.png 
Views:	165 
Size:	5.1 KB 
ID:	13271

It looks like there are problems with the UChar[] definition.

Tested it with removing the UChar[] and it works..... without a problem.

Do I miss something or does this look like a bug.


Peter