I'm using MessageContracts to define my web method signatures and return types. Such as:
<MessageContract(WrapperName:="get")> _
Public Class GetRequest
Inherits BaseAuthenticatedRequest
Protected _typeName As cEnum.eType
Protected _id As Integer
<MessageBodyMember()> _
Public Property TypeName() As cEnum.eType
...
<MessageBodyMember()> _
Public Property Id() As Integer
...
End Class
When these parameters are ordered in the WSDL they're ordered alphabetically, which isn't a huge problem. However, it appears as though I'm required to submit my soap request with the elements in that order, or the request deserializer loses my data (e.g. no TypeName
, or no Id
comes through).
Is there a way for me to tell the MessageContract
/ MessageBodyMembers
that order does not need to matter?