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

maomaode commented on CXF-883:
------------------------------

i'm getting this if i set enableWrapperStyle as a global setting, 


Caused by: org.xml.sax.SAXParseException: The prefix "xmlns" cannot be bound to 
any namespace explicitly; neither can the namespace for "xmlns" be bound to any 
prefix explicitly.
        at 
com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239)
        at 
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
        at org.apache.cxf.helpers.DOMUtils.readXml(DOMUtils.java:302)
        at 
org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.buildCustomizedDefinition(JAXWSDefinitionBuilder.java:183)
        at 
org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.customize(JAXWSDefinitionBuilder.java:125)

I'm looking into this

> wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the 
> enableWrapperStyle flag.
> ----------------------------------------------------------------------------------------------------
>
>                 Key: CXF-883
>                 URL: https://issues.apache.org/jira/browse/CXF-883
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.0, 2.1
>         Environment: Linux, SunJDK 1.6.0_01
>            Reporter: Chris McClelland
>             Fix For: 2.1
>
>
> When <enableWrapperStyle>false</enableWrapperStyle> appears in the binding 
> file, wsdl2java should generate an SEI using ParameterStyle.BARE.
> <bindings xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>           xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>           wsdlLocation="hbp.wsdl"
>           xmlns="http://java.sun.com/xml/ns/jaxws";>
>   <bindings node="wsdl:definitions">
>     <enableWrapperStyle>false</enableWrapperStyle>
>   </bindings>
> </bindings>
> JAVA_HOME=/usr/local/jdk1.6.0 
> /home/chris/apache-cxf-2.1-incubator-SNAPSHOT/bin/wsdl2java -b bindings.xml 
> -d . -verbose -compile hbp.wsdl

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to