[ 
https://issues.apache.org/jira/browse/CXF-6151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14242862#comment-14242862
 ] 

Akitoshi Yoshida commented on CXF-6151:
---------------------------------------

I think this is a result of validating a mime-binding wsdl using the incorrect 
mime binding xsd schema at http://schemas.xmlsoap.org/wsdl/mime/.

This official mime-binding xsd at is broken and contradicts what is described 
in the wsdl 1.1 note and also differs from the xsd fragment included in that 
note, which was correctly defined.

This problem is mentioned in the following Attachment Profile Version 1.0
http://www.ws-i.org/profiles/attachmentsprofile-1.0-2004-08-24.html#MIME_Binding_Schema_Fixes

I'm not sure if there is a simple workaround out of the box and if not, what 
would be the simplest workaround (maybe using a catalog to fetch the corrected 
xsd schema?).


> Apache-cxf wsdlvalidator returns error in mime:part
> ---------------------------------------------------
>
>                 Key: CXF-6151
>                 URL: https://issues.apache.org/jira/browse/CXF-6151
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 3.0.1, 3.0.2
>         Environment: java version 1.8.0_20, Windows 7, Windows 8
>            Reporter: Yuri Kr
>
> Apache-cxf wsdlvalidator returns
> "WSDLValidator Error: cvc-complex-type.2.4.a: Invalid content was found 
> starting with element 'mime:part'. One of '{part}' is expected." ,
> if I try to validate wsdl document with such structure:
> <mime:multipartRelated>
>    <mime:part>
>        <soap:body parts="header parameters" use="literal"/>
>    </mime:part>
>    <mime:part>
>        <mime:content part="attachment" type="application/octetstream"/>
>    </mime:part>
> </mime:multipartRelated>
> wsdl document example from: 
> https://github.com/wso2/wso2-axis2/blob/master/modules/xmlbeans/test-resources/mime-doc.wsdl.
>  (I also tried other examples)
> If I change "mime:part" to "part", validator returns error:
> WSDLValidator Error : javax.wsdl.WSDLException: WSDLException (at 
> /wsdl:definitions/wsdl:binding/wsdl:operation[1]/wsdl:input/mime:multipartRelated/part):
>  faultCode=INVALID_WSDL: Encountered unexpected element 
> '{http://soapinterop.org/attachments/wsdl}part'.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to