- From: <noah_mendelsohn@us.ibm.com>
- Date: Wed, 9 Jun 2004 15:00:22 -0400
- To: "Martin Gudgin" <mgudgin@microsoft.com>
- Cc: gdaniels@sonicsoftware.com, hugo@w3.org, "Jonathan Marsh" <jmarsh@microsoft.com>, Marc.Hadley@Sun.COM, paul.downey@bt.com, www-ws-desc@w3.org, xml-dist-app@w3.org
Martin Gudgin writes:
>> Essentially any element in the schema description of
>> the message which is xs:base64Binary ( or a type
>> derived therefrom ) is a potential separate MIME part.
First of all, I think you need to enforce the canonical form, since
base64Binary has multiple forms.
In other respects, this may be a sensible way to go in WSDL, but for the
record SOAP and MTOM don't require use of the schema typing system. MTOM
just requires that the element have content that is in a legal lexical
form of base64Binary. Given that WSDL is schema-based, doing this with
schema types may be the right thing to do. Consider, on the other hand, a
schema wildcard in a WSDL interface. Are we sure we can't MTOM optimize
something validated by that?
As a really obscure case, I don't think MTOM itself prohibits optimization
of:
<e xsi:type="xsd:string">....base64Binary canonical form
here...</e>
Whether this is good practice is an interesting question, but MTOM doesn't
forbit it I think. Now relate this to the wildcard question, particularly
a "skip" wildcard. Do you really want to require that xsi:type be checked
in a subtree where validation is not being attempted? Even if you don't
like the above construction, do you want to force processors to detect it.
In other words, are you sure you want WSDL to even try and control use of
MTOM at the element level?
I wonder whether a better approach might be to first derive a subtype of
base64Binary that uses the pattern facet (ugh!) to ensure that the lexical
form is canonical. Then say in WSDL: you can MTOM optimize anything you
like, but elements of this type are guaranteed to be optimizable.
I'm not pushing one answer or another to these questions, just pointing
out that the options allowed by MTOM may be more subtle than one might
notice at first. I think that the WSDL group would do well to think
through these cases and come to careful conclusions about them.
--------------------------------------
Noah Mendelsohn
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Wednesday, 9 June 2004 15:01:41 UTC