Log this with support. There are ways to control this

Mike O'Keeffe wrote:

Using C# or VB through visual studio we find a web service which we expected would generate :

GetClient(ClientNumber as long)

actually generates :

GetClient(ClientNumber as long, ClientNumberSpecified as boolean)

Above is a simple example but with a service which has 10 parameters in it's signiture we find that it suddenly has twenty in .Net: not good news for developers!

It appears that .Net thinks these parameters are optional - we don't want them to be. See http://www.techquila.com/topicmaps/xmlschema/xml_att_minOccurs.html

We copied the WSDL file cache generates and changed the minOccurs=0 to minOccurs=1 and all the booleans disappeared. This is what we want.

Does anyone know how we can set the minOccurs in the WSDL when generating our webservices?

Thanks

Mike.



Reply via email to