[ 
http://issues.apache.org/jira/browse/AXIS2-1221?page=comments#action_12437184 ] 
            
Davanum Srinivas commented on AXIS2-1221:
-----------------------------------------

Here's a variant using xsd:base64Binary (valid for same test.xml above)

============ test3.xsd ====================
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xmime="http://www.w3.org/2005/05/xmlmime"; xmlns:tns="http://test/xmime"; 
targetNamespace="http://test/xmime"; elementFormDefault="qualified">
        <xsd:import namespace="http://www.w3.org/2005/05/xmlmime"; 
schemaLocation="xmime.xsd"/>
        <xsd:element name="image">
                <xsd:complexType>
                        <xsd:sequence>
                                <xsd:element name="meta-info" 
type="xsd:string"/>
                                <xsd:element name="image-attachment">
                                        <xsd:complexType>
                                                <xsd:simpleContent>
                                                        <xsd:extension 
base="xsd:base64Binary">
                                                                <xsd:attribute 
ref="xmime:contentType" use="required"/>
                                                        </xsd:extension>
                                                </xsd:simpleContent>
                                        </xsd:complexType>
                                </xsd:element>
                        </xsd:sequence>
                </xsd:complexType>
        </xsd:element>
</xsd:schema>
============ test3.xsd ====================


> ADB Code generation for XMIME (http://www.w3.org/TR/xml-media-types/) is 
> incorrect
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-1221
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1221
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: databinding
>            Reporter: Thilina Gunarathne
>         Assigned To: Thilina Gunarathne
>            Priority: Blocker
>
> Schema :
> <xsd:element name="image-attachment">
>       <xsd:complexType>
>               <xsd:simpleContent>
>                       <xsd:extension  base="xsd:base64Binary">
>                               <xsd:attribute  ref="xmime:contentType" />
>                       </xsd:extension>
>               </xsd:simpleContent>
>       </xsd:complexType>
> </xsd:element>
> Axis2 Generated Message:
> <ns1:image-attachment>
>                   <ns1:base64Binary 
> xmlns:ns1="http://www.w3.org/2001/XMLSchema";>.....Some Base64 characters or 
> XOP:include.........</ns1:base64Binary>
> </ns1:image-attachment>
> According to the http://www.w3.org/TR/xml-media-types/ specification above 
> generated message is incorrect... Image-Attachment element should have the 
> base64 content, not an element with the name of base64Binary....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to