|
From: <hei...@jb...> - 2006-05-22 10:44:42
|
Heiko Braun wrote: anonymous wrote : | > Hi Alexey, | > | > after a discussion with thomas, we decided that only the declared type | > 'xmlmime:base64Binary' should be optimized, instead of all | > xsd:base64binaries: | > | > <xs:schema targetNamespace="http://www.w3.org/2005/05/xmlmime"> | > | > <xs:attribute name="contentType"> | > <xs:simpleType> | > <xs:restriction base="xs:string"> | > <xs:minLength value="3"/> | > </xs:restriction> | > </xs:simpleType> | > </xs:attribute> | > | > <xs:attribute name="expectedContentTypes" type="xs:string"/> | > | > <xs:complexType name="base64Binary"> | > <xs:simpleContent> | > <xs:extension base="xs:base64Binary"> | > <xs:attribute ref="xmime:contentType"/> | > </xs:extension> | > </xs:simpleContent> | > </xs:complexType> | > | > </xs:schema> | > | > It seems that we are not able to read the content-type attribute from | > our current schema model, therefore we do simple content-type guessing | > based on the java type. The jbossws.utils.MimeUtils class contains | > examples for that. | > | > Anyway i think your marshaller/unmarshaller implementations do not | > need to deal with it, as the implementaiton actually comes from | > jbossws, right? | > | > I saw that you factored the interface to XOPMarshaller/Unmarshaller. I | > will move our implementation to that interface as well and drop the | > initial abstractions from javax.xml.* | > | > /Heiko | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945262#3945262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945262 |
|
From: <hei...@jb...> - 2006-05-22 10:45:22
|
Alex wrote: anonymous wrote : | thanks for the info. I've already started work on any derivation of xs:base64Binary though. | The reason for adding XOPMarshaller was purely build system related. | Otherwise there would be cyclic module dependecies, i.e. between common and j2ee. | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945263#3945263 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945263 |
|
From: <hei...@jb...> - 2006-05-22 10:48:17
|
You can name it as you like as long as the concept stays the same. BTW, should we move isXopOptimizable(TypeBinding type) to the interface as well? This way the implementation (jbossws in this case) could decide which declared types can be optimized. Actually we do that upfront already anyway ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945264#3945264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945264 |
|
From: <ale...@jb...> - 2006-05-22 11:08:30
|
Maybe. So far it's internal impl details that may change. I would like to finish the basic support for this first. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945269#3945269 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945269 |
|
From: <ale...@jb...> - 2006-05-24 14:03:52
|
Here is what I currently have http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossXB_XOP Also see org.jboss.test.xml.XOPUnitTestCase. Let me know what is missing and the priorities. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946124#3946124 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946124 |
|
From: <ale...@jb...> - 2006-05-24 20:59:32
|
I realized it's too soon for the WS team to be happy about this. XOP marshalling is supported by the SchemaBinding-based marshaller, not the XercesXsMarshaller which is currently used by the JBossWS. I don't want to spend time on XercesXsMarshaller now. Switching to the SchemaBinding-based marshaller has been planned for a long time now http://jira.jboss.com/jira/browse/JBWS-673 It's time to finally make this step. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946330#3946330 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946330 |
|
From: <hei...@jb...> - 2006-06-29 12:05:12
|
in order to get rid of the XB dependencies towards JAF & Mail i suggets we factor out the DataHandler from the XOP interfaces and use an equivalent class that's suffiecient to our needs:
I.e:
| public interface XOPMarshaller
| {
| boolean isXOPPackage();
| String addMtomAttachment(XOPObject obj, String elementNamespace, String elementName);
| String addMtomAttachment(byte[] data, String elementNamespace, String elementName);
| }
|
| public class XOPObject {
|
| private Object content;
| private String contentType;
|
| public XOPObject(Object content) {
| this.content = content;
| }
|
| public Object getContent() {
| return content;
| }
|
| public String getContentType() {
| return contentType;
| }
|
| public void setContentType(String contentType) {
| this.contentType = contentType;
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3954339#3954339
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3954339
|