Force Field to be Mandatory

N

Nick Locke

I have a Class with some string and some integer values. When that gets to
WSDL, the strings have "minoccurs=0" and the integers have "minoccurs=1". I
can understand why this is happening, but cannot see how to change it.
What I actually need is to be able to force the strings to be mandatory too.
Thanks.
 
J

John Saunders

Nick Locke said:
I have a Class with some string and some integer values. When that gets to
WSDL, the strings have "minoccurs=0" and the integers have "minoccurs=1".
I can understand why this is happening, but cannot see how to change it.
What I actually need is to be able to force the strings to be mandatory
too.

You could write your own WSDL...

John
 
N

Nick Locke

I have cracked this one now, it's a matter of adding the XML Element
Attribute:

<XmlElementAttribute(IsNullable:=True)> _

Public Property Colour() As String

Get

Colour = _Colour

End Get

Set(ByVal value As String)

_Colour = value

End Set

End Property
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top