On 16 May, 18:39, "John Saunders [MVP]" <john.saunders at
trizetto.comwrote:
<fussel...@yahoo.comwrote in message
news:11*********************@l77g2000hsb.googlegro ups.com...
Is there a way of defining the maximum length of a string parameter to
a web service in .Net?
I assumed that there would be an Xml... attribute that I could apply
to a string definition in the class that would control the generation
of the necessary maxlength attribute in the WSDL but I can't seem to
find one.
I don't believe there is one. Neither are there attributes to control other
schema facets.
--
John Saunders [MVP]
Thank you very much for your response John.
This seems like quite a big omission on Microsoft's part, given how
strongly they position .Net in terms of Web Services.
Do you know if it's possible to hook into the code that auto-generates
the WSDL and write custom code to achieve this?
Many thanks,
John.