cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris McClelland (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-883) wsdl2java in apache-cxf-2.1-incubator-20070729.204751-4 does not honour the enableWrapperStyle flag.
Date Mon, 06 Aug 2007 11:59:59 GMT

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


Mime
View raw message