You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Chris McClelland (JIRA)" <ji...@apache.org> on 2007/08/03 23:59:53 UTC

[jira] Created: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

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.


[jira] Commented: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode resolved CXF-883.
--------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1)
                   2.0.1

> 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
>            Assignee: maomaode
>             Fix For: 2.0.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.


[jira] Commented: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517738 ] 

Daniel Kulp commented on CXF-883:
---------------------------------


Just to let you know, I can confirm this.    It works if you point the "node" to the portType node (or all the way to the operation), but seems to not be processed if top level.



> 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.


[jira] Commented: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "Chris McClelland (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517739 ] 

Chris McClelland commented on CXF-883:
--------------------------------------

That's weird, because after I filed this bug, I switched the default in org.apache.cxf.tools.wsdlto.frontend.jaxws.customization.JAXWSBinding, and everything works fine. By default it does BARE, and I can switch it to WRAPPED by doing:

<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>true</enableWrapperStyle>
  </bindings>
</bindings>

Naturally that's no good to you because JAX-WS is supposed to default to WRAPPED.

> 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.


[jira] Commented: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "Chris McClelland (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517902 ] 

Chris McClelland commented on CXF-883:
--------------------------------------

That suggests you're doing xmlns:xmlns="http://..." in your binding file:

bash-2.05b$ cat x.xml
<M xmlns:xmlns="http://bar.com">
  <xmlns:X>...</xmlns:X>
</M>
bash-2.05b$ java -cp xml-apis.jar:xercesImpl.jar:xercesSamples.jar dom.Counter -n x.xml
[Fatal Error] x.xml:1:32: The prefix "xmlns" cannot be bound to any namespace explicitly; neither can the namespace for "xmlns" be bound to any prefix explicitly.
bash-2.05b$ 

The xmlns and xml prefixes are reserved.

> 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
>            Assignee: maomaode
>             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.


[jira] Assigned: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.

Posted by "maomaode (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

maomaode reassigned CXF-883:
----------------------------

    Assignee: maomaode

> 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
>            Assignee: maomaode
>             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.