[Xml-compile] explain(): required and optional params

Joshua Keroes joshua at keroes.com
Tue Aug 14 19:51:37 GMT 2012


On Tue, Aug 14, 2012 at 12:06 AM, Mark Overmeer <mark at overmeer.net> wrote:
> * Joshua Keroes (joshua at keroes.com) [120814 01:32]:
>> Instead of giving the user the WSDL action's parameters which aren't
>> relevant any more, I'd like two structures: the WSDL's required params
>> and the optional params.
>
> "required" is a very difficult concept in XML schema's.  Optional can be
> specified in various ways, like: element minOccurs=0, block minOccurs=0,
> default=true,  etc  One level up in the specification, it is already
> hard to understand (in the generic sense) whether the sub-structure
> is optional or not.

Good point.


> The logic is in XML::Compile::SOAP11::Operation. [...]
> I could provide method access to the internal $op->{input_def}, output_def,
> and fault_def structures which are used to produce the text. Would that
> help?

Adding methods to the three def's is thoughtful and I think it will help.

Thanks,
Joshua



More information about the Xml-compile mailing list