Forum Discussion

David30's avatar
10 years ago

Char type is mapped to integer

One of my parameters for my web service (c#) is a Char type. When I try to call him with soapUI, why it's converted to an integer type? How to tell him that this is not an interger, but it's a string type with length of 1 ...

Request
...
<soapenv:Body>
...
<con:Sex>M</con:Sex>
...

Response
The value 'M' cannot be parsed as the type 'Int32

Thank you

1 Reply

  • Hello,
    there is no CHAR data type in WSDL.
    I suggest you use a byte to transfer a char.
    You can use a string as well but you have to get the first character out of the string/char-array by yourself.