I have an Apex class which is actually a wrapper class, and has multiple properties which are marked with the keyword "webservice". This class is used for an inbound integration over SOAP. There is a separate Apex class that has the provided services, i.e, the webservice methods in it, which actually makes use of the above wrapper.
However I see that the wrapper class has a "Generate WSDL" button on it from UI. When I hit that button, I do get a WSDL, which however doesn't include the inner classes or the properties of this wrapper. I get the complextypes Address and Location defined (I have no idea why just these and nothing else).
Can anyone explain what is the purpose of having this "Generate WSDL" button available on an Apex class that doesn't even have any webservice method? From the docs it seems this button only makes sense where we have a webservice method. (pic from the docs below)