[jboss-dev-forums] [Design of JBoss Web Services] - JBWS-1464 Clarification of the MTOM related specifications.
darran.lofthouse@jboss.com
do-not-reply at jboss.com
Fri Jan 19 14:45:08 EST 2007
I have been looking at the following specification to try and get a better understanding of how the mime type for binary content is specified in the schema and in the actual document transmitted: -
http://www.w3.org/TR/xml-media-types/
My interpretation is that the 'expectedContentTypes' attribute is an annotation which is added to the XML schema to list the mime types that can be represented by the binary content.
My interpretation of the 'contentType' is that this is used on the document instance itself (not the schema) to specify what is the actual mime type of the binary data being transmitted.
So in the schema 'expectedContentTypes' can be used to list a set of mime types and then in the document 'contentType' is used to specify what is being transmitted in this document instance.
However in the user guide and in some test cases we seem to be using 'contentType' in the place of 'expectedContentTypes' or in addition to 'expectedContentTypes' in the schema.
This seems incorrect to me, should it really be possible to use 'contentType' in the schema?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004005#4004005
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004005
More information about the jboss-dev-forums
mailing list